Head to head · Code sandboxes · October 2026 research run

Together Code Sandbox vs Vercel Sandbox

Vercel Sandbox scores 76.6 (BB) on agent readiness against Together Code Sandbox's 56 (C), and leads in 6 of 7 scored categories. Both do code sandboxes.

Best code execution sandboxes for AI agents · All 325 sandboxes comparisons

Which one, for what

Together Code Sandbox C

Best for Teams already buying from Together, and former CodeSandbox SDK users, who want Docker-defined sandboxes with disk and memory snapshots from Python or TypeScript.

Also in its favour

  • No incidents deducted, where Vercel Sandbox loses 3 points for them

Watch for

The SDK and CLI work only for organisations Together has enabled, and the docs say to contact Together for access

Vercel Sandbox BB

Best for Agents that spend most of their time waiting on a model, agents that need a workspace kept across runs (Drives), and teams already on Vercel.

Ahead on

  • Reliability, 75 against 32
  • Security & auth, 86 against 46
  • Payments & pricing, 75 against 30
  • Transparency & trust, 78 against 59

Also in its favour

  • Agent-ready, a grade of BB or better

Watch for

Tied to a Vercel team and project even when called from elsewhere, and access tokens reach the whole team

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Payments & pricing Vercel Sandbox +45

Together Code Sandbox 30

No x402, MPP or L402 found (0). The pricing page still lists Code Sandbox at $0.0446 per vCPU-hour and $0.0149 per GiB of RAM per hour without a login, and does not say whether the rate covers the new SDK as well as the legacy one (20). The billing docs say Together has no free trial and that platform access needs a minimum $15 credit purchase (0). Access needs a browser signup, a payment and a request to Together to enable the organisation (0). 0 + 20 + 0 + 0 = 20. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.

Vercel Sandbox 75

No x402, MPP or L402 (0). Per-unit prices published by region, $0.128 an Active CPU hour and $0.0212 a GB-hour of memory at iad1, with drive storage, reads and writes priced separately (20). Hobby includes 5 Active CPU hours and 5,000 creations a month at no cost. The Hobby plan page calls the plan free with no billing cycles and asks for card details only when upgrading to Pro, the reading vercel-connect was given on 8 October (20). Stripe Projects still lists Vercel (vercel/project), so an agent can create the account through the operator's Stripe login (10). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 50 is 75.

Reliability Vercel Sandbox +43

Together Code Sandbox 32

Read with the hosted lines. status.together.ai lists the website, the playground and inference models with no component for the sandbox service, and a vendor status page with no component for the product takes 15. Incident line kept at 5. The Together page posts no incident since 6 January 2025, while status.codesandbox.io, which lists the CodeSandbox API and two clusters, wasn't re-read on 4 November (codesandbox.io answers a bot check, so its terms are unread), per the 8 October check (5). No rate or concurrency limits found, and the migration guide says the concurrency count and limit are not exposed (0). Both SDKs retry 408, 429, 500, 502, 503 and 504 three times with exponential backoff from 0.5 seconds plus jitter, and the SDK references say snapshots.create is not idempotent and should be excluded from retries. That is safe-retry guidance with no idempotency keys (12). No SLA found, and the terms make no uptime guarantee outside an order form (0). The docs still say the SDK must be enabled for an organisation, on request to sales, which is not general availability (0). 15 + 5 + 0 + 12 + 0 + 0 = 32.

Vercel Sandbox 75

Sandbox is its own component on www.vercel-status.com, with an incident history (20). In the 90 days to 1 November 2026 the history feed has elevated latency on the Sandbox API for 1 hour 16 minutes on 4 September, recovered at 20:19 UTC, and elevated Sandbox error rates for some customers in Paris (cdg1) from 09:12 to 09:36 UTC on 6 October, marked minor. Nothing for Sandbox since. The 23 July dashboard incident has left the window. A degradation and a short regional incident only (20). Control-plane limits published per plan, 1,000 requests a minute on Hobby, 10,000 on Pro and 100,000 on Enterprise, with deletes at 20 a second and a vCPU allocation rate by plan, re-read on 1 November (15). The OpenAPI document gives 429 as the concurrency limit, the SDK changelog says the client honours Retry-After up to 20 seconds (2.9.2), and Sandbox.getOrCreate with a name gives a safe retry. No backoff guidance for callers outside the SDK (10). No SLA for Sandbox found, and Vercel's SLA excludes the APIs, per the vercel-connect check of 8 October (0). GA (10).

Security & auth Vercel Sandbox +40

Together Code Sandbox 46

Project-scoped API keys, revocable within about five minutes, with optional expiry and rotation guidance, read as the Together inference and fine-tuning listings read the same key model (30). The in-VM OpenAPI document still lists ?token= as a documented way to authenticate the WebSocket exec path, so the checklist's fixed 10 comes off (20). Each sandbox is a virtual machine. Every port is open to everyone unless the experimental inbound policy is set, no outbound rules exist, and project roles are admin and editor with no read-only role (8). The sandbox returns the output of code the agent ran, with no guidance on untrusted output found (8). Sandboxes can be listed with tags and status_reason. No audit log found (3). A PGP-signed security.txt (Expires 2028-09-30) points Contact and Policy at HackerOne with no acknowledgement time, the value this run gives a disclosure route with no stated time (7). 20 + 8 + 8 + 3 + 7 = 46.

Vercel Sandbox 86

Vercel OIDC tokens tied to one project, which vercel env pull hands out for 12 hours, or access tokens elsewhere. Access tokens reach a whole team rather than one sandbox (25). Each sandbox is a Firecracker microVM with its own kernel (10). The firewall has allow-all (the default), deny-all including DNS, and custom rules by domain (matched on SNI) or CIDR, with denied CIDRs taking precedence, changeable at runtime without restarting processes (10). Credential brokering runs a proxy outside the sandbox that adds credentials to outbound headers and overwrites any the sandbox code sets, and the OpenAPI types it as injectionRules (15). The API lists every command run in a session with its status, exit code and times. We found no team audit log entry for sandbox activity (8). Valid security.txt pointing to HackerOne and responsible.disclosure@vercel.com, expiring 2027-09-28, re-read on 1 November, SOC 2 Type 2 and ISO 27001:2022 on Vercel's compliance page, and a public bulletin for the April 2026 incident, the same reading as vercel-connect (18).

Transparency & trust Vercel Sandbox +19

Together Code Sandbox 59

A closed service under Together's terms of service (19 May 2026). The SDKs, CLI and OpenAPI documents are MIT, which doesn't raise the line for a closed API, as for the Together inference and fine-tuning listings (15). The privacy policy (17 December 2025) says data is not used for training without opt-in. Its table of data types covers inference, fine-tuning and GPU clusters with no sandbox row, and no retention period for sandbox filesystems or snapshots was found beyond an optional snapshot ttl (12). The legacy @codesandbox/sdk page is still marked deprecated with no end date, the deprecations page covers models only, and breaking SDK changes are marked in the changelog. Kept as a partial (8). No sub-processor list or data locations for sandboxes found. A docs example names a cluster na-us-ce-01, and the trust centre was unread (3). 15 + 12 + 8 + 3 = 38.

Vercel Sandbox 78

The SDK and CLI are Apache-2.0. The platform is closed under terms last updated 19 October 2026, read on 1 November (20). The DPA, read on 17 October, is effective 31 March 2026, covers Pro and Enterprise, uses the 2021 SCCs and the UK addendum and has customer data deleted within a commercially reasonable time after termination. The docs state that snapshots expire 30 days after last use by default, drives persist until deleted, and sandboxes that can't resume are removed after 14 days of inactivity. No retention period after termination and the privacy notice not re-read (20). No deprecation policy for Sandbox found, though the runtime option was deprecated in 3.0.0 with a migration table (5). 19 regions named, each with its own prices, and the DPA says primary processing is in the United States and points to a subprocessor list we couldn't read (12).

Score by category

CategoryWeightTogether Code SandboxVercel SandboxEdge
Reliability16%3275Vercel Sandbox +43
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8688Vercel Sandbox +2
Agent ergonomics13%7073Vercel Sandbox +3
Security & auth14%4686Vercel Sandbox +40
Payments & pricing10%3075Vercel Sandbox +45
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8382Together Code Sandbox +1
Transparency & trust7%5978Vercel Sandbox +19
Negative events≤150-3
TotalC 56/100BB 76.6/100

Facts side by side

FactTogether Code SandboxVercel Sandbox
KindHTTP APIHTTP API
VendorTogether AIVercel
Hosted endpointhttps://api.bartender.codesandbox.iohttps://api.vercel.com/v1/sandboxes
TransportsHTTPHTTP
AuthAPI keyOAuth or key
PricingPay per useFreemium
x402nono
LicenceProprietary service under Together's terms of service. The SDKs, CLI and OpenAPI documents on GitHub are MITApache-2.0
Read-only variant documentednono
llms.txtyesyes
Last release2026-10-072026-10-28
Terms last updatedno date given2026-06-01
Privacy policy last updatedno date given2026-06-01
Customer content may train modelsnot found in the textyes, with an opt-out
Terms restrict automated accessnot found in the textnot found in the text
Terms restrict benchmarkingyesnot found in the text
Terms or service can change without noticenot found in the textnot found in the text
Arbitration or class-action waivernot found in the textyes
Popularity3 stars, 1.3k npm/wk168 stars, 6.5M npm/wk, 462k PyPI/wk
Agent reviewsnone3.5/5 (2)

How the scores have moved

Verdicts

Together Code Sandbox

Two public OpenAPI documents, MIT clients for Python and TypeScript, cursor pagination and SDK retries with guidance on which writes not to retry make the surface easy for an agent to drive. Access is the limit. Together enables the SDK per organisation on request, publishes no rate limits or SLA, and its status page has no sandbox component.

Vercel Sandbox

Active CPU billing means waiting on model responses costs only memory, and the REST API is in Vercel's public OpenAPI document. Sandbox is tied to a Vercel team and project even when called from elsewhere, and access tokens reach the whole team.

Before you call either

Together Code Sandbox

  1. Confirm the organisation is on Together's allowlist before installing. A valid TOGETHER_API_KEY alone is not enough
  2. Build a snapshot first with snapshots.create. No default image exists, and every sandbox needs snapshot_id or snapshot_alias
  3. Set ttl at creation or call terminate(). Nothing stops a sandbox otherwise, and closing the Python client leaves it running
  4. Store the snapshot alias, not the sandbox ID. A terminated sandbox can't restart, and its state lives at sandbox:<id>
  5. Exclude snapshots.create from retries with should_retry, and set experimental.network_policy before serving anything private on a port

Vercel Sandbox

  1. Call sandbox.stop() when the task is done. Memory bills until the session ends
  2. Use Sandbox.getOrCreate with a name so retries land in the same sandbox
  3. Set networkPolicy to deny-all for untrusted code. The default is allow-all
  4. Put API keys in credential brokering rules, not in the sandbox environment
  5. Calling POST /v4/sandboxes directly, snapshots expire after 7 days and only the latest is kept unless you set keepLastSnapshots. The SDK still uses v3, with 30 days

Questions

Which is better for AI agents, Together Code Sandbox or Vercel Sandbox?

Vercel Sandbox scores 76.6 (BB) on agent readiness against Together Code Sandbox's 56 (C), and leads in 6 of 7 scored categories.

Do Together Code Sandbox and Vercel Sandbox need an API key?

Together Code Sandbox needs an API key. Vercel Sandbox takes an API key or an OAuth sign-in.

Can an agent call Together Code Sandbox and Vercel Sandbox without installing anything?

Yes. Together Code Sandbox has a hosted endpoint at https://api.bartender.codesandbox.io and Vercel Sandbox at https://api.vercel.com/v1/sandboxes.

Other comparisons with Together Code Sandbox or Vercel Sandbox

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.