{"uid":"cap_BCasKEZgKOrYml4Vl5rgz","slug":"agent-exec-pay-per-use-code-execution-4a935983","name":"agent-exec Pay-Per-Use Code Execution","description":"Accountless, pay-per-use code execution for software agents: submit source code, get stdout, stderr and exit code back from an isolated, network-less sandbox. No account, no API key -- possession of valid payment is sufficient.","url":"https://agent-exec.448c.org/pay?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["method","sellerUrl","authorization"],"properties":{"body":{"type":"string","description":"Optional request body for the seller."},"method":{"type":"string","description":"GET, POST, PUT, PATCH or DELETE."},"headers":{"type":"object","description":"Optional request headers for the seller, at most 20."},"sellerUrl":{"type":"string","description":"The seller endpoint to deliver the authorization to: an absolute http:// or https:// URL."},"authorization":{"type":"object","description":"The x402 authorization YOU already signed for the seller. This is NOT the payment that pays us -- that one rides in the X-PAYMENT header."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_K7dqhIdsB-2c0eNoDpc5d","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes arbitrary source code in an isolated, network-less sandbox and returns stdout, stderr, and exit code — no account or API key required, payment via x402.","exampleAgentPrompt":"Run this Python snippet for me in a sandboxed environment and return what it prints: `import math; print(math.factorial(10))` — pay per use, no account needed.","exampleUseCases":[{"title":"Dynamic math computation in agent pipeline","prompt":"I need you to run this Python code and give me the output: `import sympy; x = sympy.Symbol('x'); print(sympy.integrate(x**2 + 3*x, x))` — use a sandboxed executor so nothing leaks out."},{"title":"Validate user-submitted script safely","prompt":"A user submitted this shell script and I want to see what it outputs without risking my own machine — can you run it in an isolated sandbox and show me the stdout, stderr, and exit code?"},{"title":"Agent self-test with throwaway code","prompt":"Run a quick sanity check: execute `print('agent alive')` in Python in a network-isolated sandbox and confirm I get exit code 0 and the expected stdout back."}],"resultDescription":"The agent receives the stdout (standard output), stderr (standard error), and integer exit code produced by the executed code inside the isolated sandbox. No persistent state is retained between calls.","failureModes":["Invalid or missing x402 authorization causes payment rejection and HTTP 402 response","Code that times out in the sandbox may return a non-zero exit code or an error message in stderr","Network calls from within the sandbox are blocked, so code requiring internet access will fail","Malformed request body or missing required fields returns an error before execution begins","Unsupported language or runtime may produce an empty stdout with a non-zero exit code"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to execute arbitrary code dynamically without going through an account registration or API key provisioning flow. It is ideal for ephemeral, one-off computations where a subscription model is wasteful, and for agent workflows that need safe, network-isolated sandboxing with micropayment access via x402. Prefer it over self-hosted sandboxes when you want zero infrastructure overhead and over full cloud IDEs when you only need stdout/stderr/exit-code output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:36:14.698Z","isFirstParty":false,"canonicalSlug":"agent-exec-pay-per-use-code-execution-4a935983"}