# Sovereign Engine - Cloudflare Code Execution

> Sovereign Engine - Cloudflare Code Execution is a paid API for AI agents from api.zuluworksai.com, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Executes JavaScript or Python code in an isolated Cloudflare Dynamic Worker sandbox, with network access blocked, billed per-call via USDC on Base

## Facts

- Endpoint: POST https://api.zuluworksai.com/cf/code
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sovereign-engine-cloudflare-code-execution-9321e0cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b5dE-MYkh6oITGL3IiXmv

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 sovereign-engine-cloudflare-code-execution-9321e0cf -d '<json body>'
```

Example prompt: Run this JavaScript snippet for me in a sandboxed environment and give me the output: 'function fib(n) { return n <= 1 ? n : fib(n-1)+fib(n-2); } console.log(fib(10));' — it just needs to compute a result with no network calls.

## When to prefer this

Choose this endpoint when you need to execute short, self-contained JavaScript or Python code snippets in a fully isolated sandbox with no network access, billed micro-per-call in USDC. Prefer this over general cloud functions when you want pay-as-you-go execution without provisioning infrastructure, and when network isolation is a requirement or a feature.

## Known failure modes

- Code attempts network access which is blocked in the sandbox — returns an error or empty network response
- Malformed or unparseable code in prompt — may return a runtime error or empty data
- Payment failure via x402/USDC — call rejected before execution
- Execution timeout if code runs too long in the Cloudflare Worker
- Unsupported language or runtime — only JavaScript and Python are supported

## How this service works

Sandboxed code execution (JavaScript) via an isolated Cloudflare Dynamic Worker.

## Output

Returns a JSON object with a success boolean, a receipt_id UUID for the transaction, and a data object containing the execution output from the sandboxed code run.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string",
   "description": "Source code to execute"
  },
  "language": {
   "type": "string",
   "description": "Currently only javascript is supported"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sovereign-engine-cloudflare-code-execution-9321e0cf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zuluworksai.com](https://www.zero.xyz/host/api.zuluworksai.com/llms.txt)
