Skip to content

Commit aff9894

Browse files
committed
docs: openzoo — local proxy is the setup path; hosted endpoint needs a subscription key
1 parent 96da230 commit aff9894

1 file changed

Lines changed: 23 additions & 19 deletions

File tree

docs/providers/openzoo.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: OpenZoo
33
sidebar_label: OpenZoo
4-
description: Use Roo Code with OpenZoo, an OpenAI-compatible provider with no signup — pay per call, hosted or local via npx.
4+
description: Use Roo Code with OpenZoo, an OpenAI-compatible provider that pays per call over x402 from a local proxy — no account.
55
keywords:
66
- OpenZoo
77
- Roo Code
@@ -12,38 +12,42 @@ keywords:
1212

1313
# Using OpenZoo With Roo Code
1414

15-
OpenZoo is an OpenAI-compatible provider with no account or signup. Any API key
16-
value is accepted; usage is paid per request — by card, or automatically via
17-
the x402 protocol when running the local gateway. It can be used hosted or
18-
fully local.
15+
OpenZoo is an OpenAI-compatible provider with no account or signup. You run a
16+
small local proxy (`npx openzoo`) that pays for each request over the x402
17+
protocol from a local burner wallet; Roo Code talks to the proxy like any
18+
other OpenAI-compatible endpoint.
1919

2020
**Website:** [https://openzoo.fun](https://openzoo.fun)
2121

2222
## Getting an API Key
2323

24-
No key is issued — enter any value (for example `sk-openzoo`). Billing happens
25-
per request.
24+
No key is issued. The local proxy ignores the key, so enter any non-empty
25+
value (for example `sk-openzoo`). Billing happens per request from the
26+
proxy's wallet.
2627

2728
## Available Models
2829

29-
Fetch the live list (free) from
30-
[`https://api.openzoo.fun/v1/models`](https://api.openzoo.fun/v1/models).
31-
Model ids are namespaced, e.g. `z-ai/glm-5.3-flash`.
30+
Fetch the live list (free) from `http://localhost:8402/v1/models` once the
31+
proxy is running. Model ids are namespaced, e.g. `z-ai/glm-5.3-flash`.
3232

3333
## Configuration in Roo Code
3434

35-
1. **Open Roo Code Settings:** Click the gear icon (<Codicon name="gear" />) in the Roo Code panel.
36-
2. **Select Provider:** Choose "OpenAI Compatible" from the "API Provider" dropdown.
37-
3. **Base URL:** Enter `https://api.openzoo.fun/v1`, or run `npx openzoo` locally and use `http://localhost:8402/v1`.
38-
4. **API Key:** Enter any value, e.g. `sk-openzoo`.
39-
5. **Model:** Enter a model id from `/v1/models`.
35+
1. **Start the proxy:** run `npx openzoo`; it listens on `http://localhost:8402/v1`.
36+
2. **Open Roo Code Settings:** Click the gear icon (<Codicon name="gear" />) in the Roo Code panel.
37+
3. **Select Provider:** Choose "OpenAI Compatible" from the "API Provider" dropdown.
38+
4. **Base URL:** Enter `http://localhost:8402/v1`.
39+
5. **API Key:** Enter any non-empty value, e.g. `sk-openzoo`.
40+
6. **Model:** Enter a model id from `/v1/models`.
4041

4142
## Tips and Notes
4243

44+
* **Wallet:** `npx openzoo address` prints the proxy's wallet; fund it with
45+
USDC on Solana or Base. `npx openzoo balance` shows what is left.
4346
* **Tool calling:** Roo Code requires native OpenAI tool calling; pick a model
4447
that supports it (frontier chat models in the catalog do).
4548
* **Streaming:** SSE streaming is supported.
46-
* **Local mode:** `npx openzoo` runs the same API on
47-
`http://localhost:8402/v1` and pays per call from a local burner wallet.
48-
* **HTTP 402:** an unfunded wallet returns a 402 whose body carries its own
49-
directions (card link and wallet commands).
49+
* **HTTP 402 from the proxy:** the local wallet is unfunded — send USDC to
50+
the address from `npx openzoo address`.
51+
* **Hosted endpoint:** `https://api.openzoo.fun/v1` answers HTTP 402 unless
52+
the caller pays x402 or presents an OpenZoo subscription key
53+
(`ozk_live_…`). Roo Code cannot pay x402 itself, so use the local proxy.

0 commit comments

Comments
 (0)