# DeFi Intel Agent Gateway – WASM Python Sandbox

> DeFi Intel Agent Gateway – WASM Python Sandbox is a paid API for AI agents from defi-intel-agent-gateway.gg-neo15.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Execute a safe Python expression in an edge WASM sandbox and return stdout, the result value, and execution duration in milliseconds

## Facts

- Endpoint: POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/code/wasm-python-sandbox
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-intel-agent-gateway-wasm-python-sandbox-4f491a1d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CNQLp0WUE2yN5TMDLS3Rz

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 defi-intel-agent-gateway-wasm-python-sandbox-4f491a1d -d '<json body>'
```

Example prompt: Can you run this Python expression for me in a safe sandbox: `sum([x**2 for x in range(1, 11)])` and tell me the result and how long it took?

## When to prefer this

Choose this endpoint when you need to evaluate a Python expression or small snippet in a stateless, sandboxed edge runtime without provisioning any infrastructure. It is ideal for DeFi formula validation, quick numeric computation, data transformation logic, or any situation where you want safe, isolated Python execution billed per-call with no API key. Avoid it for any code requiring file I/O, network requests, heavy libraries, or persistent state.

## Known failure modes

- Unsafe code detected (file I/O or network access attempted) — sandbox refuses execution
- Syntax error in the submitted Python expression — returns parse error
- Execution timeout if the expression runs too long
- Payment failure via x402 protocol if USDC balance is insufficient
- Expression produces an unserializable result type — result field may be null or stringified

## How this service works

Execute a SAFE Python expression in an edge sandbox. CRITICAL: do NOT use for arbitrary file I/O or network access. Returns stdout, result and duration_ms. — $0.005 USDC/call on Base. Pay-per-call via x402 — no API key, no account. Free samples daily.

## Output

A JSON object containing: `stdout` (any printed output from the expression), `result` (the evaluated return value of the expression), and `duration_ms` (wall-clock execution time in milliseconds). No file system or network side-effects are produced.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-intel-agent-gateway-wasm-python-sandbox-4f491a1d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-intel-agent-gateway.gg-neo15.workers.dev](https://www.zero.xyz/host/defi-intel-agent-gateway.gg-neo15.workers.dev/llms.txt)
