← all repositories
rivet-dev/agents

One HTTP API for every coding agent in your sandbox

Sandbox Agent runs inside your isolated environment and gives Claude Code, Codex, OpenCode, Cursor, Amp, and Pi a single remote-control interface.

★1.7k stars TypeScript Coding AssistantsAgents
agents
Not currently ranked.
star history

What it does

It’s a small Rust server you run inside a sandbox (E2B, Daytona, Docker, whatever runs Linux binaries). Your app connects over HTTP/SSE to start agent sessions, send messages, stream events, and handle permission prompts. Each supported agent — Claude Code, Codex, OpenCode, Cursor, Amp, Pi — gets an adapter that translates to one universal API, so swapping agents is a config change, not a rewrite.

The interesting bit

The boring part is the valuable part: TTY handling. Coding agents expect interactive terminals, and SSH with piped commands breaks tool confirmations and streaming. Sandbox Agent absorbs all of that behind a clean HTTP surface, and normalizes every agent’s event format into one JSON schema you can persist to Postgres, ClickHouse, or Rivet for replay and audit.

Key highlights

  • Single static Rust binary — fast startup, no Node runtime to ship into the sandbox
  • TypeScript SDK with embedded (local subprocess) and server (remote) modes
  • Built-in Inspector UI for debugging sessions and events
  • OpenAPI spec, so any language can integrate, not just TypeScript
  • CLI mirrors the HTTP endpoints; a credentials extract-env command pulls your local agent API keys for sandbox testing

Caveats

  • No session persistence built in — you stream events out to your own storage or lose them
  • OpenCode compatibility and the Gigacode TUI experiment are explicitly labeled experimental
  • Python SDK is still on the roadmap, so non-TypeScript shops lean on the raw HTTP API

Verdict

If you’re building a product that runs coding agents in isolated environments, this saves you from reimplementing six integrations. If you just run agents locally in a terminal, you don’t need it.

Frequently asked

What is rivet-dev/agents?
Sandbox Agent runs inside your isolated environment and gives Claude Code, Codex, OpenCode, Cursor, Amp, and Pi a single remote-control interface.
Is agents open source?
Yes — rivet-dev/agents is open source, released under the Apache-2.0 license.
What language is agents written in?
rivet-dev/agents is primarily written in TypeScript.
How popular is agents?
rivet-dev/agents has 1.7k stars on GitHub.
Where can I find agents?
rivet-dev/agents is on GitHub at https://github.com/rivet-dev/agents.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.