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

At a glance

How it runs
Self-hosted serviceCLILibrary / SDK
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
Linux binary, Docker, or a supported sandbox environmentNode.js or Bun for the TypeScript SDK and npm CLI wrapperCredentials for the selected coding agentShell / CLINetwork accessLocal filesystem
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

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.

  1. A cloud development product can run coding agents in E2B, Daytona, Vercel Sandboxes, or Docker so arbitrary generated code is isolated from production servers.
  2. 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.
  3. A team with a non-TypeScript backend can build against the OpenAPI specification and receive live agent activity over SSE.
  4. An engineering organization that needs audits or replay can stream the normalized JSON events into Postgres, ClickHouse, or Rivet.
  5. Developers investigating remote permissions, messages, and session behavior can inspect the event history through the bundled Inspector UI.
  6. 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
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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
46/ 100 5-point scale 2.3 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 2 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 10/29
Reliability 5/14
Adaptability 10/18
Convention 10/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust10 / 29 · 1.7/5

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.

Reliability5 / 14 · 1.8/5

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.

Adaptability10 / 18 · 2.8/5

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.

Convention10 / 18 · 2.8/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability4 / 8 · 2.5/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 88392beec41f New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/sandbox-agent.svg)](https://followagents.com/en/agents/sandbox-agent)
<a href="https://followagents.com/en/agents/sandbox-agent"><img src="https://followagents.com/badge/sandbox-agent.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. 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 ↗
  2. 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 ↗
  3. 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?
No. Individual agents may keep their own session data on disk, but consumers must stream the universal events into Postgres, ClickHouse, Rivet, or another external store when persistence, audits, or replay are required.
Does production deployment require a particular sandbox vendor?
No single vendor is required. The server is documented for E2B, Daytona, Modal, Cloudflare Containers, Agent Computer, Vercel Sandboxes, Docker, and other environments that can run Linux binaries. Vendor accounts, pricing, and sandbox lifecycle management remain the adopter's responsibility.
What permissions and credentials are required?
Coding agents execute arbitrary code, so production use calls for an isolated sandbox. Server access can be protected with a token, and the selected agent requires its own credentials. sandbox-agent credentials extract-env --export can export credentials from local agent configurations for testing.
Can it operate entirely offline?
The source documents local and sandbox execution but does not promise a fully offline mode. The installer, lazy agent-binary installation, remote HTTP access, and model API credentials indicate network access is part of the documented setup.
Will it create sandboxes or manage Git repositories?
No. Both are explicitly out of scope: use the chosen provider's API for sandbox management and ordinary git commands or provider features for repository operations.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts