{"uid":"cap_y8NmnJop6UD5cuWIsG393","slug":"citiview-code-runner-88645ab2","name":"Citiview 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://agents.citiviewgroup.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_8nRAOtja1LB2Ft9H98Zv5","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 scripts in an isolated container and returns stdout, stderr, and exit code","exampleAgentPrompt":"Can you run this Python script for me and tell me what it outputs? `import numpy as np; print(np.mean([1, 2, 3, 4, 5]))` — use a 10-second timeout.","exampleUseCases":[{"title":"Quick numerical computation","prompt":"Run this Python snippet for me and give me the result: `import numpy as np; data = [12, 45, 7, 99, 23]; print(np.std(data))` — I just need the standard deviation of those numbers."},{"title":"Bash data parsing task","prompt":"Execute this bash script and show me stdout and exit code: `echo 'hello world' | tr ' ' '\\n' | sort | uniq -c | sort -rn` — use a 10-second limit."},{"title":"JavaScript logic testing","prompt":"Run this JavaScript snippet in Node 24 and tell me what it prints: `const arr = [1,2,3,4,5]; console.log(arr.reduce((a,b)=>a+b,0)/arr.length);` — I want to verify my average calculation logic."}],"resultDescription":"Returns the captured stdout and stderr strings from the executed program, along with the integer exit code. Execution happens in a fresh isolated container with no internet access, so results reflect pure computation only.","failureModes":["Code that exceeds the requested timeout_s will be terminated and return a non-zero exit code","Syntax errors in the submitted code will produce error output in stderr","Code attempting network access will fail silently or error since the container has no internet","Unsupported language values other than python, javascript, or bash will be rejected","Timeout values outside the 1–60 range may be rejected or clamped"],"whenToPreferThis":"Choose this endpoint when you need a truly sandboxed, ephemeral execution environment for Python 3.13 (with numpy/pandas), JavaScript (Node 24), or bash — especially for quick calculations, data wrangling, or snippet testing without setting up local infrastructure. Prefer it over general-purpose LLM code interpretation when you need real, deterministic code execution with actual stdout/stderr/exit code output, or when you need numpy/pandas available by default.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:35:25.175Z","isFirstParty":false,"canonicalSlug":"citiview-code-runner-88645ab2"}