modal

Solid

Use when the user needs to run isolated code remotely — a disposable container, optional GPU access (T4 → H100), or a safer place for untrusted / heavy code. Prefer local execution for normal repo work; use Modal sandboxes for isolation, hardware access, or one-shot heavy compute.

AI & Automation 465 stars 50 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Modal Sandboxes Disposable remote containers (with optional GPU) via Modal, paid per call in USDC. No Modal account, no GPU procurement — pay only for what runs. ## How to Call from MCP ```ts // 1. Create blockrun_modal({ path: "sandbox/create", body: { image: "python:3.11", gpu: "A100", timeout: 600, setup_commands: ["pip install torch transformers"] }}) // returns { sandbox_id, ... } // 2. Exec blockrun_modal({ path: "sandbox/exec", body: { sandbox_id: "sb_abc...", command: ["python", "-c", "import torch; print(torch.cuda.get_device_name(0))"] }}) // 3. Terminate blockrun_modal({ path: "sandbox/terminate", body: { sandbox_id: "sb_abc..." } }) ``` ## Endpoint Catalog | Path | Method | Body | Price | |---|---|---|---| | `sandbox/create` | POST | `{ image?, timeout?, cpu?, memory?, gpu?, setup_commands? }` | $0.01 | | `sandbox/exec` | POST | `{ sandbox_id, command: ["python","-c","..."], timeout? }` | $0.001 | | `sandbox/status` | POST | `{ sandbox_id }` | $0.001 | | `sandbox/terminate` | POST | `{ sandbox_id }` | $0.001 | ## Field Reference | Field | Default | Notes | |---|---|---| | `image` | `python:3.11` | Any public Docker image. `nvidia/cuda:12-runtime` if you bring GPU code. | | `timeout` | 300 | Sandbox lifetime in seconds (idle eviction) | | `cpu` | 1 | CPU cores | | `memory` | 1024 | Memory in MB | | `gpu` | none | `T4` / `L4` / `A10G` / `A100` / `A100-80GB` / `H100` | | `setup_commands` | `[]` | Shell commands run once during sandbox provision...

Details

Author
BlockRunAI
Repository
BlockRunAI/blockrun-mcp
Created
5 months ago
Last Updated
2 days ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category