The primitive for
stateful workloads.
One Actor per agent, per session, per user. State, storage, and networking included.
A lightweight primitive with powerful capabilities.
One Actor per agent, per session, per user — state, storage, and networking included.
Co-located with compute for instant reads and writes. Persist with SQLite or BYO database.
Long-lived when active, hibernates when idle.
Supports bursty workloads and is cost-efficient.
Deploy close to your users or in specific legal jurisdictions without complexity.
Real-time bidirectional streaming built in.
Multi-step operations with automatic retries.
Durable message queues for reliable async processing.
Timers and cron jobs within your actor.
Actors in action.
One primitive that adapts to agents, workflows, collaboration, and more.
const agent = actor({
// In-memory, persisted state for the actor
state: { messages: [] },
// Long-running actor process
run: async (c) => {
// Process incoming messages from the queue
for await (const msg of c.queue.iter()) {
c.state.messages.push({ role: "user", content: msg.body.text });
const response = streamText({ model: openai("gpt-5"), messages: c.state.messages });
// Stream realtime events to all connected clients
for await (const delta of response.textStream) {
c.broadcast("token", delta);
}
c.state.messages.push({ role: "assistant", content: await response.text });
}
},
});const agent = client.agent.getOrCreate("agent-123").connect();
agent.on("token", delta => process.stdout.write(delta));
await agent.queue.send("hello!");Each agent runs as its own actor with persistent context, memory, and the ability to schedule tool calls.
How Actors Compare
Rivet Actors vs. traditional infrastructure.
Cold Start
Time to first request
Memory Per Instance
Overhead per instance
Read Latency
State read latency
Idle Cost
Cost when not in use
Horizontal Scale
Maximum capacity
Multi-Region
Deploy actors close to your users

Built-In Observability
Debugging and monitoring for actors and agents, from local development to production at scale.
SQLite Viewer
Browse and query SQLite databases in real-time across actors and agent sessions
Workflow State
Inspect workflow progress, steps, and retries as they execute
Event Monitoring
Track every state change, action, and agent event as it happens in real-time
REPL
Debug actors and agent sessions by calling actions, subscribing to events, and interacting directly with your code
Infrastructure for software that thinks.
The next generation of software needs a new kind of backend. This is it.