openzoo 0.13.0 → 0.13.2
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 +3 -10
- package/lib/config.js +4 -1
- package/package.json +1 -1
package/bin/openzoo.js
CHANGED
|
@@ -6,9 +6,8 @@ const HELP = `openzoo — local x402-paying proxy + MCP server for openzoo.fun
|
|
|
6
6
|
usage:
|
|
7
7
|
npx openzoo start the proxy: http://localhost:8402/v1 (keyless) PLUS a
|
|
8
8
|
public HTTPS url for cloud IDEs (key required, printed at start)
|
|
9
|
-
npx openzoo
|
|
10
|
-
|
|
11
|
-
npx openzoo launch <cmd> [args] same, for any Anthropic-shaped harness
|
|
9
|
+
npx openzoo launch <cmd> [args] launch a Messages API-compatible client
|
|
10
|
+
(needs the proxy running)
|
|
12
11
|
npx openzoo mcp stdio MCP server (tools: zoo_ask, zoo_bind, zoo_models, zoo_wallet, zoo_contexts)
|
|
13
12
|
npx openzoo tunnel public-url-only mode (everything key-gated, no keyless localhost)
|
|
14
13
|
npx openzoo demo ~1M-token needle demo: direct refuses, the zoo answers
|
|
@@ -50,15 +49,9 @@ async function main() {
|
|
|
50
49
|
case 'mcp':
|
|
51
50
|
await (await import('../lib/mcp.js')).startMcp();
|
|
52
51
|
break;
|
|
53
|
-
case 'claude':
|
|
54
52
|
case 'launch': {
|
|
55
|
-
// `npx openzoo claude [args]` runs Claude Code (or, with `launch <cmd>`,
|
|
56
|
-
// any Anthropic-shaped harness) through the local zoo — inference paid
|
|
57
|
-
// per turn over x402. The proxy must already be running.
|
|
58
53
|
const rest = process.argv.slice(3);
|
|
59
|
-
const [harness, hargs] =
|
|
60
|
-
? [rest[0], rest.slice(1)]
|
|
61
|
-
: ['claude', rest];
|
|
54
|
+
const [harness, hargs] = [rest[0], rest.slice(1)];
|
|
62
55
|
if (!harness) throw new Error('usage: openzoo launch <command> [args...]');
|
|
63
56
|
await (await import('../lib/launch.js')).launchHarness(harness, hargs);
|
|
64
57
|
break;
|
package/lib/config.js
CHANGED
|
@@ -4,7 +4,10 @@ import path from 'node:path';
|
|
|
4
4
|
export const config = {
|
|
5
5
|
port: Number(process.env.OPENZOO_PORT || 8402),
|
|
6
6
|
apiBase: (process.env.OPENZOO_API_BASE || 'https://x402-tokens.fly.dev').replace(/\/+$/, ''),
|
|
7
|
-
|
|
7
|
+
// Default to fluxrpc (free public endpoint) — api.mainnet-beta.solana.com
|
|
8
|
+
// rate-limits hard under any real load (429s during demos). OPENZOO_RPC
|
|
9
|
+
// overrides for anyone who wants their own.
|
|
10
|
+
rpcUrl: process.env.OPENZOO_RPC || 'https://eu.fluxrpc.com?key=ab9278e1-6430-41ab-aee0-ac6b759a1fe4',
|
|
8
11
|
// Which accepts[] row to pay with, by extra.symbol (internal rail selector).
|
|
9
12
|
token: process.env.OPENZOO_TOKEN || 'yUSDCx',
|
|
10
13
|
// Force a rail: 'solana' | 'base' | 'robinhood'. Unset -> Solana-first order.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openzoo",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
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",
|