MCPcopy Index your code
hub / github.com/BlockRunAI/ClawRouter / printHelp

Function printHelp

src/cli.ts:30–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28import { PARTNER_SERVICES } from "./partners/index.js";
29
30function printHelp(): void {
31 console.log(`
32ClawRouter v${VERSION} - Smart LLM Router
33
34Usage:
35 clawrouter [options]
36 clawrouter status # Live proxy status (wallet, balance, chain)
37 clawrouter wallet # Wallet details + balance
38 clawrouter models # List available models
39 clawrouter stats [--days <n>] # Usage stats (default: 7 days)
40 clawrouter doctor [opus] [question]
41 clawrouter partners [test]
42 clawrouter report [daily|weekly|monthly] [--json]
43 clawrouter logs [--days <n>]
44 clawrouter setup # Finish OpenClaw integration after npm install -g
45 clawrouter share last [--as=<im>] # Convert most recent response for IM (default: feishu)
46 clawrouter share list [--limit=<n>] # Recent response ids + summaries
47 clawrouter share <id> [--as=<im>] # Convert a specific response by id
48 clawrouter share last --all # Write all 6 IM variants to /tmp/
49 # IM presets: feishu, slack, discord, telegram, whatsapp, plain
50 clawrouter phone numbers list # List wallet's active phone numbers + expiry
51 clawrouter phone numbers buy <US|CA> [--area-code <code>] # Buy 30-day number lease ($5)
52 clawrouter phone numbers renew <+E.164> # Extend lease 30 days ($5)
53 clawrouter phone numbers release <+E.164> # Release a wallet-owned number (free)
54 clawrouter phone lookup <+E.164> # Carrier + line type ($0.01)
55 clawrouter phone fraud <+E.164> # SIM-swap + forwarding fraud signals ($0.05)
56
57Options:
58 --version, -v Show version number
59 --help, -h Show this help message
60 --port <number> Port to listen on (default: ${getProxyPort()})
61
62Query Commands (talk to running proxy on localhost:${getProxyPort()}):
63 status Proxy status: wallet, balance, payment chain
64 wallet Wallet addresses + USDC balance
65 models List all available models with pricing
66 stats Usage breakdown: requests, cost, top models
67 stats --days 14 Custom time range (max 30 days)
68 cache Response cache stats (hit rate, size)
69
70Management Commands:
71 setup Finish OpenClaw integration (run after npm install -g).
72 Registers ClawRouter as a plugin, syncs the model allowlist,
73 and writes the auth profile. Idempotent — safe to re-run.
74 doctor AI-powered diagnostics (default: Sonnet ~$0.003)
75 doctor opus Use Opus for deeper analysis (~$0.01)
76 logs Per-request breakdown: model, cost, latency, status
77 logs --days 7 Show last 7 days of requests (default: 1 day)
78 partners List available partner APIs with pricing
79 partners test Test partner API endpoints (expect 402 = alive)
80 wallet recover Restore wallet.key from mnemonic (if generated by ClawRouter)
81 chain solana Switch to Solana (persists)
82 chain base Switch to Base EVM (persists)
83
84Environment Variables:
85 BLOCKRUN_WALLET_KEY Private key for x402 payments (auto-generated if not set)
86 BLOCKRUN_PROXY_PORT Default proxy port (default: 8402)
87

Callers 1

mainFunction · 0.85

Calls 1

getProxyPortFunction · 0.85

Tested by

no test coverage detected