openzoo 0.38.2 → 0.38.3

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/bin/openzoo.js CHANGED
@@ -25,7 +25,9 @@ usage:
25
25
  (claude, aider...) already pointed at the zoo
26
26
  npx openzoo grokbot point Grok Bot / the grok CLI at the zoo — GROK MODELS ONLY,
27
27
  paid per call by x402 instead of xAI first-party billing,
28
- then launch it. --no-launch just writes the config.
28
+ then launch it with BYOK interception ON (impersonates
29
+ api2.cursor.sh for that launch only — no /etc/hosts, no sudo).
30
+ --no-byok plain launch · --no-launch config only
29
31
  npx openzoo mcp stdio MCP server (tools: zoo_ask, zoo_bind, zoo_models, zoo_wallet, zoo_contexts)
30
32
  npx openzoo unblock restore the editor's own backend in the hosts file
31
33
  npx openzoo tunnel public-url-only mode (everything key-gated, no keyless localhost)
package/lib/grokbot.js CHANGED
@@ -143,7 +143,11 @@ export async function setupGrokBot(argv = []) {
143
143
 
144
144
  // 3. launch the app if it exists, else the CLI
145
145
  if (existsSync(APP)) {
146
- if (argv.includes('--byok')) {
146
+ // BYOK IS THE DEFAULT. Without it this command only rewrites the CLI's
147
+ // model table, and the APP — the thing you actually look at — keeps talking
148
+ // to Cursor's cloud, which is the whole problem it was meant to solve.
149
+ // --no-byok drops back to plain launch.
150
+ if (!argv.includes('--no-byok')) {
147
151
  // BYOK PROBE — NO /etc/hosts, NO sudo.
148
152
  //
149
153
  // Grok Bot asks aiserver.v1 whether BYOK is allowed (`byok_enabled`,
@@ -168,7 +172,9 @@ export async function setupGrokBot(argv = []) {
168
172
  `--host-resolver-rules=MAP api2.cursor.sh 127.0.0.1:${port}`,
169
173
  ], { stdio: 'ignore', detached: true }).unref();
170
174
  // keep this process alive so the backend keeps answering
171
- console.error('openzoo: leave this running while you test. ctrl-c to stop.');
175
+ console.error('openzoo: leave this running while Grok Bot is open. ctrl-c stops the');
176
+ console.error(' backend; the app then reconnects to xAI normally on next launch.');
177
+ console.error(' (skip all of this with --no-byok)');
172
178
  await new Promise(() => {});
173
179
  return;
174
180
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openzoo",
3
- "version": "0.38.2",
3
+ "version": "0.38.3",
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 and Base rails live; Robinhood experimental.",
5
5
  "license": "MIT",
6
6
  "type": "module",