Skip to main content
Agents in production run for hours or days, call tools with side effects, wait for approvals, and start work in other agents and workflows. Restate is a durable runtime for these agents and for everything around them: the agent loop, the sessions that queue messages, the sub-agents, and the workflows that the agent starts all run on one system. You can build agents on Restate in three ways:

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: Durable AI Agent Execution
  • 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.
The durability, queuing, and flow control come from Restate, so Restate Harness itself is a thin layer. You can change its loop with hooks, or build your own harness on the same primitives and keep the rest of your application. Restate also integrates with the Vercel AI SDK, OpenAI Agents SDK, and others.

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:
Application Structure
  • 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:
AI Agent Execution Trace
  • 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: Application Structure

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
The Restate plugin adds skills for Restate Harness and the Restate SDKs to your coding agent. In Claude Code:
Questions? Join our community on Discord or Slack.