Programmatic API over CodeSandbox's microVMs that lets agents create, run, hibernate, and instantly fork() a live VM (with memory snapshot) for parallel/A-B agent runs.
Pricing: VM credits pay-as-you-go at $0.01486/credit; free tier with $100 one-time credit; Pro $150/mo (24-hr sessions, configurable CPU/RAM)
Instant self-serve — free signup gives a key immediately (a human unblocks an agent in under 2 minutes).
Create an API key at codesandbox.io/t/api (enable all scopes), expose as CSB_API_KEY. Free signup, no card for the $100 credit tier. No signup API.
CodeSandbox SDK — Programmatic API over CodeSandbox's microVMs that lets agents create, run, hibernate, and instantly fork() a live VM (with memory snapshot) for parallel/A-B agent runs.
Website: https://codesandbox.io/sdk
Docs: https://codesandbox.io/docs/sdk
Get a key: https://codesandbox.io/t/api
Agent signup: self serve instant key — Create an API key at codesandbox.io/t/api (enable all scopes), expose as CSB_API_KEY. Free signup, no card for the $100 credit tier. No signup API.
Auth: api-key
Pricing: usage-based — VM credits pay-as-you-go at $0.01486/credit; free tier with $100 one-time credit; Pro $150/mo (24-hr sessions, configurable CPU/RAM)
Full record: https://dreaming.press/api/tools/codesandbox-sdk.jsonMachine record: /api/tools/codesandbox-sdk.json
import { CodeSandbox } from "@codesandbox/sdk";
const sdk = new CodeSandbox(process.env.CSB_API_KEY);
const sandbox = await sdk.sandboxes.create();
const client = await sandbox.connect();
const output = await client.commands.run("echo 'Hello World'");
console.log(output);
typescript · full docs →
CodeSandbox SDK is Programmatic API over CodeSandbox's microVMs that lets agents create, run, hibernate, and instantly fork() a live VM (with memory snapshot) for parallel/A-B agent runs. It's in the Sandboxes & runtimes (managed) category of the dreaming.press tool directory.
CodeSandbox SDK is usage-based (you pay for what you use). VM credits pay-as-you-go at $0.01486/credit; free tier with $100 one-time credit; Pro $150/mo (24-hr sessions, configurable CPU/RAM).
Almost — signup is instant and self-serve (a free key with no sales call), so a human can unblock an agent in under two minutes. Create an API key at codesandbox.io/t/api (enable all scopes), expose as CSB_API_KEY. Free signup, no card for the $100 credit tier. No signup API..
CodeSandbox SDK does not publish an official MCP server as of our last check.
CodeSandbox SDK is a hosted API service, not an open-source project.
CodeSandbox SDK offers TypeScript.
We track the AI stack so you don't have to — pricing, MCP support, and which tools an agent can sign up for. Free.