Repository avatar
AI Tools
v0.2.1
active

sandboxes

ai.quietrobot/sandboxes

Firecracker microVM sandboxes for AI agents: run code, pause, snapshot, rewind, share previews.

Documentation

Quiet Robot Sandboxes SDKs

Official clients and tools for Quiet Robot Sandboxes: governed sandboxes for AI agents. Each sandbox is a Firecracker microVM that starts in about a second. Your policy decides what a sandbox may run and reach, and commands your rules hold wait for a person to approve them.

New here? QUICKSTART.md gets you to a running sandbox in 5 minutes.

Using a coding agent? Give it sandboxes in one step: /plugin marketplace add Quiet-Robot/sandboxes-sdk in Claude Code, codex plugin marketplace add Quiet-Robot/sandboxes-sdk in Codex, or Add to Cursor. Every other tool is in plugin/.

InstallDocs
TypeScript / JavaScript SDKnpm install @quietrobot/sandboxestypescript/
Python SDKpip install quietrobot-sandboxespython/
qr command linepipx install quietrobot-sandboxes, or a standalone binary from Releasespython/
Plugin and skills for Claude Code, Cursor, Codex, VS Code, Gemini CLI and more (hosted MCP server, sign in once)/plugin marketplace add Quiet-Robot/sandboxes-sdkplugin/
MCP server (Claude Code, Cursor, Claude Desktop, any MCP client)https://api.quietrobot.ai/mcp, or locally npx -y @quietrobot/sandboxes-mcpmcp/
Agent framework tools (Vercel AI SDK, OpenAI Agents SDK, LangChain, Mastra, ComputeSDK)npm install @quietrobot/sandboxes-aiai/
LangGraph: a sandbox per node, approvals as graph interrupts, rewind on retrypip install langgraph-quietrobotlanggraph/
GitHub Actionuses: Quiet-Robot/sandboxes-sdk/action@v0action/
Starter templates: coding agent, browser agent, data notebookcopy a foldertemplates/

You need an API key: sign in at quietrobot.ai/app, open API keys, then

export QR_API_KEY=qr_live_...

Everything here reads QR_API_KEY, and QR_BASE_URL if you need to point it somewhere other than https://api.quietrobot.ai. The full API is described at https://api.quietrobot.ai/api/v1/openapi.json.

What the SDKs do

  • Commands: run and wait, stream output as it arrives, run in the background and read the output later, write to stdin, kill.
  • Terminals: an interactive shell on a pseudo-terminal (qr shell sbx_123).
  • Code: a notebook-style Python kernel; variables persist between calls, and charts come back as PNG.
  • Files: read, write, list, remove; qr cp copies whole folders.
  • Preview URLs: expose a port and get https://<port>-<id>.quietrobot.dev, private (a token or a share link) or public.
  • State: pause and resume (memory and running processes kept, paused time not billed), snapshots, fork into copies, rewind to a snapshot.
  • Governance: per-sandbox network rules, secrets that never enter the sandbox, approvals, and an audit log of every command.
  • Volumes, metrics and webhooks (signed, with verifyWebhook() / verify_webhook() to check them).

Coming from E2B

Change one import. The E2B-style API is a layer over the same client, so the policy, approvals and audit log apply to it too.

// import { Sandbox } from "e2b";
// import { Sandbox } from "@e2b/code-interpreter";
import { Sandbox } from "@quietrobot/sandboxes/e2b";

const sbx = await Sandbox.create();
const r = await sbx.commands.run("echo hi");
const cell = await sbx.runCode("1 + 1");
await sbx.files.write("notes.txt", "hello");
console.log(`https://${sbx.getHost(3000)}`);
await sbx.kill();
# from e2b import Sandbox
# from e2b_code_interpreter import Sandbox
from quietrobot_sandboxes.e2b import Sandbox

with Sandbox() as sbx:
    print(sbx.commands.run("echo hi").stdout)
    print(sbx.run_code("1 + 1").text)

Set QR_API_KEY instead of E2B_API_KEY. Covered: Sandbox.create/connect/list/kill/setTimeout, commands.run (foreground and background, with CommandHandle), commands.connect/kill/sendStdin/list, files.read/write/list/exists/makeDir/remove/rename, getHost, runCode, pause, setTimeout, isRunning and getInfo. Not covered yet: E2B custom template builds (use our base or minimal templates plus a snapshot) and filesystem watching.

Repository layout

PathWhat
typescript/The @quietrobot/sandboxes package (and its /e2b entry)
python/The quietrobot-sandboxes package, its e2b and integrations modules, and the qr command line
mcp/The @quietrobot/sandboxes-mcp server
plugin/The plugin for Claude Code, Cursor and Codex: the hosted MCP server and four agent skills
.claude-plugin/, .cursor-plugin/, .agents/plugins/, gemini-extension.jsonMarketplace and extension files that point at plugin/, so the repository installs in one step
ai/The @quietrobot/sandboxes-ai framework tools
action/The GitHub Action
templates/Starter projects
tests/Live tests against the real service (they need a key and create sandboxes)
scripts/Version, default address, kernel and release checks
.github/workflows/check.yml (every pull request) and release.yml (tags)

Contributing

Bug reports and pull requests are welcome. Before opening a pull request, run the same checks as .github/workflows/check.yml:

scripts/check-sdk-release.sh
scripts/sync-kernel.sh --check
node scripts/check-agent-packages.mjs
npm install && npm run build      # the TypeScript SDK, the MCP server and the adapters
python -m build python --outdir dist-py && python -m twine check --strict dist-py/*

How releases are made is in RELEASING.md.

License

Apache 2.0. See LICENSE.

No installation packages available.

Remote