{"uid":"cap_lQy9b0ZQKUGfy6P-Ue3m3","slug":"agentrxi-code-runner-98b86d1f","name":"AgentRXI Code Runner","description":"Run Python 3.13 (numpy, pandas), JavaScript (Node 24) or bash in a fresh isolated container with no Internet access, and get stdout, stderr and the exit code. For calculations, data wrangling, parsing and testing snippets. $0.005 for a 10 s limit, $0.01 up to 30 s, $0.02 up to 60 s. Also callable as GET with the same fields as query parameters.","url":"https://agentrxi.com/v1/code/run?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["code"],"properties":{"code":{"type":"string","description":"Program source"},"stdin":{"type":"string","description":"Optional input piped to the program"},"language":{"type":"string","description":"python (default), javascript or bash"},"timeout_s":{"type":"integer","description":"1-60, default 10"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cqvfdB0PhZKaDQnusRwdg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes Python 3.13, JavaScript (Node 24), or bash code in an isolated container and returns stdout, stderr, and exit code","exampleAgentPrompt":"Can you run this Python snippet for me and show me the output: `import numpy as np; print(np.linalg.norm([3, 4]))`? Use a 10-second timeout.","exampleUseCases":[{"title":"Quick numerical calculation with numpy","prompt":"Run this Python code for me and tell me what it prints: `import numpy as np; data = [1,2,3,4,5]; print(np.mean(data), np.std(data))`"},{"title":"Parse and summarize a CSV with pandas","prompt":"Execute this Python script with a 30-second timeout and return the output — it reads a CSV from stdin and prints a summary: `import pandas as pd, sys; df = pd.read_csv(sys.stdin); print(df.describe().to_string())`"},{"title":"Test a JavaScript regex snippet","prompt":"Run this JavaScript code in Node and show me the result: `const re = /^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,}$/i; console.log(re.test('hello@example.com'), re.test('bad@'));`"}],"resultDescription":"Returns the program's standard output (stdout), standard error (stderr), and the integer exit code from the isolated container run. The response reflects what the code actually printed and whether it exited cleanly (exit code 0) or with an error.","failureModes":["Code exceeds the selected timeout, returning a non-zero exit code and timeout message in stderr","Syntax errors in the submitted code cause a non-zero exit code with the interpreter error in stderr","Unsupported language value returns an error","No Internet access inside the container — network calls in code will fail","Extremely large stdout/stderr may be truncated"],"whenToPreferThis":"Use this endpoint when an AI agent needs to execute untrusted or dynamically generated code safely in a sandbox, perform numerical computations with numpy/pandas, run bash utilities, or validate code snippets without a local runtime. Prefer it over hosted REPL services when you need deterministic isolated execution billed per call via x402 with no persistent state or side effects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:11.105Z","isFirstParty":false,"canonicalSlug":"agentrxi-code-runner-98b86d1f"}