# HubVibe Code Execution (Google Sandbox)

> HubVibe Code Execution (Google Sandbox) is a paid API for AI agents from hubvibe-io.com, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-10).

Executes arbitrary Python code in Google's hosted sandbox and returns the code, its stdout/output, and the execution outcome.

## Facts

- Endpoint: POST https://hubvibe-io.com/work/code/execute?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hubvibe-code-execution-google-sandbox-b5ae63e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jHXIhXK0cy6EnkeYyTaJ9

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 hubvibe-code-execution-google-sandbox-b5ae63e1 -d '<json body>'
```

Example prompt: Can you run this Python code for me and show me the output: `import math; print(math.factorial(20))`?

## When to prefer this

Choose this endpoint when you need to execute Python code in a secure, Google-hosted sandbox without managing your own infrastructure. It is ideal for agents that need to perform dynamic computations, data transformations, or algorithmic tasks at runtime. Prefer it over local execution when isolation and safety are required, or when the agent runtime does not have a Python environment available.

## Known failure modes

- Syntax errors in submitted Python code cause execution failure with error output
- Disallowed operations or imports blocked by the sandbox return an error outcome
- Timeout if the code runs too long or enters an infinite loop
- Network or sandbox unavailability returns a service error
- Non-Python code or empty code string may be rejected

## How this service works

Run Python code in a sandbox: execute Python in Google's hosted sandbox (not on this service's machines) and get the code, its printed output and the outcome back. Use it for calculations, data transforms and checks an agent should not do in its head. Input: code. Questions over BigQuery data: data.query.

## Output

Returns the submitted Python code, any standard output (stdout) produced during execution, and the execution outcome status (e.g. success or error), all from Google's hosted sandbox environment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string"
  },
  "language": {
   "type": "string",
   "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
   "maxLength": 35
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "code": "print(sum(range(10)))",
   "model": "gemini-2.5-flash",
   "output": "45\n",
   "outcome": "OUTCOME_OK",
   "summary": "Printed the sum 45."
  },
  "status": "ok",
  "worker": "code.execute",
  "price_usd": 0.25,
  "provenance": {
   "steps": [
    {
     "ms": 640,
     "ok": true,
     "step": "execute",
     "provider": "code_exec"
    }
   ],
   "attempts": 1,
   "elapsed_ms": 660,
   "providers_used": [
    "code_exec"
   ]
  },
  "receipt_id": "rcpt_9f1c2b3a4d5e6f70",
  "receipt_url": "/work/receipts/rcpt_9f1c2b3a4d5e6f70"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hubvibe-code-execution-google-sandbox-b5ae63e1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hubvibe-io.com](https://www.zero.xyz/host/hubvibe-io.com/llms.txt)
