{"uid":"cap_elwuWlEyfHAd72EAu5-hE","slug":"payweave-sandbox-pay-per-call-code-execution-a9190b36","name":"PayWeave Sandbox – Pay-per-call Code Execution","description":"Run untrusted code in isolated sandboxes, one payment per execution.","url":"https://sandbox.payweave.services/exec","method":"POST","headers":{},"bodySchema":{"type":"object","required":["command"],"properties":{"cwd":{"type":"string","description":"Working directory. Defaults to /workspace."},"env":{"type":"object","description":"Environment variables visible to this execution only"},"command":{"type":"string","description":"Shell command to execute, e.g. \"python3 --version\" or \"pip install requests\""},"timeout_ms":{"type":"integer","description":"Execution wall-clock limit in milliseconds (1000 to 60000, default 30000). Executions that exceed it are killed."}}},"responseSchema":{"type":"object","required":["success","exitCode","stdout","stderr"],"properties":{"stderr":{"type":"string"},"stdout":{"type":"string"},"success":{"type":"boolean","description":"True when the command exited 0"},"exitCode":{"type":"integer"}},"additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"1.00","successRate":"1.00","reviews":1,"stars":"5.0","state":"rated"},"availabilityStatus":"unknown","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_TriTTt_igE4oOwQPAgvxi","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 an arbitrary shell command in an isolated sandbox environment, charging $0.01 USDC per execution via x402 micropayment.","exampleAgentPrompt":"Run `python3 -c \"import hashlib; print(hashlib.sha256(b'hello').hexdigest())\"` in a PayWeave isolated sandbox with a 10-second timeout and tell me the stdout output.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a boolean `success` field (true if exit code is 0), an integer `exitCode`, a `stdout` string containing standard output, and a `stderr` string containing error output. Additional fields may be present.","failureModes":["Command exceeds timeout_ms limit — execution is killed, success=false with non-zero exitCode","Payment failure via x402 — 402 response returned before execution begins","Invalid or missing `command` field — 400 validation error","Command not found in sandbox environment — non-zero exitCode with stderr message","Network or sandbox infrastructure error — 5xx response"],"whenToPreferThis":"Choose this endpoint when you need to execute arbitrary shell commands or untrusted code in a pay-as-you-go isolated environment without provisioning persistent infrastructure. Ideal for one-off computations, dependency checks, script testing, or ephemeral code runs billed at $0.01 USDC per call via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-08-05T05:26:16.441Z","lastSuccessfullyRanAt":"2026-08-05T05:26:16.441Z","lastHealthCheckAt":"2026-09-14T12:36:36.751Z","isFirstParty":false}