# x402.shizu.me Code Sandbox

> x402.shizu.me Code Sandbox is a paid API for AI agents from x402.shizu.me, paid per call via x402, $0.018/call, status unknown (last checked 2026-10-02).

Executes code in an isolated cloud sandbox and returns stdout, stderr, and results — supporting Python, JavaScript, Bash, R, and Java

## Facts

- Endpoint: POST https://x402.shizu.me/sandbox?utm_source=zero.xyz
- Price: $0.018/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-shizu-me-code-sandbox-691f28ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KWPIWsvzx4ceJZMZjN03R

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 x402-shizu-me-code-sandbox-691f28ec -d '<json body>'
```

Example prompt: Run this Python snippet in an isolated sandbox and give me back whatever it prints: `import math; print([math.factorial(n) for n in range(10)])`

## When to prefer this

Choose this endpoint when you need to execute arbitrary code in a fully isolated, disposable environment without provisioning your own infrastructure. Ideal for agents that need to evaluate untrusted or user-supplied code, run quick computations, test scripts, or perform data analysis on the fly. Preferred over self-hosted runners when setup time, security isolation, or infrastructure costs matter. Best for short-lived, stateless executions under 25 seconds.

## Known failure modes

- Execution timeout — code exceeds 25-second wall-clock limit
- Code too large — input exceeds 100KB limit
- Output too large — stdout/stderr exceeds 64KB limit
- Unsupported language — language value not in {python, javascript, bash, r, java}
- Runtime error — code throws an exception, returned in stderr/error fields
- Network isolation — code attempting outbound network calls will fail silently or error

## How this service works

Run code in an isolated cloud sandbox and get its output — agents can't self-host this. POST {code, language?}. language: python (default), javascript, bash, r, java. Returns stdout, stderr, results, error. Hard-capped: 25s wall-clock, 100KB code, 64KB output, fully isolated.

## Output

Returns a JSON object containing stdout (standard output text), stderr (standard error text), results (structured output if available), and error (error message if execution failed). Execution is hard-capped at 25 seconds wall-clock time, with a 100KB code input limit and 64KB output limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {},
  "language": {}
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "error": null,
  "stderr": "",
  "stdout": "42\n",
  "results": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-shizu-me-code-sandbox-691f28ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.shizu.me](https://www.zero.xyz/host/x402.shizu.me/llms.txt)
