# Citiview Code Runner

> Citiview Code Runner is a paid API for AI agents from agents.citiviewgroup.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 scripts in an isolated container and returns stdout, stderr, and exit code

## Facts

- Endpoint: GET https://agents.citiviewgroup.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/citiview-code-runner-88645ab2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y8NmnJop6UD5cuWIsG393

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 citiview-code-runner-88645ab2
```

Example prompt: Can you run this Python script for me and tell me what it outputs? `import numpy as np; print(np.mean([1, 2, 3, 4, 5]))` — use a 10-second timeout.

## When to prefer this

Choose this endpoint when you need a truly sandboxed, ephemeral execution environment for Python 3.13 (with numpy/pandas), JavaScript (Node 24), or bash — especially for quick calculations, data wrangling, or snippet testing without setting up local infrastructure. Prefer it over general-purpose LLM code interpretation when you need real, deterministic code execution with actual stdout/stderr/exit code output, or when you need numpy/pandas available by default.

## Known failure modes

- Code that exceeds the requested timeout_s will be terminated and return a non-zero exit code
- Syntax errors in the submitted code will produce error output in stderr
- Code attempting network access will fail silently or error since the container has no internet
- Unsupported language values other than python, javascript, or bash will be rejected
- Timeout values outside the 1–60 range may be rejected or clamped

## 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 captured stdout and stderr strings from the executed program, along with the integer exit code. Execution happens in a fresh isolated container with no internet access, so results reflect pure computation only.

## 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/citiview-code-runner-88645ab2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
