ALL INTELLIGENCE
Hacker News AIT2·Agents

Rivet Open-Sources Actor Runtime to Orchestrate Agents on S3

Original title: Launch HN: Rivet (YC F25) – Scale and Orchestrate Agents on S3
62AI Score

Rivet launched an open-source orchestration runtime for agentic workloads that replaces heavyweight per-agent sandboxes with lightweight S3-backed Actors, claiming 4.99 ms p99 cold starts and 72 KB per Actor, with self-hosting supported. The pitch is that sandboxes are costly and low-density, while the actor model better suits large-scale concurrent agents.

Full Report

Contents8 sections

Fast, high-density, scalable orchestration for agentic workloads. Instead of a heavyweight sandbox per agent, each agent gets a lightweight Rivet Actor backed by S3. 4.99 ms p99 cold starts and 72 KB per Actor. Open source and self-hostable.

<p> [Quickstart](https://www.rivet.dev/docs) • [Documentation](https://www.rivet.dev/actors/docs) • [Changelog](https://www.rivet.dev/changelog) • [Discord](https://www.rivet.dev/discord) • [X](https://x.com/rivet_dev) </p> </div>

Getting Started

<table> <tr> <td width="50%" valign="top">

Use with Your Coding Agent

Give your coding agent the Rivet skills to create examples or integrate into existing projects:

BASH
npx skills add rivet-dev/skills

Works with Claude Code, Cursor, Windsurf, and other AI coding tools.

</td> <td width="50%" valign="top">

Start From Scratch

View documentation →

</td> </tr> </table>

What is Rivet?

Rivet is an orchestrator for agentic workloads built on the actor model. Each Rivet Actor is a long-lived process with in-memory state, a SQLite database, WebSockets for realtime, and scheduling, addressed by key. Create one per agent, session, user, or tenant, and run it on plain Node.js, Bun, or Rust.

  • 72 KB per Actor: Actors share a node process instead of each booting a sandbox, so one server holds hundreds of thousands.
  • 4.99 ms p99 cold starts: No image pull and no VM boot.
  • SQLite backed by S3, at SSD speeds: 1.07 ms durable writes and 1.36 ms reads at p99, for about 10.4× less than replicated SSD storage.
  • Hibernates when idle: Idle Actors cost nothing and wake on the next request with nothing lost.

Backend

TYPESCRIPT
import { actor } from "rivetkit";
import { db } from "rivetkit/db";

const agent = actor({
  // Per-Actor SQLite database, persisted across restarts and hibernation
  db: db({
    onMigrate: async (db) => {
      // Apply the SQLite schema
      await db.execute(`CREATE TABLE IF NOT EXISTS messages (role TEXT, content TEXT)`);
    },
  }),

  actions: {
    chat: async (c, text: string) => {
      // Durably save the message
      await c.db.execute("INSERT INTO messages VALUES (?, ?)", "user", text);
      const messages = await c.db.execute("SELECT role, content FROM messages");

      const response = streamText({ model: openai("gpt-5"), messages });

      // Stream tokens to every connected client for multiplayer
      for await (const delta of response.textStream) {
        c.broadcast("token", delta);
      }

      // Durably save the response
      await c.db.execute("INSERT INTO messages VALUES (?, ?)", "assistant", await response.text);
    },
  },
});

Client (frontend or backend)

TYPESCRIPT
// Connect to an Actor
const agent = client.agent.getOrCreate("agent-123").connect();

// Listen for realtime events
agent.on("token", delta => process.stdout.write(delta));

// Call an action on the Actor
await agent.chat("how many r's in strawberry?");

Actor types

Every product Rivet ships is an Actor, scheduled by the same control plane.

  • Actors: Long-lived processes with state, realtime, and scheduling built in.
  • Agents: A durable process per agent, with memory that survives restarts.
  • Workflows: Multi-step operations that replay instead of starting over.
  • agentOS: Run the code your agent writes, securely, with granular control over network access, filesystem access, and resource limits.
  • Dynamic Apps (preview): A backend per user, deployed the moment it is generated.

Built for everything agents need

  • Coding agents: One Actor per agent, with a durable process and state that survives restarts.
  • Agent app builders: Each generated backend deploys as its own Actor that scales to zero.
  • Agents in your VPC: Run agents next to your databases and APIs, so no data leaves your cloud.
  • Realtime apps: One Actor per document, room, or channel, broadcasting changes to every client.

How Actors compare to sandboxes

Rivet ActorSandbox
Cold start (p99)4.99 ms1.70 s
Memory per instance72.4 KB512 MiB
StorageSQLite backed by S3, about 10.4× cheaper than replicated SSDsDisk per sandbox
<details> <summary>Benchmark details & methodology</summary> </details>

Features

  • Fault tolerance: If a node goes down, its Actors move elsewhere with their state intact.
  • HTTP & WebSocket networking: Call an Actor over HTTP or hold a live WebSocket to it.
  • End-to-end type safety: Typed clients for your backend and React hooks for your frontend.
  • Cron & scheduling: Wake an Actor on a schedule or at a time it sets for itself.
  • Actor-to-Actor calls: Actors call each other by key across the cluster.
  • OpenTelemetry: Traces, metrics, and logs in OTel format.

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)


作者发帖说明(HN):

Hey HN, this is Nathan and Nicholas from Rivet (https://rivet.dev) – a fast, high-density, and scalable orchestrator for agentic workloads using the actor model. Rather than running a heavyweight sandbox per agent, each agent gets a lightweight actor backed by S3.

Actors provide a long-lived process for long agent turns, in-memory state for context, a WebSocket server for multiplayer, durable SQLite storage backed by S3, and hibernation when idle.

It's a similar model to Cloudflare Durable Objects, but it’s open source and self-hostable.

Here’s a video walkthrough: https://www.youtube.com/watch?v=3Ev6I7DOV9c

When we went through YC in 2023, we were building infrastructure for multiplayer games like Diep and Krunker. This involved heavily optimizing high-throughput matchmaking, real-time player messages, and blitz scaling. Through that process, we spent a lot of time on workloads where Postgres couldn't keep up with our throughput. We started out by hacking together Lua scripts on top of Redis, but this became too cumbersome to maintain and upgrade. This led us to extend our game server orchestrator to support what we call Rivet Actors today: many lightweight workers with in-memory state and durable storage. By using actors, we were able to serve tens of millions of monthly active users.

As agents grew in popularity, it became clear that running agents in sandboxes is inefficient. Sandboxes are expensive,...