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
Where each pin comes from
InterfaceStatusSource we readRead on
MCP serverNot checked yet——
HTTP APINot checked yet——
Command lineSupported, verifiedREADME: the Python package includes the modal CLI
Python SDKSupported, verifiedSandboxes guide: Python SDK (modal.Sandbox.create)
TypeScript SDKSupported, verifiedSandboxes guide: JavaScript/TypeScript SDK
OpenAPI descriptionNot checked yet——

Facts

Facts about Modal Sandboxes
LicenseApache-2.0 (SDK repository modal-labs/modal-client, not the hosted platform). GitHub modal-labs/modal-client, sidebar: license, read .
SDK languagesPython (sync and async), JavaScript, Go. Sandboxes guide, SDK examples, read .
RuntimesgVisor and VM (own Linux kernel); GPU sandboxes only with gVisor. Sandboxes guide, runtimes and GPU, read .
CLIThe Python package includes the modal CLI. README, read .
Latest version1.6.4, dated 2026-11-11 (Python client changelog). Changelog, top entry, read .
PricingStarter $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 .
Examplemodal.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

PricingStarter $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 16 Nov 2026

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
  1. Run untrusted or agent-written code in isolated Linux sandboxes on Workers.

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

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

    Code execution
  4. Hardware-isolated microVM sandboxes for agent code, local-first.

    Code execution

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.