computesdk /computesdk
A free and open-source toolkit for running other people's code in your applications.
★ 302⑂ 155👁 1⑃ 1,225● 23▤ 3,616
+0
Daily
+1
Weekly
302
stars
155
forks
1
watchers
1,225
prs
23
issues
3,616
releases
README
One router for sandboxes and actions.
Run agent code and GitHub workflows across sandbox providers. We handle the compute.
Sandbox Router ·
Actions ·
Public benchmarks ·
Docs
---
One router. Two ways to run.
- Sandbox Router runs generated code, tests, and scripts in isolated sandboxes. Use the compute CLI, TypeScript SDK, or API. Let ComputeSDK choose a provider, select one yourself, or set a fallback order. Use managed compute or bring your own provider keys.
- ComputeSDK Actions runs supported GitHub workflows on the same router. Follow logs, download artifacts, and rerun failed jobs.
Open the dashboard · Read the docs
Start on a provider
Create a sandbox on a specific provider through ComputeSDK:
bash
npm create modal
Or: npm create e2b
These starters install or upgrade the ComputeSDK CLI when needed, sign you in and create a sandbox pinned to that provider. They use your organization's managed-compute or BYOK routing. See sandbox providers for setup and cleanup.
Start with the CLI
bash
npm install -g @computesdk/cli
compute login
compute sandboxes route
compute new
compute exec echo hello
compute destroy
Other installation options include macOS/Linux and Windows installers. Creation requires available credit or a configured BYOK route. Sandboxes keep running and billing until destroyed or their lifetime expires.
Build with the TypeScript SDK
typescript
import { compute } from 'computesdk';
const sandbox = await compute.instances.create({ size: 'small' });
try {
const result = await sandbox.runCommand('echo hello');
console.log(result.stdout);
} finally {
await sandbox.destroy();
}
bash
npm install computesdk
export COMPUTE_API_KEY="your_org_api_key"
Follow the complete runnable SDK quickstart to create an API key and run this from Node.js. See routing and BYOK to choose account modes and understand billing.
Go further
| Task | Guide |
| --- | --- |
| Send a local project to a sandbox | Project sync |
| Configure managed compute and BYOK | Routing and billing |
| Use the SDK in an application or agent | TypeScript SDK |
| Run workflows on sandbox providers | Actions |
| Connect an AI assistant | MCP server |
Open-source SDK and contributing
For direct vendor integrations, provider development and repository contribution instructions, see the open-source SDK guide. Individual adapters are documented in their GitHub packages.
Community and support
GitHub Discussions · GitHub Issues
License
MITTop issues
#564Update docs to list all providers [prev Support Beam]2 comments · 2026-06-06#1010Deprecate @computesdk/declaw: Declaw's public platform closes 25 Oct 20261 comments · 2026-10-24#376Support Kubernetes1 comments · 2026-03-12#343Add Sprites.dev as a provider1 comments · 2026-03-03#1214Provider: LumiCloud (E2B-compatible API) — its own package, or a `domain` option on @computesdk/e2b?0 comments · 2026-11-22#690Provider request: Scalix Sandboxes (Firecracker microVMs, EU)0 comments · 2026-08-06#612Sandbox pooling for zero cold-start latency0 comments · 2026-07-02#574@computesdk/e2b is hardcoded to E2B's hosted API (e2b_ key check + base-URL not threaded through getById/list/destroy)0 comments · 2026-06-10
Discussions
Latest release
@computesdk/[email protected] @computesdk/[email protected] 2026-11-25Patch Changes - a76eb1a: Adapt to the bumped provider SDKs: - @computesdk/blaxel: @blaxel/core 0.3.41 returns paginated image summaries — tags moved to listImageTags, so template listing and build polling page those endpoints instead of reading spec.tags. - @computesdk/r2, @computesdk/s3: @tigrisdata/storage 3.25 added includeMetadata get overloads — the download call now pins the bare-stream overload so result.data stays a ReadableStream.