Sandbox Agent
Run multiple coding agents in isolated sandboxes and control them remotely through one HTTP API.
- Source repo
- rivet-dev/agents
- Stars
- ★ 1.7k
- Last updated
- 2d ago v0.5.8
- FARS reviewed
- Nov 08, 2026 +2 new
- License
- Apache-2.0
- Primary language
- TypeScript
- FA score
- 46/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A cloud development product can run coding agents in E2B, Daytona, Vercel Sandboxes, or Docker so arbitrary generated code is isolated from production servers.
- Not a fit if
- Teams that need built-in session persistence; this project streams events only
- Teams wanting the project to manage E2B, Daytona, or other sandbox provider lifecycles
- Teams needing Git repo management or a direct LLM wrapper in one tool
- Website
- rivet.dev/agents/docs ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-30latest release v0.5.8 (2026-11-30)+1.3 ★/day over 7 days
- Source review
- 46/100 · Major gaps
What does this agent do, and when should you use it?
Sandbox Agent is a server that runs inside a sandbox and exposes a common control plane for Claude Code, Codex, OpenCode, Cursor, Amp, and Pi. Its Rust daemon serves HTTP and SSE, while the TypeScript SDK supports both embedded and remote-server modes and the CLI mirrors the HTTP endpoints. Agent-specific adapters translate proprietary APIs and events into a universal API and session schema that applications can stream to their own storage. A built-in Inspector provides a UI for examining sessions and events, and an OpenAPI specification supports clients written in other languages. It can run locally or inside E2B, Daytona, Modal, Cloudflare Containers, Agent Computer, Vercel Sandboxes, Docker, and other environments capable of running Linux binaries. It does not provide external session persistence, Git repository management, sandbox-provider orchestration, or a direct LLM wrapper.
The sandbox-agent server command starts an HTTP and SSE service inside the sandbox and runs the selected coding agents as local subprocesses. Applications can start embedded mode with SandboxAgent.start() or connect remotely with SandboxAgent.connect({ baseUrl, token }); they then use listAgents(), createSession(), postMessage(), and streamEvents() to discover agents, create a session, submit work, and consume normalized events from an offset. HTTP clients can perform the same operations, while the CLI exposes commands including sandbox-agent api sessions create, send-message, and send-message-stream. Per-agent adapters translate between the common protocol and the distinct interfaces of Claude Code, Codex, OpenCode, Cursor, Amp, and Pi. The main output is a stream of session events in a universal JSON schema, which the consuming application must persist if auditing or replay is required. The Inspector at /ui/ displays sessions and their events for debugging.
- A cloud development product can run coding agents in E2B, Daytona, Vercel Sandboxes, or Docker so arbitrary generated code is isolated from production servers.
- A platform team supporting Claude Code, Codex, OpenCode, Cursor, Amp, or Pi can integrate one HTTP API and switch agents through configuration instead of rebuilding every client.
- A team with a non-TypeScript backend can build against the OpenAPI specification and receive live agent activity over SSE.
- An engineering organization that needs audits or replay can stream the normalized JSON events into Postgres, ClickHouse, or Rivet.
- Developers investigating remote permissions, messages, and session behavior can inspect the event history through the bundled Inspector UI.
- A team can prototype locally in embedded mode and later operate the same interface as a server inside an isolated production sandbox.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npx skills add rivet-dev/skills -s sandbox-agentbunx skills add rivet-dev/skills -s sandbox-agentnpm install [email protected]bun add [email protected]
- Ports
2468- Environment variables
SANDBOX_TOKEN
How do you install or deploy this agent?
Install the published skill with npx skills add rivet-dev/skills -s sandbox-agent or bunx skills add rivet-dev/skills -s sandbox-agent.
For the TypeScript SDK, run npm install [email protected]. Bun users can run bun add [email protected]; using SandboxAgent.start() also requires trusting the appropriate native-binary postinstall packages.
For the HTTP server, run curl -fsSL https://releases.rivet.dev/sandbox-agent/0.4.x/install.sh | sh, followed by sandbox-agent server --token "$SANDBOX_TOKEN" --host 127.0.0.1 --port 2468. Optionally preinstall all agent binaries with sandbox-agent install-agent --all; otherwise they are installed lazily on first use. Local development can disable authentication with sandbox-agent server --no-token --host 127.0.0.1 --port 2468.
The optional CLI wrapper installs with npm install -g @sandbox-agent/[email protected]. Supply the credentials required by the chosen coding agent. For testing, sandbox-agent credentials extract-env --export prints environment variables derived from local agent configurations, including OpenAI and Anthropic API keys.
How do you use this agent?
For embedded mode, initialize const client = await SandboxAgent.start(). For a remote server, use const client = await SandboxAgent.connect({ baseUrl: "http://127.0.0.1:2468", token: process.env.SANDBOX_TOKEN }). Create a first Codex session with await client.createSession("demo", { agent: "codex", agentMode: "default" }), submit work with await client.postMessage("demo", { message: "Hello from the SDK." }), and consume output with for await (const event of client.streamEvents("demo", { offset: 0 })).
The equivalent CLI flow starts with sandbox-agent api sessions create my-session --agent codex --endpoint http://127.0.0.1:2468 --token "$SANDBOX_TOKEN", followed by sandbox-agent api sessions send-message-stream my-session --message "Hello" --endpoint http://127.0.0.1:2468 --token "$SANDBOX_TOKEN". After starting the server, open http://localhost:2468/ui/ to inspect sessions and events. In production, keep token authentication enabled and continuously copy streamed events into application-owned storage.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- One HTTP API covers Claude Code, Codex, OpenCode, Cursor, Amp, and Pi while normalizing their different event formats into a universal session schema.
- The same system can run as a static Rust server binary inside a sandbox or through an embedded TypeScript SDK, supporting both local and remote execution models.
- HTTP, SSE, and a published OpenAPI specification make real-time integration possible from languages beyond TypeScript.
- The bundled Inspector, endpoint-mirroring CLI, and credential extraction command support debugging, automation, and test setup.
- Its deployment model places arbitrary agent-executed code inside an isolated environment rather than directly on production application servers.
- The project does not persist its normalized event stream; adopters must operate their own Postgres, ClickHouse, Rivet, or equivalent storage and replay pipeline.
- It deliberately does not abstract sandbox-provider APIs, so provisioning and lifecycle management for E2B, Daytona, Vercel, or another provider remain application responsibilities.
- Each supported agent still requires its own binary, configuration, and credentials; the common API does not remove those underlying dependencies.
- The Python SDK, automatic MCP/skill/hook configuration, and todo lists appear only on the roadmap and should not be treated as current capabilities.
- OpenCode SDK/UI compatibility and Gigacode are labeled experimental, creating stability risk for production adoption of those paths.
- Git repository management and direct LLM wrapping are explicitly out of scope, so a complete development platform needs additional components.
How does this agent compare with similar options?
Sandbox Agent is complementary to the Vercel AI SDK: Vercel AI SDK is for chat interfaces and model calls, whereas Sandbox Agent controls autonomous coding agents that write code and execute commands. Compared with an agent's official SDK, which typically assumes local processes and interactive terminals, Sandbox Agent places a server inside the sandbox and is designed for remote HTTP control. Compared with piping commands over SSH, its HTTP/SSE layer is intended to preserve streaming, tool confirmations, TTY-sensitive behavior, and human-in-the-loop flows.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Sandbox Agent This agent | 46 · Major gaps | Self-hosted serviceFree + model costs | ★ 1.7k | 2d ago | TypeScript | Codex · Claude Code |
| Omnara Managed Agent Platform | 68 · Some gaps | Hosted serviceFreemium | ★ 3.5k | today | Go | Codex · Claude Code · Claude.ai · OpenAI API · Claude API |
| TrueForge | 65 · Some gaps | CLIFree + model costs | ★ 6.7k | today | TypeScript | OpenAI API · Claude API |
| Cloudroom | 62 · Some gaps | Desktop appFreemium | ★ 2.1k | 1d ago | TypeScript | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The code exposes sandbox file and shell operations and a create/connect/suspend/destroy lifecycle, and a connection-state authentication example is present. However, the evidence does not establish permission defaults, confirmation or recovery for destructive actions, credential protection, data egress boundaries, or dependency safeguards. The README points to the Rivet project and Discord, but publisher identity remains unknown as specified, and maintenance responsibility is unclear.
CI configuration lists build, type, test, lint, boundary, and packaging checks, while test samples cover disconnects and connection authentication; this static review cannot establish that checks passed. The product spans multiple components, and the README and samples do not fully document component behavior or recovery. Concrete failure-message examples are limited.
The README clearly identifies durable Rivet Actors and sandboxed HTTP Agents as two project areas. Skill descriptions name several coding agents, sandbox providers, SDKs, and concrete triggers. Interfaces expose optional timeouts, cancellation, streamed output, and sandbox lifecycle controls, but sandbox isolation and capability limits are not sufficiently explained.
Repository areas, documentation entry points, and sample skill structure are clear; release notes describe a shared version line, and a complete Apache-2.0 license is present. Installation guidance mostly points to external docs, and the supplied skill template contains generation placeholders. The packet provides insufficient evidence of a changelog, known limitations, or clear maintenance ownership.
Durable agents, SDK/API access, streamed events, and human-in-the-loop interactions have clear uses for common integrations. Interfaces and examples aid adoption, but costs, resource use, operating boundaries, and deployment burden are not quantified or sufficiently explained.
The README's project map is directionally corroborated by source interfaces, skill templates, and test samples, and CI describes check workflows. The supplied materials do not directly detail the core persistence implementation or provide execution evidence. Claims and inferences are not systematically separated, so only partial credit is warranted.
- The repository covers multiple Agent projects; the supplied materials do not establish the implementation details of persistence, sandbox isolation strength, or data retention.
- CI configuration lists checks, but this static review did not verify that they passed.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v0.5.8 0.5.8
Release notes excerpt
What's Changed * chore(workspace): move to pnpm 11 by @eersnington in https://github.com/rivet-dev/agents/pull/410 * feat(pi): support Pi 1.6 by @eersnington in https://github.com/rivet-dev/agents/pull/411 * docs(pi): wait for a webhook in a tool with c.pi.signal by @eersnington in https://github.com/rivet-dev/agents/pull/412 * fix(pi): arm the recovery wake before an app action runs by @eersnington in https://github.com/rivet-dev/agents/pull/413 * docs(pi): fix notes on crash resume, c.pi hooks and tools by @eersnington in https://github.com/rivet-dev/agents/pull/414 …View on GitHub ↗ -
v0.5.7 0.5.7
Release notes excerpt
What's Changed * docs: publish docs with the website's sync-repo script instead of a CI sync by @NathanFlurry in https://github.com/rivet-dev/agents/pull/390 * fix(pi): keep one pi.wake while Pi work is active by @eersnington in https://github.com/rivet-dev/agents/pull/402 * test(pi): drop duplicate tests and assertions on Pi's tables by @eersnington in https://github.com/rivet-dev/agents/pull/403 * test(pi): remove the failed-commit test that a merge added twice by @eersnington in https://github.com/rivet-dev/agents/pull/406 …View on GitHub ↗ -
v0.5.6 0.5.6
Release notes excerpt
What's Changed * feat(pi)!: support Pi 1.5 by @eersnington in https://github.com/rivet-dev/agents/pull/382 * fix(sandbox-adapter): read file info without GNU stat by @eersnington in https://github.com/rivet-dev/agents/pull/383 * docs(sandbox-adapter): complete the Sandbox Adapter page by @eersnington in https://github.com/rivet-dev/agents/pull/384 * feat(pi): support stable RivetKit 3 by @eersnington in https://github.com/rivet-dev/agents/pull/381 * feat(pi): trace Pi Durable with OpenTelemetry by @eersnington in https://github.com/rivet-dev/agents/pull/385 …View on GitHub ↗
FAQ
Does it automatically preserve agent sessions?
Does production deployment require a particular sandbox vendor?
What permissions and credentials are required?
sandbox-agent credentials extract-env --export can export credentials from local agent configurations for testing.Can it operate entirely offline?
Will it create sandboxes or manage Git repositories?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.