openzoo 0.49.7 → 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,7 +23,45 @@ 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 / any OpenAI-env tool:**
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
+
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
+
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
49
+ ```
50
+
51
+ Leave a healthy `:8402` sidecar alone. Manual equivalent / check that the list is quoteable:
52
+
53
+ ```bash
54
+ unset ANTHROPIC_API_KEY
55
+ export ANTHROPIC_BASE_URL=http://localhost:8402/v1
56
+ export ANTHROPIC_AUTH_TOKEN=sk-openzoo
57
+ export CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1
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/…)
62
+ ```
63
+
64
+ **Any OpenAI-env tool:**
27
65
  ```bash
28
66
  export OPENAI_BASE_URL=http://localhost:8402/v1
29
67
  export OPENAI_API_KEY=sk-openzoo
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: