# turboshop.ai Code Sandbox Runner

> turboshop.ai Code Sandbox Runner is a paid API for AI agents from turboshop.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-19).

Executes JavaScript or Python code snippets in an isolated runtime sandbox with strict memory limits and a 3000ms timeout, returning the execution result.

## Facts

- Endpoint: GET https://turboshop.ai/api/v1/products/prod-sandbox-code-runner/buy?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/turboshop-ai-code-sandbox-runner-eed4e087
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0iBqoYg4VkX60JNY6JiRh

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 turboshop-ai-code-sandbox-runner-eed4e087
```

Example prompt: Can you run this Python snippet for me in a secure sandbox and return the output: `import math; print(math.factorial(10))`?

## When to prefer this

Choose this endpoint when you need to execute small, untrusted JavaScript or Python snippets in an isolated, secure sandbox with enforced time (3000ms) and memory limits — particularly useful for autonomous agent workflows that need dynamic computation without local code execution risk.

## Known failure modes

- Code exceeds 3000ms timeout — returns timeout error
- Memory limit exceeded — returns out-of-memory error
- Unsupported language specified — validation error
- Syntax error in submitted code — returns parse/runtime error
- Network or service unavailability — HTTP error response

## 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

The endpoint returns the execution output of the submitted code snippet — typically the stdout output, return value, or error message if the code fails or exceeds the 3000ms timeout or memory limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string",
   "description": "Executable code snippet (JavaScript or Python)"
  },
  "language": {
   "enum": [
    "javascript",
    "python"
   ],
   "type": "string",
   "description": "Programming language runtime"
  },
  "client_id": {
   "type": "string",
   "description": "Optional calling agent ID"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/turboshop-ai-code-sandbox-runner-eed4e087/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from turboshop.ai](https://www.zero.xyz/host/turboshop.ai/llms.txt)
