Together Code Sandbox
together, paid only, microVM isolation.
$0.149/h
No free usage the router counts. At 2 vCPU and 4 GiB the router ranks it at $0.149/h. It is used only with allowPaid on.
Terms
- Price
- $0.045/vCPU-h
- Notes
- custom plans
- Adapter's note
- Available on Together's custom plans; no self-serve free usage for the new SDK.
- Checked
- Nov 11, 2026 against docs.together.ai/docs/together-code-sandbox
The adapter
Together Code Sandbox (formerly the CodeSandbox SDK): Firecracker VMs that boot from a snapshot. The new SDK is on Together's custom plans (no self-serve free tier); the legacy CodeSandbox Build plan had free credits but that SDK is deprecated. Spoken over HTTP, no SDK, with the calls the official SDK (npm `together-sandbox` 4.1.1, MIT) makes: - the management API, https://api.bartender.codesandbox.io/v1 (Bearer TOGETHER_API_KEY), OpenAPI https://github.com/togethercomputer/together-sandbox/blob/main/api-openapi.json; - the agent inside each running sandbox, at its `agent.url` with its `agent.token` (Bearer), OpenAPI https://github.com/togethercomputer/together-sandbox/blob/main/sandbox-openapi.json. Commands run as execs whose output is a Server-Sent Events stream; - the image builder (`builder.` in place of `api.bartender.`), which turns an image into a snapshot. Docs: https://docs.together.ai/docs/together-code-sandbox. TOGETHER_BASE_URL overrides the API host, as it does for the SDK. CLI: `together-sandbox`.
- Keys
TOGETHER_API_KEY- Connects through
- REST api.bartender.codesandbox.io/v1 + the sandbox agent (no SDK)
- Capabilities
- Any OCI image, Native file listing, Snapshots
- Isolation
- microVM
- Operating system
- Linux
- Longest sandbox
- no limit declared
- Longest command
- no cap declared
- Timeout
- The provider stops it at the deadline
- Billing
- Wall clock, every second it runs
- Source
- src/providers/together.ts, and the provider’s site
const sbx = await router.create({ providers: ["together"] });{
"providers": {
"together": {
"freeTier": {
"kind": "none"
},
"priority": 10
}
}
}