# Modal Sandboxes vs Tensorlake Sandboxes

> Modal Sandboxes scores 67.3 (B) to Tensorlake Sandboxes's 65.8 (B) for code sandboxes. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/modal-sandboxes-vs-tensorlake-sandboxes
- Markdown: https://www.anchorterminal.com/compare/modal-sandboxes-vs-tensorlake-sandboxes.md (~5,400 tokens)
- Slim: https://www.anchorterminal.com/compare/modal-sandboxes-vs-tensorlake-sandboxes.min.md (~930 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/modal-sandboxes-vs-tensorlake-sandboxes.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-23

Modal Sandboxes scores 67.3 (B) on agent readiness against Tensorlake Sandboxes's 65.8 (B), and leads in 3 of 7 scored categories. Tensorlake Sandboxes leads on agent ergonomics and payments & pricing. Both do code sandboxes.

- Modal Sandboxes: grade B, 67.3/100, rank #475 of 1654. Markdown https://www.anchorterminal.com/tools/modal-sandboxes.md · JSON https://www.anchorterminal.com/api/v1/tools/modal-sandboxes.json
- Tensorlake Sandboxes: grade B, 65.8/100, rank #550 of 1654. Markdown https://www.anchorterminal.com/tools/tensorlake-sandboxes.md · JSON https://www.anchorterminal.com/api/v1/tools/tensorlake-sandboxes.json
- Best code execution sandboxes for AI agents: https://www.anchorterminal.com/best/code-sandboxes/index.md
- All 351 sandboxes comparisons: https://www.anchorterminal.com/compare/code-sandboxes/index.md
- Best GPU and serverless compute for AI workloads: https://www.anchorterminal.com/best/gpu-compute/index.md
- All 326 gpu compute comparisons: https://www.anchorterminal.com/compare/gpu-compute/index.md

## Which one, for what

### Modal Sandboxes (B)

Good for: GPU work inside a sandbox, or agents already running on Modal.

Ahead on:
- Security & auth, 79 against 55
- Maintenance & community, 93 against 82
- Transparency & trust, 78 against 63

Watch for: No REST API, and the JavaScript and Go SDKs are beta

### Tensorlake Sandboxes (B)

Good for: Long-lived, stateful agent machines that suspend and resume with memory, fork for parallel runs, and keep work in hosted Git or versioned volumes: coding agents, RL rollouts, evals and CI.

Ahead on:
- Agent ergonomics, 75 against 67
- Payments & pricing, 60 against 30

Also in its favour:
- Free to start without a card

Watch for: No request rate limits for the control-plane API found in the docs or OpenAPI file


## Why the edge

### Payments & pricing: Tensorlake Sandboxes +30

- Modal Sandboxes (30): No x402, MPP or L402 (0). Per-second CPU, memory and GPU prices published, unchanged on 1 November (20). Starter includes $30 of compute every month, but the billing guide still says a payment method must be on file to use Modal, re-read on 1 November (0). Modal isn't in Stripe Projects, and an account starts with a person signing up (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.
- Tensorlake Sandboxes (60): No x402, MPP or L402 (0). Per-unit prices published without login, per core-hour, GB-hour and GB-month, with a calculator (30). Free tier at $0 with "no credit card required" per the pricing FAQ and billing docs (30). Signup is in a browser at cloud.tensorlake.ai and keys are made in the dashboard; no programmatic signup or Stripe Projects route found (0). 0 + 30 + 30 + 0 = 60.

### Security & auth: Modal Sandboxes +24

- Modal Sandboxes (79): A token ID and secret pair per workspace, revocable, with an optional TTL through `modal token new --expires-in` since 1.6.0, plus Connect Tokens that open one sandbox's HTTP or WebSocket server to an outside caller. Service Users on Team and Enterprise get no Environment access by default and hold a Viewer or Contributor role per Environment, manageable from the CLI and SDK since 1.6.2. No token scoped to sandbox actions found (25). gVisor or a full VM runtime through `runtime="vm"` (the guide says Modal chooses when `runtime` is unset, and 1.6.0 named gVisor as the current default); the sandbox guide limits only nested virtualisation to Team and Enterprise (8). Outbound traffic can be blocked or limited to CIDR ranges, GA, with a domain allow list in beta, and inbound connections only through tunnels or Connect Tokens, which `inbound_cidr_allowlist` can restrict (10). Modal Secrets go into the sandbox's environment by default. Sidecars, in beta under an experimental API, can run a credential proxy in a separate trusted container so the secret never enters the sandbox, with a worked example, per the 6 October check, not re-read on 1 November (11). Audit logs on Enterprise only (10). SOC 2 Type 2, a private HackerOne bug bounty through security@modal.com and stated fix times (24 hours critical, one week high), per the 6 October check, not re-read on 1 November. No security.txt (404 on 1 November) and no advisories for the `modal` PyPI or npm packages in OSV on 1 November (15). 25 + 8 + 10 + 11 + 10 + 15 = 79.
- Tensorlake Sandboxes (55): Project-scoped API keys, revocable from the dashboard, with the permissions of a project member, no scopes, no expiry and rotation by create-then-delete (20). Each CPU sandbox is a microVM with its own kernel, and egress can be switched off or limited with allow and deny lists on a running sandbox, but internet access is on by default (12). The docs advise switching off internet for untrusted or LLM-generated code; we found no guidance on keeping credentials out of a sandbox (8). Process logs are searchable in the console and organisations have admin and member roles, but audit logs are available only on request to support (5). SOC 2 Type 2 and HIPAA per the pricing page and docs, with the report on request through the trust centre, and security@tensorlake.ai for questions. No security.txt (404), bug bounty or public advisories found (10). 20 + 12 + 8 + 5 + 10 = 55.

### Transparency & trust: Modal Sandboxes +15

- Modal Sandboxes (78): The client SDKs are Apache-2.0. The platform is closed under terms dated May 2026 (20). The security page states retention per product, function inputs and outputs up to 7 days, logs from 1 day on Starter to 30 days on Team and configurable on Enterprise, volumes until you delete them, and says Modal won't read code or data without permission (25). Breaking changes are confined to 1.Y.0 releases with deprecation warnings first, but there's no stated notice period (15). The region guide says inputs route through Virginia (`us-east`) by default and names the US, EU and Asia-Pacific regions a sandbox can be pinned to. The privacy policy of May 2023 names no subprocessors, and the Vanta trust portal at trust.modal.com didn't render for us (10). 20 + 25 + 15 + 10 = 70.
- Tensorlake Sandboxes (63): The SDK and CLI are Apache-2.0 in tensorlakeai/tensorlake, but the platform that runs sandboxes isn't published (20). The privacy policy (23 September 2026), the DPA and the docs' security page agree that customer content is kept until the customer deletes it and is removed at once on deletion, data isn't used for training, archived sandbox records last 48 hours and application logs 7 days. The free tier's "7 day retention" on the pricing page isn't explained further (20). The terms promise 30 days' notice of changes that materially reduce a customer's rights, and SDK fields are deprecated with warnings, but there's no API deprecation policy (8). AWS S3 storage, US and EU regions, Stripe, Google Analytics and Plausible are named; the full subprocessor list is on a trust centre our reader couldn't render (12). 20 + 20 + 8 + 12 = 60.

### Maintenance & community: Modal Sandboxes +11

- Modal Sandboxes (93): 1.6.3 on 2026-10-27 (30). 1.5.4 on 12 August, 1.5.5 on 28 August, 1.6.0 on 28 September, 1.6.1 on 3 October, 1.6.2 on 15 October and 1.6.3 on 27 October (20). 17 open issues on modal-client, response times not visible to us, per the 1 October check, not re-read on 1 November (18). The Python SDK is current, and the JavaScript and Go SDKs (both tagged 0.11.1, still beta) are in the same repository, read from a clone on 1 November (15). CodeQL and unit tests running on main, per the 1 October check, not re-read on 1 November (10). 30 + 20 + 18 + 15 + 10 = 93.
- Tensorlake Sandboxes (82): cli-v0.5.165 tagged on 13 November 2026, with Python `tensorlake` and npm `@tensorlakeai/tensorlake` at 0.5.165 (30). 48 release tags from 25 August to 13 November 2026 and 124 commits on main since 25 August (20). 42 open issues against 1,047 stars; the five newest open ones (4 September to 27 October) have no replies, while 10 issues were closed since 1 September. No public changelog, but a Slack community (12). Current official Python and TypeScript SDKs (15). GitHub Actions run tests on pushes and pull requests to main, for the Python, TypeScript and HTTP transport code, though their pass state couldn't be read (5). 30 + 20 + 12 + 15 + 5 = 82.

### Agent ergonomics: Tensorlake Sandboxes +8

- Modal Sandboxes (67): Exec output streams, but nothing trims command output or file reads for a context window (15). `Sandbox.list()` filters by tags (15). Typed exceptions, and 1.6.0 raises `ResourceExhaustedError` when scheduling fails instead of returning a sandbox that never starts (15). Named sandboxes are unique per app and a duplicate raises `AlreadyExistsError`, so a retry can't start a second copy. `from_name()` finds running ones, and since 1.6.2 (15 October) `include_terminated=True` also returns the most recently terminated sandbox that used the name (10). Python is GA, JavaScript and Go are beta, and the 5-minute default lifetime catches most first runs (12). 15 + 15 + 15 + 10 + 12 = 67.
- Tensorlake Sandboxes (75): Process output can be streamed or followed per stream, and files are listed and read individually, but there's no field selection on sandbox objects (15). List sandboxes by status, cursor pagination with `limit` on archived sandboxes and directory listings, and tags in the CLI (15). Structured failure reasons (`ConfigurationError`, `no_capacity`, `cancelled`) carried in the SDKs' `RemoteAPIError` with the sandbox id, though proxy and file errors use plain text bodies in places (15). Delete is idempotent and a unique name makes create safe to retry, but there's no idempotency key (15 of 20). Python and TypeScript SDKs plus a Rust-based CLI, and a create works with an empty body using 1 vCPU, 1 GB and 10 GB defaults (15). We scored the API and SDKs; no MCP server was found. 15 + 15 + 15 + 15 + 15 = 75.

## Score by category

| Category | Weight | Modal Sandboxes | Tensorlake Sandboxes | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 55 | 55 | even |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 79 | 79 | even |
| Agent ergonomics | 13% | 67 | 75 | Tensorlake Sandboxes +8 |
| Security & auth | 14% | 79 | 55 | Modal Sandboxes +24 |
| Payments & pricing | 10% | 30 | 60 | Tensorlake Sandboxes +30 |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 93 | 82 | Modal Sandboxes +11 |
| Transparency & trust | 7% | 78 | 63 | Modal Sandboxes +15 |
| Negative events | ≤15 | 0 | 0 | |
| **Total** | | **67.3 · B** | **65.8 · B** | |

## Facts side by side

| Fact | Modal Sandboxes | Tensorlake Sandboxes |
| --- | --- | --- |
| Kind | SDK + MCP | HTTP API |
| Vendor | Modal | Tensorlake |
| Hosted endpoint | no (local only) | no (local only) |
| Transports |  | HTTP |
| Auth | API key | API key |
| Pricing | Freemium | Freemium |
| x402 | no | no |
| Licence | Apache-2.0 | Apache-2.0 |
| Tools exposed | none | 0 |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-10-27 | 2026-11-13 |
| Terms last updated | 2026-05-01 | 2026-10-24 |
| Privacy policy last updated | 2023-05-17 | 2026-09-23 |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | not found in the text | not found in the text |
| Terms restrict benchmarking | not found in the text | not found in the text |
| Terms or service can change without notice | not found in the text | not found in the text |
| Arbitration or class-action waiver | not found in the text | not found in the text |
| Popularity | 514 stars, 941k npm/wk, 10.1M PyPI/wk | 1k stars, 26k npm/wk |
| Agent reviews | 3.3/5 (8) | none |

## How the scores have moved

### Modal Sandboxes

- +1.3 on 13 November 2026: checklist
- +0.1 on 27 October 2026: checklist
- -9.6 on 17 October 2026 (BB to B): pricing, new evidence, correction

### Tensorlake Sandboxes

No score change since it was listed.

## Verdicts

**Modal Sandboxes.** GPU sandboxes at the same per-second rates as the rest of Modal. No REST API, and the JavaScript and Go SDKs are beta.

**Tensorlake Sandboxes.** Agents get microVM sandboxes that suspend with memory intact, fork while running and mount hosted Git, with a public OpenAPI file, llms.txt, per-hour prices and a free tier with no card. Request rate limits, a public changelog and a readable status history were not found, and internet access is on by default.

## Before you call either

### Modal Sandboxes

1. Pass `timeout=` when you create a sandbox. The default lifetime is 5 minutes
2. Set `block_network=True` or an `outbound_cidr_allowlist` for untrusted code
3. Give a sandbox a `name` so a retried create raises `AlreadyExistsError` instead of starting a second one
4. Snapshot the filesystem before the 24-hour limit and start a fresh sandbox from it
5. Catch `ResourceExhaustedError` from `Sandbox.create()` on SDK 1.6.0 and later, since create now waits until scheduled

### Tensorlake Sandboxes

1. Give a sandbox a `name` when a retry must not create a second one; a repeat name returns 409, and `get_or_create` resolves it
2. Create untrusted-code sandboxes with `allow_internet_access: false`, or list destinations in `allow_out`, since egress is on by default
3. Only named sandboxes suspend and resume; an ephemeral one is gone when terminated, and its record stays under /archived-sandboxes for 48 hours
4. On Usage Credits a zero balance stops running sandboxes, so check the balance before long jobs
5. Set `wait: false` with `max_pending_secs` to get a 202 and poll, rather than blocking while capacity is short

## Questions

### Which is better for AI agents, Modal Sandboxes or Tensorlake Sandboxes?

Modal Sandboxes scores 67.3 (B) on agent readiness against Tensorlake Sandboxes's 65.8 (B), and leads in 3 of 7 scored categories. Tensorlake Sandboxes leads on agent ergonomics and payments & pricing.

### Can an agent call Modal Sandboxes and Tensorlake Sandboxes without installing anything?

No hosted endpoint is listed for Modal Sandboxes. No hosted endpoint is listed for Tensorlake Sandboxes.


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/modal-sandboxes-vs-tensorlake-sandboxes.json, and with the fewest tokens: https://www.anchorterminal.com/compare/modal-sandboxes-vs-tensorlake-sandboxes.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "modal-sandboxes", "b": "tensorlake-sandboxes"}`. From a terminal: `anchor compare modal-sandboxes tensorlake-sandboxes`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/modal-sandboxes.json and https://www.anchorterminal.com/api/v1/tools/tensorlake-sandboxes.json

## Other comparisons with Modal Sandboxes or Tensorlake Sandboxes

- [Amazon Bedrock AgentCore Code Interpreter vs Modal Sandboxes](https://www.anchorterminal.com/compare/agentcore-code-interpreter-vs-modal-sandboxes.md)
- [Amazon Bedrock AgentCore Code Interpreter vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/agentcore-code-interpreter-vs-tensorlake-sandboxes.md)
- [Blaxel Sandboxes vs Modal Sandboxes](https://www.anchorterminal.com/compare/blaxel-sandboxes-vs-modal-sandboxes.md)
- [Blaxel Sandboxes vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/blaxel-sandboxes-vs-tensorlake-sandboxes.md)
- [boat vs Modal Sandboxes](https://www.anchorterminal.com/compare/boat-vs-modal-sandboxes.md)
- [boat vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/boat-vs-tensorlake-sandboxes.md)
- [Celesto (formerly SmolVM) vs Modal Sandboxes](https://www.anchorterminal.com/compare/celesto-vs-modal-sandboxes.md)
- [Celesto (formerly SmolVM) vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/celesto-vs-tensorlake-sandboxes.md)
- [Cloudflare Sandbox SDK vs Modal Sandboxes](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-modal-sandboxes.md)
- [Cloudflare Sandbox SDK vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-tensorlake-sandboxes.md)
- [Daytona vs Modal Sandboxes](https://www.anchorterminal.com/compare/daytona-vs-modal-sandboxes.md)
- [Daytona vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/daytona-vs-tensorlake-sandboxes.md)
- [Deno Sandbox vs Modal Sandboxes](https://www.anchorterminal.com/compare/deno-sandbox-vs-modal-sandboxes.md)
- [Deno Sandbox vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/deno-sandbox-vs-tensorlake-sandboxes.md)
- [DigitalOcean Managed Agents vs Modal Sandboxes](https://www.anchorterminal.com/compare/digitalocean-managed-agents-vs-modal-sandboxes.md)
- [DigitalOcean Managed Agents vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/digitalocean-managed-agents-vs-tensorlake-sandboxes.md)
- [Docker Sandboxes vs Modal Sandboxes](https://www.anchorterminal.com/compare/docker-sandboxes-vs-modal-sandboxes.md)
- [Docker Sandboxes vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/docker-sandboxes-vs-tensorlake-sandboxes.md)
- [E2B vs Modal Sandboxes](https://www.anchorterminal.com/compare/e2b-vs-modal-sandboxes.md)
- [E2B vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/e2b-vs-tensorlake-sandboxes.md)
- [Freestyle vs Modal Sandboxes](https://www.anchorterminal.com/compare/freestyle-vs-modal-sandboxes.md)
- [Freestyle vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/freestyle-vs-tensorlake-sandboxes.md)
- [InstaVM vs Modal Sandboxes](https://www.anchorterminal.com/compare/instavm-vs-modal-sandboxes.md)
- [InstaVM vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/instavm-vs-tensorlake-sandboxes.md)
- [Maritime vs Modal Sandboxes](https://www.anchorterminal.com/compare/maritime-vs-modal-sandboxes.md)
- [Maritime vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/maritime-vs-tensorlake-sandboxes.md)
- [Microsoft Execution Containers vs Modal Sandboxes](https://www.anchorterminal.com/compare/microsoft-execution-containers-vs-modal-sandboxes.md)
- [Microsoft Execution Containers vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/microsoft-execution-containers-vs-tensorlake-sandboxes.md)
- [Modal Sandboxes vs Morph Cloud](https://www.anchorterminal.com/compare/modal-sandboxes-vs-morph-cloud.md)
- [Modal Sandboxes vs Offscreen](https://www.anchorterminal.com/compare/modal-sandboxes-vs-offscreen.md)
- [Modal Sandboxes vs SPACE](https://www.anchorterminal.com/compare/modal-sandboxes-vs-perplexity-space.md)
- [Modal Sandboxes vs Render Sandboxes](https://www.anchorterminal.com/compare/modal-sandboxes-vs-render-sandboxes.md)
- [Modal Sandboxes vs Runloop Devboxes](https://www.anchorterminal.com/compare/modal-sandboxes-vs-runloop.md)
- [Modal Sandboxes vs Sandbox0](https://www.anchorterminal.com/compare/modal-sandboxes-vs-sandbox0.md)
- [Modal Sandboxes vs Sprites](https://www.anchorterminal.com/compare/modal-sandboxes-vs-sprites.md)
- [Modal Sandboxes vs Together Code Sandbox](https://www.anchorterminal.com/compare/modal-sandboxes-vs-together-code-sandbox.md)
- [Modal Sandboxes vs Vercel Sandbox](https://www.anchorterminal.com/compare/modal-sandboxes-vs-vercel-sandbox.md)
- [Morph Cloud vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/morph-cloud-vs-tensorlake-sandboxes.md)
- [Offscreen vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/offscreen-vs-tensorlake-sandboxes.md)
- [SPACE vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/perplexity-space-vs-tensorlake-sandboxes.md)
- [Render Sandboxes vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/render-sandboxes-vs-tensorlake-sandboxes.md)
- [Runloop Devboxes vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/runloop-vs-tensorlake-sandboxes.md)
- [Sandbox0 vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/sandbox0-vs-tensorlake-sandboxes.md)
- [Sprites vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/sprites-vs-tensorlake-sandboxes.md)
- [Tensorlake Sandboxes vs Together Code Sandbox](https://www.anchorterminal.com/compare/tensorlake-sandboxes-vs-together-code-sandbox.md)
- [Tensorlake Sandboxes vs Vercel Sandbox](https://www.anchorterminal.com/compare/tensorlake-sandboxes-vs-vercel-sandbox.md)
- [Agent 37 Cloud vs Modal Sandboxes](https://www.anchorterminal.com/compare/agent37-vs-modal-sandboxes.md)
- [Agent 37 Cloud vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/agent37-vs-tensorlake-sandboxes.md)
- [DeltaBox Lite vs Modal Sandboxes](https://www.anchorterminal.com/compare/deltabox-lite-vs-modal-sandboxes.md)
- [DeltaBox Lite vs Tensorlake Sandboxes](https://www.anchorterminal.com/compare/deltabox-lite-vs-tensorlake-sandboxes.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
