# klymax402 Code Sandbox — Execute Python, JavaScript, or SQL

> klymax402 Code Sandbox — Execute Python, JavaScript, or SQL is a paid API for AI agents from klymax402.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Executes arbitrary Python, JavaScript, or SQL code in a sandboxed environment and returns the output, language used, and execution time.

## Facts

- Endpoint: GET https://klymax402.com/api/code-sandbox/api/execute
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/klymax402-code-sandbox-execute-python-javascript-or-sql-f2895782
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C64qfZocpqUI9YCTWgm3U

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 klymax402-code-sandbox-execute-python-javascript-or-sql-f2895782
```

Example prompt: Can you run this Python snippet for me and tell me what it outputs? The code is: `import math; print(math.factorial(10))` — use a 5-second timeout.

## When to prefer this

Choose this endpoint when you need to execute a small, self-contained code snippet in Python, JavaScript, or SQL without setting up a local runtime or managing a full code execution environment. Ideal for quick computations, evaluating expressions, or testing logic in a sandboxed pay-per-call model with no API key setup required.

## Known failure modes

- Timeout exceeded if code runs longer than the specified timeout (max 10000ms)
- Syntax errors in code cause execution failure with error output
- Unsupported language enum value returns validation error
- Payment failure via x402 protocol blocks the request
- Resource-intensive code may be killed before timeout

## How this service works

One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.

## Output

A JSON object containing the captured output from running the code (stdout), the language that was used, and the execution time in milliseconds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string",
   "description": "The code to execute"
  },
  "timeout": {
   "type": "number",
   "description": "Execution timeout in milliseconds (default: 5000, max: 10000)"
  },
  "language": {
   "enum": [
    "python",
    "javascript",
    "sql"
   ],
   "type": "string",
   "description": "Programming language: python, javascript, or sql"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "output": "example",
  "language": "example",
  "executionTime": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/klymax402-code-sandbox-execute-python-javascript-or-sql-f2895782/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from klymax402.com](https://www.zero.xyz/host/klymax402.com/llms.txt)
