# AgentRXI Code Runner

> AgentRXI Code Runner is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-15).

Executes Python 3.13, JavaScript (Node 24), or bash code in an isolated container and returns stdout, stderr, and exit code

## Facts

- Endpoint: GET https://agentrxi.com/v1/code/run?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-code-runner-98b86d1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lQy9b0ZQKUGfy6P-Ue3m3

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 agentrxi-code-runner-98b86d1f
```

Example prompt: Can you run this Python snippet for me and show me the output: `import numpy as np; print(np.linalg.norm([3, 4]))`? Use a 10-second timeout.

## When to prefer this

Use this endpoint when an AI agent needs to execute untrusted or dynamically generated code safely in a sandbox, perform numerical computations with numpy/pandas, run bash utilities, or validate code snippets without a local runtime. Prefer it over hosted REPL services when you need deterministic isolated execution billed per call via x402 with no persistent state or side effects.

## Known failure modes

- Code exceeds the selected timeout, returning a non-zero exit code and timeout message in stderr
- Syntax errors in the submitted code cause a non-zero exit code with the interpreter error in stderr
- Unsupported language value returns an error
- No Internet access inside the container — network calls in code will fail
- Extremely large stdout/stderr may be truncated

## How this service works

Run Python 3.13 (numpy, pandas), JavaScript (Node 24) or bash in a fresh isolated container with no Internet access, and get stdout, stderr and the exit code. For calculations, data wrangling, parsing and testing snippets. $0.005 for a 10 s limit, $0.01 up to 30 s, $0.02 up to 60 s. Also callable as GET with the same fields as query parameters.

## Output

Returns the program's standard output (stdout), standard error (stderr), and the integer exit code from the isolated container run. The response reflects what the code actually printed and whether it exited cleanly (exit code 0) or with an error.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "Program source"
      },
      "stdin": {
       "type": "string",
       "description": "Optional input piped to the program"
      },
      "language": {
       "type": "string",
       "description": "python (default), javascript or bash"
      },
      "timeout_s": {
       "type": "integer",
       "description": "1-60, default 10"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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