openzoo 0.49.9 → 0.49.10
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 +18 -4
- package/bin/openzoo.js +2 -3
- package/lib/claudecode.js +107 -723
- package/lib/grokui.mjs +125 -548
- package/lib/launch.js +29 -159
- package/lib/models.js +57 -19
- package/lib/proxy.js +79 -5
- package/lib/racesettle.js +23 -2
- package/lib/responses-stream.js +176 -0
- package/package.json +2 -2
- package/lib/relay.js +0 -275
package/README.md
CHANGED
|
@@ -23,21 +23,35 @@ 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
|
-
**
|
|
26
|
+
**Claude Code / grokui Auto** — `openzoo claude` sets the Anthropic API key + base URL to the local OpenZoo proxy (x402 pay-per-call). You do **not** need to authenticate Claude first. grokui orange Auto is this harness, not a `RUN:` text parser. PATH `~/.local/bin` is required on Mac so `claude` is found.
|
|
27
27
|
|
|
28
|
-
`GET /v1/models` is the live OpenRouter catalog **after** dropping `:batch`, `$0` / missing prices, and `openzoo-*` twins.
|
|
28
|
+
`GET /v1/models` is the live OpenRouter catalog **after** dropping `:batch`, `$0` / missing prices, and `openzoo-*` twins. Claude Code's `/model` picker (Anthropic-shaped GET) is a short list: current Opus/Sonnet/Haiku-class + a few real gateway models + `openzoo/auto`.
|
|
29
29
|
|
|
30
30
|
Mac:
|
|
31
31
|
|
|
32
32
|
```
|
|
33
|
+
curl -fsSL https://claude.ai/install.sh | bash
|
|
33
34
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.7/install.sh | bash
|
|
34
35
|
. "$HOME/.nvm/nvm.sh"
|
|
35
36
|
nvm install 24
|
|
36
37
|
npm i -g openzoo
|
|
38
|
+
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
|
|
37
39
|
openzoo claude
|
|
38
40
|
```
|
|
39
41
|
|
|
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`.
|
|
42
|
+
Windows — official Claude install, then nvm-windows (https://github.com/coreybutler/nvm-windows — `nvm-setup.exe`). Do not use the unix nvm curl on Windows. Do not source `~/.zshrc`.
|
|
43
|
+
|
|
44
|
+
PowerShell:
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
irm https://claude.ai/install.ps1 | iex
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
CMD:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
curl -fsSL https://downloads.claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
|
|
54
|
+
```
|
|
41
55
|
|
|
42
56
|
Then nvm-windows:
|
|
43
57
|
|
|
@@ -58,7 +72,7 @@ export CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1
|
|
|
58
72
|
curl -s "$ANTHROPIC_BASE_URL/models" | jq '[.data[].id] | map(select(test(":batch") or startswith("openzoo-")))'
|
|
59
73
|
# -> [] (no :batch, no openzoo-* clones)
|
|
60
74
|
curl -s -H 'anthropic-version: 2023-06-01' "$ANTHROPIC_BASE_URL/models" | jq '[.data[].id]'
|
|
61
|
-
# ->
|
|
75
|
+
# -> short picker (opus/sonnet/haiku + a few gateway ids + openzoo/auto)
|
|
62
76
|
```
|
|
63
77
|
|
|
64
78
|
**Any OpenAI-env tool:**
|
package/bin/openzoo.js
CHANGED
|
@@ -102,9 +102,8 @@ 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 [
|
|
106
|
-
|
|
107
|
-
--desktop for the Anthropic app
|
|
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
|
|
108
107
|
npx openzoo launch <cmd> [args] launch a TERMINAL Messages API client
|
|
109
108
|
(claude, aider...) already pointed at the zoo
|
|
110
109
|
npx openzoo grokbot KEEP Grok Bot's UI, serve YOUR RunPod box under it:
|