{"uid":"cap_i3uxNWjKMpK_BZiTPUbTq","slug":"modal-exec-081a276d","name":"Modal Sandbox Exec","description":"Execute command in sandbox","url":"https://modal.mpp.tempo.xyz/sandbox/exec?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["gpu","serverless","sandbox","compute"],"displayCostAmount":"0.0001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0001/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.0001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.0001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bCgfq7J6-_Wrk0OWVsC6U","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.0001","costPer":"request","priority":0,"asset":"0x20c0000000000000000000000000000000000000","unit":"request","depositMicros":null,"planRef":null}],"brandName":"Modal","brandSlug":"modal","brandBaseUrl":"https://modal.com","brandDocsUrl":"https://modal.com/docs","whatItDoes":"Executes a shell command inside an existing Modal sandbox and returns the output","exampleAgentPrompt":"Run the command 'python train.py --epochs 10 --lr 0.001' inside my existing Modal sandbox so I can get the training output back.","exampleUseCases":null,"resultDescription":"Returns the stdout, stderr, and exit code from the executed command within the specified sandbox, indicating whether the command succeeded or failed and capturing all its output.","failureModes":["Sandbox not found or already terminated — returns 404 or error indicating invalid sandbox ID","Command execution fails — returns non-zero exit code with error details in stderr","Sandbox resource limits exceeded — memory or CPU quota errors","Timeout — command runs too long and is killed","Invalid command syntax — shell parse error returned in stderr","Authentication failure — invalid or missing credentials","Network or infrastructure error — 500-level response from Modal backend"],"whenToPreferThis":"Use this endpoint when you have an already-created Modal sandbox and need to run a specific command or script inside it. Ideal for running GPU-accelerated workloads, ML training scripts, data processing pipelines, or any arbitrary code in a fully isolated, serverless environment. Prefer this over local execution when you need sandboxed isolation, GPU access, or scalable serverless compute without managing infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:31:00.438Z","isFirstParty":false,"canonicalSlug":"modal-exec-081a276d"}