{"uid":"cap_ENLk72XWRb29bU43dzyv_","slug":"blockrun-ai-8e1573e5","name":"BlockRun.AI Sandbox Exec","description":"Execute command in sandbox, returns stdout/stderr/exit code.","url":"https://blockrun.ai/api/v1/modal/sandbox/exec","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"command":{"type":"array","description":"Command to execute, e.g. [\"python\", \"-c\", \"print(1)\"]"},"timeout":{"type":"number","description":"Execution timeout in seconds (max 60, default: 60)"},"sandbox_id":{"type":"string","description":"Sandbox ID from /sandbox/create"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"1.00","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":{"p10Cents":"0.2000","medianCents":"0.2000","p90Cents":"0.2000","minCents":"0.2000","maxCents":"0.2000","p95Cents":"0.2000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ym7Qvd-U3px5pC_h3Oe3f","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Execute a shell command inside an isolated sandbox environment and return stdout, stderr, and exit code.","exampleAgentPrompt":"Run `python -c \"import math; print(math.sqrt(144))\"` inside my existing sandbox (ID: sb_abc123) with a 30-second timeout and give me the stdout, stderr, and exit code.","exampleUseCases":null,"resultDescription":"Returns the standard output (stdout), standard error (stderr), and integer exit code produced by the executed command within the sandbox environment.","failureModes":["Sandbox ID not found or expired — returns error indicating invalid sandbox_id","Command times out beyond specified or maximum 60-second limit — returns non-zero exit code or timeout error","Invalid command array format — returns 400 bad request","Sandbox resource limits exceeded — execution may fail with a non-zero exit code or infrastructure error","Payment not authorized — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need to execute arbitrary shell or scripting commands in a secure, isolated environment and capture their output. Ideal for running Python snippets, shell scripts, or build commands without local environment access. Requires a sandbox to be pre-created via /sandbox/create.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":8,"lastUsedAt":"2026-07-22T20:35:02.982Z","lastSuccessfullyRanAt":"2026-07-22T20:35:02.982Z","lastHealthCheckAt":"2026-09-13T12:48:58.405Z","isFirstParty":false}