openzoo 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,7 +40,25 @@ curl http://localhost:8402/v1/chat/completions -H 'Content-Type: application/jso
|
|
|
40
40
|
-d '{"model":"nvidia/nemotron-3.5-lightning","messages":[{"role":"user","content":"hi"}]}'
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
**OpenAI SDK (Python):**
|
|
44
|
+
```python
|
|
45
|
+
from openai import OpenAI
|
|
46
|
+
client = OpenAI(base_url="http://localhost:8402/v1", api_key="sk-openzoo")
|
|
47
|
+
r = client.chat.completions.create(model="nvidia/nemotron-3.5-lightning",
|
|
48
|
+
messages=[{"role": "user", "content": "hi"}])
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**OpenAI SDK (JS/TS):**
|
|
52
|
+
```js
|
|
53
|
+
import OpenAI from "openai";
|
|
54
|
+
const client = new OpenAI({ baseURL: "http://localhost:8402/v1", apiKey: "sk-openzoo" });
|
|
55
|
+
const r = await client.chat.completions.create({
|
|
56
|
+
model: "nvidia/nemotron-3.5-lightning",
|
|
57
|
+
messages: [{ role: "user", content: "hi" }],
|
|
58
|
+
});
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Model ids come from `GET http://localhost:8402/v1/models` (free, no payment). Requires Node ≥ 18 (for `npx openzoo` itself; your harness can be anything).
|
|
44
62
|
|
|
45
63
|
## Use as MCP
|
|
46
64
|
|
|
@@ -50,12 +68,16 @@ The same package is an MCP server sharing the same wallet and payment core:
|
|
|
50
68
|
claude mcp add openzoo -- npx -y openzoo mcp
|
|
51
69
|
```
|
|
52
70
|
|
|
53
|
-
|
|
71
|
+
**Claude Desktop** — add to `claude_desktop_config.json` (macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`, Windows: `%APPDATA%\Claude\claude_desktop_config.json`), then restart the app:
|
|
54
72
|
|
|
55
73
|
```json
|
|
56
74
|
{ "mcpServers": { "openzoo": { "command": "npx", "args": ["-y", "openzoo", "mcp"] } } }
|
|
57
75
|
```
|
|
58
76
|
|
|
77
|
+
**Cursor** — Settings → MCP → *Add new global MCP server*, or drop the same JSON into `~/.cursor/mcp.json` (per-project: `.cursor/mcp.json`).
|
|
78
|
+
|
|
79
|
+
**Windsurf / Cline / any MCP host** — same shape: command `npx`, args `["-y", "openzoo", "mcp"]`, stdio transport.
|
|
80
|
+
|
|
59
81
|
Tools:
|
|
60
82
|
- **`zoo_ask`** — `{prompt, corpus?, model?, max_tokens?}`. The flagship: hand it a *huge* `corpus` (hundreds of thousands to ~1M tokens — a body the model itself would refuse) and a question; the zoo's leCore memory spills the corpus so the model reads only a few thousand tokens. Returns the answer plus the receipt (`billedUsd`, `savesVsDirect`, tokens actually read). An MCP-capable agent can delegate a giant-context question without touching its own model config.
|
|
61
83
|
- **`zoo_models`** — list the zoo's models and pricing (free).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openzoo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Local x402-paying proxy + MCP server for openzoo.fun — point any OpenAI-compatible harness (Cursor, Claude Code, aider, SDKs) at localhost and it pays per call from a local burner wallet. Solana rail live; Base/Robinhood rails experimental.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|