Example project demonstrating a queue-free Rivet Actor chat UI backed by the new rivetkit/sandbox actor.
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/sandbox-coding-agent
pnpm install
pnpm dev- Uses
rivetkit/sandboxinstead of constructingSandboxAgentclients directly - One sandbox actor per agent key
- Built-in transcript persistence through the sandbox actor
- Provider selection with
SANDBOX_PROVIDER=docker|daytona|e2b - Live UI updates via Rivet Actor events
- For local Docker usage, install Docker and leave
SANDBOX_PROVIDERunset - For Daytona, set
SANDBOX_PROVIDER=daytonaandDAYTONA_API_KEY - For E2B, set
SANDBOX_PROVIDER=e2bandE2B_API_KEY - Set the model provider credentials needed inside the sandbox, such as
OPENAI_API_KEY,ANTHROPIC_API_KEY, orCODEX_API_KEY
The example keeps a thin UI-facing agent actor, but the sandbox lifecycle and sandbox-agent API now live behind sandboxActor(...).
- Sandbox actor integration (
src/actors.ts) - Frontend orchestration (
frontend/App.tsx) - Server entry point (
src/server.ts)
Read more about Rivet Actors, actions, events, and queues.
MIT