Modal Sandboxes
Code executionApache-2.0
Modal Sandboxes are isolated containers on the Modal platform for running code you do not fully trust, such as code generated by an LLM or submitted by users. A program creates a sandbox through the Python, JavaScript or Go SDK. Two runtimes are documented: gVisor, suited to most workloads, and virtual machines with their own Linux kernel; GPU sandboxes work with gVisor only. The Python package also ships the modal command-line tool. Compute is billed per core and per GiB of memory by the second, under a Starter plan at $0 plus compute or a Team plan at $250 plus compute per month.

Pinout
- MCP server: not checked yet
- HTTP API: not checked yet
- command line: supported, verified
- Python SDK: supported, verified
- TypeScript SDK: supported, verified
- OpenAPI description: not checked yet
| Interface | Status | Source we read | Read on |
|---|---|---|---|
| MCP server | Not checked yet | — | — |
| HTTP API | Not checked yet | — | — |
| Command line | Supported, verified | README: the Python package includes the modal CLI | |
| Python SDK | Supported, verified | Sandboxes guide: Python SDK (modal.Sandbox.create) | |
| TypeScript SDK | Supported, verified | Sandboxes guide: JavaScript/TypeScript SDK | |
| OpenAPI description | Not checked yet | — | — |
Facts
| License | Apache-2.0 (SDK repository modal-labs/modal-client, not the hosted platform). GitHub modal-labs/modal-client, sidebar: license, read . |
|---|---|
| SDK languages | Python (sync and async), JavaScript, Go. Sandboxes guide, SDK examples, read . |
| Runtimes | gVisor and VM (own Linux kernel); GPU sandboxes only with gVisor. Sandboxes guide, runtimes and GPU, read . |
| CLI | The Python package includes the modal CLI. README, read . |
| Latest version | 1.6.4, dated 2026-11-11 (Python client changelog). Changelog, top entry, read . |
| Pricing | Starter $0 + compute per month with $30 per month free credits; Team $250 + compute per month with $100 per month free credits; Enterprise custom. Sandbox compute $0.00003942 per core per second and $0.00000667 per GiB per second (non-preemptible, 3x list price). Pricing page, plans and Sandbox compute rates, read . |
| Example | modal.Sandbox.create(app=sb_app). Sandboxes guide, first example, read . |
| Last commit | . GitHub API, latest commit on the default branch of modal-labs/modal-client, read . |
Call example
sb_app = modal.App.lookup("my-app", create_if_missing=True)
sb = modal.Sandbox.create(app=sb_app)Limits
- GPU sandboxes are not available with the VM runtime.
Strengths
- Python, JavaScript and Go SDKs are documented for sandboxes.
- gVisor and VM runtimes are both documented.
- The SDK repository is licensed Apache-2.0.
Pricing
As written on Modal Sandboxes's own page on the read date. Prices change: check there before you pay.
Alternatives to Modal Sandboxes
All code execution tools for agents
Run untrusted or agent-written code in isolated Linux sandboxes on Workers.

Isolated Linux sandboxes for running agent code through Python or JavaScript SDKs.

Open-source sandboxed code execution system with an HTTP API.

Hardware-isolated microVM sandboxes for agent code, local-first.
Last check: . Method: public repository and docs read automatically, page and day written down. Next check due within 90 days. How we check
Is this your tool? Write to hello@agent-tools.directory from an address on its domain to correct a pin or a fact.