# Blockrun Sandbox Command Executor

> Blockrun Sandbox Command Executor is a paid API for AI agents from sol.blockrun.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-24).

Executes a shell command inside a running sandbox environment and returns stdout, stderr, and exit code

## Facts

- Endpoint: POST https://sol.blockrun.ai/api/v1/modal/sandbox/exec?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-sandbox-command-executor-8beec9fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_osCtJKtouBSd1JDOd8CU7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability blockrun-sandbox-command-executor-8beec9fb -d '<json body>'
```

Example prompt: Run the command `python3 script.py --input data.csv` inside my running sandbox and show me the full output, any errors, and the exit code.

## When to prefer this

Use this endpoint when you have a live, running sandbox (e.g. created via Modal) and need to execute arbitrary shell commands within it, capturing all output programmatically. Prefer this over spinning up a new environment when the sandbox is already warm and stateful. Ideal for iterative code execution, automated testing pipelines, or any workflow requiring sequential command execution inside an isolated environment.

## Known failure modes

- Sandbox not found or already terminated — returns error indicating invalid sandbox ID
- Command not found in sandbox environment — exit code non-zero with stderr message
- Sandbox timeout or resource exhaustion during execution
- Invalid or malformed command string — may return parse error
- Network or infrastructure failure resulting in failed request
- Permission denied for certain system commands inside the sandbox

## How this service works

Execute a command inside a running sandbox. Returns stdout, stderr, and exit code.

## Output

Returns the complete stdout (standard output), stderr (standard error), and integer exit code produced by the executed command inside the specified running sandbox.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-sandbox-command-executor-8beec9fb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sol.blockrun.ai](https://www.zero.xyz/host/sol.blockrun.ai/llms.txt)
