Quickstart
Start a sandbox in the browser, from the SDK, or on your own Cloudflare account. Each route gives you the same shell, disk, and toolchains.
Live sandbox — connecting…
The terminal above is a live sandbox running real node on workerd’s V8,
first a prime sieve, then a 256-color banner. Launch at
nimbus-os.dev creates the same session.
The /s/<id>/ URL is the session. Bookmark it and the files persist between
visits. An idle session costs nothing. Type your own commands when the demo
finishes. npm install, git clone, and python all work.
Try this first:
node --version # workerd nodejs_compat, the same V8 as Workersgit clone https://github.com/AshishKumar4/Markflowcd Markflow && npm install # real npm, live registrynpm run dev # vite with HMR, previewed in the iframeFrom code, create one sandbox per task. Create to first command takes ~0.7 s median (benchmarks). Use a colocated Durable Object binding inside your own Worker, or connect to any deployment with a token.
import { Nimbus } from '@nimbus-sh/sdk';
export default { async fetch(_request: Request, env: Env) { const box = Nimbus.fromEnv(env).sandbox('job-123', { tenant: 'acme', subject: 'agent' }); return Response.json(await box.exec('python -c "print(2 + 2)"')); },};import { Nimbus, issueNimbusToken } from '@nimbus-sh/sdk';
const token = await issueNimbusToken(env, { tn: 'acme', sub: 'agent', scopes: ['sandbox:use'], sid: 'job-123',});const box = Nimbus.connect({ endpoint: 'https://my-nimbus.workers.dev', token }).sandbox('job-123');await box.ready();To run Nimbus on your own Cloudflare account, scaffold a Worker and deploy it:
npx create-nimbus-app my-nimbus-worker && cd my-nimbus-worker && npm installCLOUDFLARE_ACCOUNT_ID=<account-id> npx @nimbus-sh/cli setup cloudflare --name my-nimbus-workernpx wrangler secret put JWT_SECRETnpx wrangler deploysetup cloudflare creates the R2 buckets and seeds the Python, Ruby, and clang
runtimes. Embed Nimbus in a Worker has the details. The
hosted demo is only for evaluation. It has no SLA, may be reset, and is not a
place for secrets.