openzoo 0.49.8 → 0.49.9

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 CHANGED
@@ -23,23 +23,42 @@ paid $0.002137 (9.5× cheaper than direct) · rail solana · tx 5Kd…
23
23
 
24
24
  **Cursor** (Settings → Models → OpenAI API): set *Override OpenAI Base URL* to `http://localhost:8402/v1`, API key `sk-openzoo`. (Cursor Hobby can't BYOK; Pro can.)
25
25
 
26
- **Claude Code (zoo catalog, not opus-5-only):**
26
+ **openzoo-claude / grokui Auto** — `openzoo claude` boots `:8402` if needed and execs `openzoo-claude` (npx `-y` on first run). Zoo env is `ANTHROPIC_BASE_URL=http://localhost:8402/v1`, `ANTHROPIC_API_KEY` unset, `ANTHROPIC_AUTH_TOKEN` from `~/.openzoo/subscription.json` or `sk-openzoo`. You do **not** need Anthropic's bun `claude` or `claude.ai/install.sh`. grokui orange Auto is this harness, not a `RUN:` text parser.
27
27
 
28
- Prefer this. `ANTHROPIC_API_KEY` stays unset (it would bill api.anthropic.com). Base URL is `http://localhost:8402/v1`. `/model` should list zoo animals from the live OpenRouter catalog (plus `openzoo-*` twins), not a single opus-5.
28
+ `GET /v1/models` is the live OpenRouter catalog **after** dropping `:batch`, `$0` / missing prices, and `openzoo-*` twins. The `/model` picker (Anthropic-shaped GET) is a short list: current Opus/Sonnet/Haiku-class + a few real gateway models + `openzoo/auto`.
29
29
 
30
- ```bash
31
- npx openzoo claude
30
+ Mac:
31
+
32
+ ```
33
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.7/install.sh | bash
34
+ . "$HOME/.nvm/nvm.sh"
35
+ nvm install 24
36
+ npm i -g openzoo
37
+ openzoo claude
38
+ ```
39
+
40
+ Windows — nvm-windows (https://github.com/coreybutler/nvm-windows — `nvm-setup.exe`). Do not use the unix nvm curl on Windows. Do not source `~/.zshrc`. Do not install official Claude Code.
41
+
42
+ Then nvm-windows:
43
+
44
+ ```
45
+ nvm install 24
46
+ nvm use 24
47
+ npm i -g openzoo
48
+ openzoo claude
32
49
  ```
33
50
 
34
- Leave a healthy `:8402` sidecar alone. Manual equivalent:
51
+ Leave a healthy `:8402` sidecar alone. Manual equivalent / check that the list is quoteable:
35
52
 
36
53
  ```bash
37
54
  unset ANTHROPIC_API_KEY
38
55
  export ANTHROPIC_BASE_URL=http://localhost:8402/v1
39
56
  export ANTHROPIC_AUTH_TOKEN=sk-openzoo
40
57
  export CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1
41
- curl -s "$ANTHROPIC_BASE_URL/models" # many OpenRouter ids, not 1
42
- claude # /model lists those zoo animals
58
+ curl -s "$ANTHROPIC_BASE_URL/models" | jq '[.data[].id] | map(select(test(":batch") or startswith("openzoo-")))'
59
+ # -> [] (no :batch, no openzoo-* clones)
60
+ curl -s -H 'anthropic-version: 2023-06-01' "$ANTHROPIC_BASE_URL/models" | jq '[.data[].id]'
61
+ # -> quoteable catalog in Anthropic shape (openzoo/auto first, then grok/gemini/gpt/…)
43
62
  ```
44
63
 
45
64
  **Any OpenAI-env tool:**
package/bin/openzoo.js CHANGED
@@ -102,8 +102,9 @@ usage:
102
102
  only "Auto". Undo: npx openzoo unblock
103
103
  npx openzoo vscode [path] same, for VS Code
104
104
  npx openzoo editor [path] whichever is installed (Cursor wins if both)
105
- npx openzoo claude [dir] Claude Code CLI on the zoo (x402 per turn); --desktop for the app
106
- by default, --terminal for the Claude Code CLI
105
+ npx openzoo claude [args] launch openzoo-claude on the zoo (x402 per turn);
106
+ installs via npx -y openzoo-claude if needed;
107
+ --desktop for the Anthropic app
107
108
  npx openzoo launch <cmd> [args] launch a TERMINAL Messages API client
108
109
  (claude, aider...) already pointed at the zoo
109
110
  npx openzoo grokbot KEEP Grok Bot's UI, serve YOUR RunPod box under it: