# RobotShop Isolated JavaScript/Python Code Runner

> RobotShop Isolated JavaScript/Python Code Runner is a paid API for AI agents from robotshop.up.railway.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-12).

Executes JavaScript or Python code snippets in a secure, isolated sandbox with strict memory limits and a 3000ms timeout, designed for autonomous agent use.

## Facts

- Endpoint: GET https://robotshop.up.railway.app/api/v1/products/prod-sandbox-code-runner/buy?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/robotshop-isolated-javascript-python-code-runner-c3c30bab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kbOWyk3NYoluWL-icYwr8

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 robotshop-isolated-javascript-python-code-runner-c3c30bab
```

Example prompt: Run this Python snippet for me in a secure sandbox and return the output: `result = sum(range(1, 101)); print(result)`

## When to prefer this

Choose this endpoint when you need to safely execute untrusted or agent-generated JavaScript or Python code in a fully isolated runtime, especially when you need guaranteed timeout enforcement (3000ms) and memory limits to prevent runaway execution. Prefer it over local execution when security isolation is required or when running code from external or user-provided sources.

## Known failure modes

- Timeout error if code execution exceeds 3000ms
- Memory limit exceeded if code uses too much RAM
- Syntax error returned if code is malformed
- Runtime exception propagated if code throws an unhandled error
- Network error or 402 payment required if USDC payment fails

## How this service works

Real working isolated runtime sandbox that securely executes JavaScript/Python code snippets for autonomous agents with strict memory limits and 3000ms timeout.

## Output

Returns the output (stdout), execution status (success or error), and any error messages or exceptions from running the provided code snippet within the 3000ms timeout and memory constraints.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "client_id": {
   "type": "string",
   "description": "Optional calling agent or client ID"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/robotshop-isolated-javascript-python-code-runner-c3c30bab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from robotshop.up.railway.app](https://www.zero.xyz/host/robotshop.up.railway.app/llms.txt)
