{"uid":"cap_Xvueh2nRlbye8MiFj0OeT","slug":"clervo-sandbox-execute-d5770cce","name":"Clervo Sandbox Execute","description":"Bounded sandbox.run discovery challenge","url":"https://api.clervo.dev/v1/sandbox/execute","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"args":{"type":"array","items":{"type":"string","maxLength":4096,"minLength":1},"maxItems":29},"code":{"type":"string","maxLength":262144,"minLength":1},"files":{"type":"array","items":{"type":"object","required":["path","contentBase64"],"properties":{"path":{"type":"string","maxLength":256,"minLength":1},"contentBase64":{"type":"string","maxLength":1398104}},"additionalProperties":false},"maxItems":32,"description":"Decoded code, stdin, and file content share a 1048576-byte aggregate envelope."},"limits":{"type":"object","properties":{"cpuMillis":{"type":"integer","maximum":30000,"minimum":1},"diskBytes":{"type":"integer","maximum":1073741824,"minimum":1048576},"processes":{"type":"integer","maximum":64,"minimum":1},"wallTimeMs":{"type":"integer","maximum":60000,"minimum":100},"memoryBytes":{"type":"integer","maximum":536870912,"minimum":16777216},"outputBytes":{"type":"integer","maximum":1048576,"minimum":1},"artifactBytes":{"type":"integer","maximum":1048576,"minimum":1}},"additionalProperties":false},"command":{"type":"array","items":{"type":"string","maxLength":4096,"minLength":1},"maxItems":32,"minItems":1},"runtime":{"enum":["node","python"],"type":"string"},"stdinBase64":{"type":"string","maxLength":1398104},"artifactPaths":{"type":"array","items":{"type":"object","required":["path"],"properties":{"path":{"type":"string","maxLength":256,"minLength":1},"filename":{"type":"string","maxLength":128,"minLength":1},"mimeType":{"type":"string","maxLength":129,"minLength":3}},"additionalProperties":false},"maxItems":32}}},"responseSchema":{"type":"json","example":{"state":"RECEIPTED","result":{"output":{"kind":"execution","exitCode":0,"stdoutBase64":"cmVhZHk="}},"receipt":{"settlement":{"status":"settled"}},"replayed":false,"productId":"sandbox.run"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NnTyJw8BXH-ghMJFdJGVt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a sandboxed code or task run and returns a structured outcome with exit code, stdout, and settlement receipt","exampleAgentPrompt":"Run my sandbox task on Clervo and give me back the stdout output and exit code — I need to confirm it settled successfully.","exampleUseCases":[{"title":"Automated agent task validation","prompt":"Execute this sandbox job on Clervo and tell me whether it completed with exit code 0 and what it printed to stdout."},{"title":"Paid sandboxed code execution","prompt":"I want to run a quick sandboxed script through Clervo's execute endpoint and get the output back — make sure the payment settles and give me the receipt."},{"title":"Agent pipeline outcome verification","prompt":"Trigger a Clervo sandbox run for my agent workflow and confirm the state came back as RECEIPTED with a settled status before moving to the next step."}],"resultDescription":"Returns a JSON object with a 'state' field (e.g. RECEIPTED), a 'result' containing execution output (kind, exitCode, stdoutBase64), a 'receipt' with settlement status, a 'replayed' boolean, and the 'productId' used for the run.","failureModes":["Execution failure: non-zero exitCode returned with error output in stdoutBase64","Payment not settled: receipt.settlement.status not 'settled', indicating x402 payment issue","Invalid payload: malformed request body causes rejection before execution","Timeout: sandbox execution exceeds allowed time limit","Authentication failure: missing or invalid x402 payment header returns 402 error"],"whenToPreferThis":"Choose this endpoint when you need to execute a sandboxed task or code run within the Clervo agent infrastructure ecosystem, particularly when you require a verifiable outcome receipt with settlement confirmation via x402 micropayments. Ideal for agent pipelines that need auditable, paid execution with structured stdout and exit code output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T20:25:28.136Z","isFirstParty":false}