{"uid":"cap_7PveTyrj09vsmr9ODWg6A","slug":"sandboxd-code-run-shell-command-executor-f85a6076","name":"Sandboxd Code Run – Shell Command Executor","description":"Runs a shell command in an isolated one-shot sandbox and returns stdout, stderr and the exit code (Daytona ExecuteRequest/ExecuteResponse compatible)","url":"https://sandboxd-code-run.saastemly.com/v1/execute-command?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cwd":{"type":"string","description":"Working directory, relative to the run's work directory"},"env":{"type":"object","description":"Environment variables; keys must match [A-Za-z_][A-Za-z0-9_]* (Daytona's rule)"},"files":{"type":"object","description":"Text files written into the work directory before the run (up to 50, 1 MB each, 4 MB total)"},"command":{"type":"string","description":"The shell command to run (up to 64 KB)"},"outputs":{"type":"array","items":{"type":"string"},"description":"Relative paths to read back after the run (up to 20); up to 1 MB each comes back base64 in outputFiles, larger in tooLargeOutputs, absent in missingOutputs"},"timeout":{"type":"integer","description":"Run timeout in seconds, 1-120 (default 60); a timed-out run answers exitCode 124"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gFMB-0MEvKhOWO4xnIs1r","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs an arbitrary shell command in an isolated one-shot sandbox and returns stdout, stderr, exit code, and optional output files","exampleAgentPrompt":"Run this shell command in a sandboxed environment with a 30-second timeout and give me the stdout, stderr, and exit code: `find /usr -name '*.conf' | head -20`","exampleUseCases":[{"title":"Validating a build script before CI","prompt":"I need to test this Makefile target in a clean sandbox — run `make lint` with a 60-second timeout and tell me if it exits cleanly, plus show me everything printed to stdout and stderr."},{"title":"Running a data processing shell pipeline","prompt":"Execute this shell pipeline in a sandboxed environment: `cat data.csv | awk -F, '{sum+=$3} END {print sum}'` — I'll give you the CSV content as a pre-seeded file called data.csv, and I need the stdout back along with the exit code."},{"title":"Checking installed tool versions on a target environment","prompt":"Spin up an isolated sandbox and run `python3 --version && node --version && git --version` so I can see what versions are available, then return the full stdout output."}],"resultDescription":"Returns a JSON object with: stdout (string), stderr (string), exitCode (integer, 124 on timeout), outputFiles (map of relative path → base64 content for files ≤1 MB), tooLargeOutputs (list of paths exceeding 1 MB), and missingOutputs (list of requested paths that didn't exist after the run).","failureModes":["Timeout exceeded: exitCode 124 returned if command runs longer than the configured timeout (max 120s)","Invalid environment variable key: keys not matching [A-Za-z_][A-Za-z0-9_]* are rejected","Too many output files requested: more than 20 output paths causes a validation error","File size limit exceeded: individual files over 1 MB or total files over 4 MB are rejected","Command too long: shell command exceeding 64 KB is rejected","Payment failure: x402 payment of 0.002 USDC must succeed before execution begins"],"whenToPreferThis":"Choose this endpoint when you need to execute an arbitrary shell command (not specifically Python/JS/TS) in a clean, isolated, one-shot environment with full control over working directory, environment variables, pre-seeded files, and output file retrieval. Prefer this over language-specific sandboxes when your command involves system utilities, shell pipelines, compiled binaries, or multi-language toolchains. The Daytona-compatible interface makes it a drop-in for workflows already using that spec.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:37:40.656Z","isFirstParty":false,"canonicalSlug":"sandboxd-code-run-shell-command-executor-f85a6076"}