Rivet retweeted
You can now fork Durable Objects using Rivet Actors
π΄ Fork with πππ.π°πΆπ΄π½π.ππππππ.ππππ(...)
πΈ Zero-copy forks, so forks are free
β‘ 20 ms forks
π¨ Built for agents, swarms, and docs
Rivet (OpenOrange) makes Durable Objects self-hostable without refactoring
Rivet retweeted
OpenOrange vs celld
34.8x lower S3 costs for agent workloads
This is made possible by building OpenOrange on Rivet's storage engine. We've spent years scaling the actor model, and Rivet's storage engine was built for this.
celld's architecture balloons costs for:
- Agents
- Workflows
- Background jobs
- Session stores
~
Why?
First, a primer on running databases on S3.
S3 is cheap for storing data. It's about 10x cheaper than AWS EBS replicated across 3 availability zones:
$0.023 vs $0.24 per GB per month
But it gets expensive once you actually operate on that data. Writing one object every second for a month costs:
AWS EBS ~$0
S3 $13
This is because S3 charges per operation, while AWS EBS charges for how much you store and for how long:
PUT costs $5 per million
LIST costs $5 per million
COPY costs $5 per million
GET costs $0.40 per million
On AWS EBS, these operations are effectively free.
The catch is that the number of operations scales with how many objects you have. Every object has to be written with its own PUT, so 1,000 objects cost 1,000 PUTs. Pack the same data into one object and it costs one.
~
So why is celld so expensive?
celld stores each Durable Object as its own S3 objects. So the more Durable Objects you create, the more objects you have, and the more you pay.
Every new Durable Object costs PUTs to its own objects: claiming it, then saving it when it goes to sleep. That's ~4 PUTs and 1 GET per Durable Object in our benchmark.
If you have a fixed number of Durable Objects, this cost is reasonable. But if you're constantly creating new ones, your cost grows with every one.
And agents tend to be high churn. Some agents work for days, but most do a quick, discrete task and never get used again.
These types of workloads suffer, since they frequently create new Durable Objects:
- Agents
- Workflows
- Background jobs
- Multiplayer game rooms
- Chat rooms
- Per-user sessions
- Rate limiting
~
So how does OpenOrange stay so cheap?
Rivet's storage engine is built on an LSM tree (log-structured merge tree). It's the same idea behind mature S3-backed databases like ClickHouse, used to keep performance high and cost low.
Instead of giving each Durable Object (called Actors on Rivet) its own S3 objects, Rivet's LSM packs many of them into shared S3 objects.
Here's how PUTs compare per 1,000 new Durable Objects:
- OpenOrange ~90
- celld ~4,000
When you create a Durable Object or write to SQLite on OpenOrange:
1. The write is replicated to SSDs across 3 availability zones (single-digit ms)
2. After about a minute, writes from many Durable Objects are merged into one batch
3. That batch is written to S3 as one object
~
These benchmarks are modeled on real-world agent workloads, measured at 8 to 25,000 concurrent agents. Each agent lives 60 seconds and writes a turn every 10 seconds. We only measured S3 cost, and both ran on identical hardware.
~
OpenOrange is open source today.
We've attached the benchmarks below.
Rivet retweeted
Actor Effect SDK in Rivet 3.0.7 includes:
- SQLite API
- Scheduling API
- keepAwake, destroy, more options
Getting close to stable! It's taking some time, since we want to take the time to build Effectful APIs.
Rivet retweeted
What do you want a Rivet Actors guide for?
We're building human- & agent-friendly guides on agentic / realtime architectures
30 Rivet-certified guides have landed so far (link in thread)
Agents:
- Personal Agent over SMS
- Durable AI Agents
- Multi-Agent Systems
- Sign in with ChatGPT
- Code Mode in the Sandbox
Coding Agents:
- Claude Code
- Codex
- OpenCode
- Amp
Workflows:
- Human-in-the-Loop Approvals
- Multi-Step AI Workflows
- Handle Incoming Webhooks
- Cron Jobs and Scheduled Tasks
- Reliable Webhook Delivery
Realtime:
- Chat Room
- Collaborative Text Editor (CRDT)
- Collaborative Text Editor (OT)
- Live Cursors and Presence
AI-Generated Apps:
- Host AI-Generated Apps
Databases:
- Database per Tenant
Games:
- Battle Royale
- IO Game
- Arena Game
- Turn-Based Game
- Open World Game
- Party Game
- Ranked Matchmaking
- Idle Game
- 2D Physics Game
- 3D Physics Game
Rivet retweeted
Helping scale @AmpCode on @rivet_dev has been such a pleasure this year!
Getting to see how their team works on Amp and how they use Rivet Actors to build the future of coding is a glimpse at the next decade of engineering will look like
Rivet retweeted
Introducing πππππππ-ππππππ-ππππππππ
Cloudflare wouldn't do it, so we did
Migrate DOs with no downtime to:
- Postgres
- Rivet Actors
- SQLite
- Anything else (PRs welcome!)
Includes library, prompt, & @alchemy_run support
Rivet retweeted
Rivet is the open-source alternative to Durable Objects
And it is fast:
39Γ faster β actor creation
28Γ faster β SQLite writes
13Γ faster β request from your backend
Rivet retweeted
Instead of having a container-per-agent (100s of MB)
Rivet Actors is far more efficient way to run agents (1,000s per GB of RAM)
As compute gets squeeze, actors can make your app cheaper (and faster!)
Writing your agents on Rivet Actors gives:
- 4,490 agents per GB of RAM
- 8ms actor coldstarts
- 0.7ms SQLite writes
- Supports Rust, TypeScript, or a hybrid
Each agent gets its own actor with:
- Memory
- Storage (SQLite)
- Addressable HTTP server
- Sleeps when idle
Plus:
- agentOS: efficient sandboxes (22 mb per instance)
- Dynamic Apps: cheap per-agent generated apps
- "Hug the curve" elastic scaling of workloads
- Portability to run on any (or multiple) clouds where you can get compute
AWS just open-sourced a runtime that can fit 75,000 concurrent AI agents in 8GB of RAM.
the trick is that agents donβt sit around consuming resources while waiting for tools to finish. the runtime saves their state, suspends them, and resumes them when something happens.
75,000 agents. raspberry pi 5 memory.
that number is kinda ridiculous.
Rivet retweeted
In the next version of Rivet:
π» 25% less RAM on RivetKit (JS)
π» 33% less RAM on the control plane under SQLite load
Rivet retweeted
S3 is the only dependency in Rivet 3.0 (coming soon)
It's architected for easy self-hosting and embedding in your own apps
But that also meant getting rid of NATS....
Rivet retweeted
Running the harness outside of the sandbox is dirt cheap!
For example, Pi on Rivet Actors takes ~0.8 MB of RAM per active session
+ starts in tens of milliseconds
+ hibernates when idle
~~~
How?
When running an agent in a sandbox, you're paying for the overhead of an entire Node.js process for each session
That's usually hundreds of MB for every single agent session, plus multiple seconds to actually start up
When you run the harness within your own backend, you have a single process that can run hundres of agents per process
That means you've already paid for the fixed overhead of running Node.js (the hundreds of MB)
And each new agent session is just a few JS objects in memory
~~~
If you look at the graph, there's a baseline of 223 MB for the base Node.js process + imported libraries, but each new session takes only 0.82 MB
Granted, this depends heavily on how much of the session you keep in memory. Real-world results are going to be higher, but not by much since text doesn't take much memory.
Benchmark: github.com/rivet-dev/actors/β¦
~~~
In terms of security, the agent doesn't have access to the host it's running on
Instead, it's given tools that can talk to an external sandbox on demand
Read more about how to do this here: rivet.dev/blog/2026-07-27-ruβ¦
Replying to @NathanFlurry
how would it work if you want to run say 1000s of parallel pi sessions for muliple users? each of these is 200mb, no? how can you do that on your backend?
Rivet retweeted
Secure Exec SDK got a huge refresh
(secure Node.js execution w/o a sandbox)
π
Simpler API, host fns, TypeScript checking
β πππππππ
π() for long-running processes & fs
π¦ Dynamically install NPM pkgs
$ πππ πππππππ ππππππ-ππ‘ππ
Rivet retweeted
Very excited for the launch!
Getting questions on how Secure Exec / agentOS compares:
Both let you run untrusted JS as a library, without creating a heavy Linux sandbox.
But, they have different scopes:
β Secure Exec provides access to a sandboxed fs / net / shell
β secure-eval-worker only allows for Node.js without full fs / net / shell.
This means Secure Exec can run most Node.js libraries (and CLIs!) out of the box.
(Including Next.js, npm, esbuild, git, etc)
~~~
How does Secure Exec do this?
Secure Exec / agentOS provide a "virtual operating system."
It's a Linux-compatible OS that lives in the library (in userspace) that gives Node.js sandboxed access to:
- Filesystem
- Network requests (e.g. fetch / WebSockets / TCP)
- Run servers (e.g. Next / Hono)
- Shell commands
- Process trees
None of the sensitive functionality touches the host unless you explicitly allow it.
It also enables powerful functionality like:
- User-generated HTTP servers
- Mounting anything as a filesystem (S3, GDrive, host, etc)
- Injecting tokens for incoming & outgoing requests
- Dynamically install NPM packages
- Have agents fetch HTTP requests from another server inside the same context
Out of the box, it supports just about everything you'd expect:
- TypeScript (full tsc)
- Next.js
- npm (yes, really)
- React
- Astro
- esbuild (wasm)
- git (via agentOS)
- Express / Hono
(secure-eval-worker does support read-only access to a filesystem)
~~~
Secure Exec also provides full TypeScript type checking.
This allows your agents to:
Generate code β check types β feed errors back in to LLM β repeat
~~~
Secure Exec also has a different security boundary.
Secure Exec is modeled after Cloudflare Workers & Chromium's architecture.
It focuses on providing layers of security without impacting performance & compatibility.
Currently, secure-eval-worker runs in the same process as your host application.
Secure Exec has a few extra security boundaries:
- Runs in a separate, dedicated process from your application code
- Process can be jailed with additional OS-level isolation
- Tenants can be isolated by process optionally
~~~
Do you need a full OS?
Not all use cases do.
But the more of POSIX and more flexibility you give your agents, the faster & more efficient they work.
We've seen a lot of companies basically re-implement a slower filesystem and switch to Secure Exec / agentOS to get more mature POSIX compliance & feature set.
e.g. just binding host tools to S3 or Google Drive tends to grind to a halt.
~~~
Other features that both support:
- Long-running contexts / sessions
- Host tools / callbacks
- Async JavaScript execution
- TypeScript execution
- Execution timeouts and cancellation
- Configurable V8 memory limits
- Structured inputs and return values
- ES modules and compatible supplied dependencies
~~~
Would it be possible for us to use secure-eval-worker with Secure Exec / agentOS's virtual OS?
Maybe, but it'd take significant work forking and binding to the Node.js fs / net / proc APIs.
People have experimented with this before, but my hunch is we can provide better security + performance keeping this under one roof.
~~~
The hardest part of building this is building a new runtime loop that can prevent resource exhaustion from the guest.
It took us a long time to get this right in Secure Exec, it's fun to see we landed on a similar architecture.
~~~
Congrats on the launch, been hoping to see something like this in Node.js for a while!
Running JavaScript at runtime is everywhere now: AI-generated changes, user automation, plugins, programmable app parts. The problem is that a regular `eval()` inherits all the host's permissions.
Today we're introducing @platformatic's new library, `secure-eval-worker`, which runs JS in Node.js workers with only the permissions you choose.
Rivet retweeted
If you're on Rivet Actors / Workflows (open-source Durable Objects alternative)
We've supported this for a while. Each branch gives:
- Isolated Actors / Workflows / agentOS
- Dedicated preview hostname
- Scales to 0, costs nothing
- Separated in billing
- Works with BYOC or Rivet-managed actors
Rivet retweeted
bilis can now spot errors from your logs, autofix & open pr. Powered by agentOS from @rivet_dev
Rivet retweeted
Rivet π€ Turso
I love what happens when tools are build in open standards (SQLite) + plugability
πππ πππππππ @πππππππππππππ/πππππ-ππ‘ππππππππππ
The @rivet_dev team did an amazing job with the SQLite support internals that building a Turso Cloud integration was a breeze! Nice work @NathanFlurry and the team!



























