- Restate Harness: an open-source TypeScript agent harness built natively on durable execution
- Agent SDK integrations: keep the Vercel AI SDK, OpenAI Agents SDK, Google ADK, Pydantic AI, or LangChain
- Your own agent loop: write the loop in any language with a Restate SDK
Recover every step after a failure
Restate records every model call, tool result, and signal in the journal of the agent’s invocation. After a crash or a deploy, the agent continues after the last step that finished:
- No repeated work: completed model calls aren’t sent again, so you don’t pay twice for them, and the agent stays on the path it took
- Fine-grained recovery: recording a step adds only milliseconds, so parallel tool calls, guardrail checks, sub-agents, and the tool calls inside a code mode program are each recovered on their own
- Automatic retries: transient errors such as rate limits and network failures are retried
Build with Restate Harness or your agent SDK
Restate Harness runs the agent loop in a Restate handler and journals each step. The agent SDK integrations make the model calls and tool calls of your existing framework durable steps.Steer, interrupt, and approve running agents
Long-running agents need input while they run:Steering and interrupts
Send new input to a running agent, or stop it with a summary. Restate keeps the signal until the agent reads it.
Human approval
Wait days for an approval. Restate suspends the agent and resumes it when the decision arrives, also after a new deploy.
Sub-agents and forks
Delegate to sub-agents in the same process or as separate services. An interrupt stops all nested agents.
Combine agents with workflows
Restate’s workflows-as-code and building blocks let you implement agent patterns in your own code:Parallelization
Run tasks in parallel and recover each of them on its own
Workflows as tools
Let the model call your Restate services and workflows as durable invocations
Multi-agent orchestration
Coordinate specialized agents with reliable communication
Compensation
Undo previous actions when a later step fails
Agents in workflows
Chains, routing, review loops, and races in your own code
And much more
Browse the AI patterns and integrations
Run sessions, events, and limits on the same runtime
An agent is one part of your application. Restate also runs the sessions, queues, events, and concurrency limits around it, so you don’t need a separate queue, workflow engine, or session database:
- Sessions: a Virtual Object stores the conversation per key and runs one request per key at a time. Messages that arrive during a turn wait in the session’s queue.
- Events and schedules: webhooks from GitHub, Linear, or Slack, Kafka events, and delayed calls start agent runs. Idempotency keys deduplicate repeated requests.
- Concurrency limits: flow control caps how many agent invocations run at once, for example per tenant, which puts a ceiling on model and API spend
- Reliable calls: agents, tools, and workflows call each other through durable service calls, and Restate suspends the caller while it waits
Observe and control running agents
The Restate UI shows the journal of every agent, session, and workflow, including each model call and tool call as it happens:
- Debug failed agents: inspect where and why a run failed
- Control executions: pause, resume, cancel, or restart agents during development and in production
- Manage deployments: see which agents and workflows are registered and which version each invocation runs on
What you can build
Restate fits agents that run longer than a request, wait for people or events, or run next to many other agents:- Coding agents: long-running sessions with their own sandbox, where the user gives feedback, approves actions, and steers or stops the work
- Software factories: a GitHub or Linear webhook starts a pipeline in which one agent triages the issue, another writes the change, and a third reviews it
- Research agents: runs that take hours and fan out to sub-agents
- Agent platforms: a company-wide platform that connects agents, MCP servers, model gateways, and internal APIs through durable service calls, with concurrency limits per team or tenant
- Chat bots: many concurrent conversations, each with its own history, where users can steer or interrupt the agent while it runs
- Always-on agents: background agents that schedules, webhooks, and messages start, and that use no resources while they wait
Deploy and scale
Restate’s durable execution runtime lets you run your agents where you want at the scale you want:
- Scale to many concurrent sessions: each session has its own state and queue, and suspended agents use no compute
- Deploy your agents on serverless or containers
- Choose where Restate runs: compare Restate Cloud, Restate BYOC, and self-hosted Restate
Get started
Quickstart
Run a weather agent built with Restate Harness on a local Restate Server
Restate Harness
See how Restate Harness works, and find the page for each feature
Agent reference architecture
Explore a complete agent with human approvals, sandboxed tools, sub-agents, memory, and schedules
AI examples
Explore templates, examples, and SDK integrations