@blockrun/clawrouter 0.11.11 → 0.11.13
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 +20 -13
- package/dist/cli.js +472 -1144
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +240 -88
- package/dist/index.js +1226 -1283
- package/dist/index.js.map +1 -1
- package/package.json +11 -4
- package/scripts/update.sh +33 -23
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ One wallet, 41+ models, zero API keys.
|
|
|
24
24
|
[](https://x.com/USDC/status/2021625822294216977)
|
|
25
25
|
[](https://x402.org)
|
|
26
26
|
[](https://base.org)
|
|
27
|
+
[](https://solana.com)
|
|
27
28
|
[](https://openclaw.ai)
|
|
28
29
|
[](https://t.me/blockrunAI)
|
|
29
30
|
|
|
@@ -56,7 +57,7 @@ One wallet, 41+ models, zero API keys.
|
|
|
56
57
|
curl -fsSL https://blockrun.ai/ClawRouter-update | bash
|
|
57
58
|
openclaw gateway restart
|
|
58
59
|
|
|
59
|
-
# 2. Fund your wallet with USDC on Base (address printed on install)
|
|
60
|
+
# 2. Fund your wallet with USDC on Base or Solana (address printed on install)
|
|
60
61
|
# $5 is enough for thousands of requests
|
|
61
62
|
```
|
|
62
63
|
|
|
@@ -139,7 +140,7 @@ Request → Weighted Scorer (15 dimensions) → Tier → Cheapest Model → Resp
|
|
|
139
140
|
| o3 | $2.00 | $8.00 | 200K | \* |
|
|
140
141
|
| o4-mini | $1.10 | $4.40 | 128K | \* |
|
|
141
142
|
| **Anthropic** | | | | |
|
|
142
|
-
| claude-opus-4.
|
|
143
|
+
| claude-opus-4.6 | $5.00 | $25.00 | 200K | \* |
|
|
143
144
|
| claude-sonnet-4.6 | $3.00 | $15.00 | 200K | \* |
|
|
144
145
|
| claude-haiku-4.5 | $1.00 | $5.00 | 200K | |
|
|
145
146
|
| **Google** | | | | |
|
|
@@ -199,18 +200,23 @@ No account. No API key. **Payment IS authentication** via [x402](https://x402.or
|
|
|
199
200
|
Request → 402 (price: $0.003) → wallet signs USDC → retry → response
|
|
200
201
|
```
|
|
201
202
|
|
|
202
|
-
USDC stays in your wallet until spent
|
|
203
|
+
USDC stays in your wallet until spent - non-custodial. Price is visible in the 402 header before signing.
|
|
204
|
+
|
|
205
|
+
**Dual-chain support:** Pay with USDC on **Base (EVM)** or **Solana**. Both wallets are derived from a single BIP-39 mnemonic on first run. Existing EVM-only users can enable Solana with `/wallet setup-solana`.
|
|
203
206
|
|
|
204
207
|
```bash
|
|
205
|
-
/wallet
|
|
206
|
-
/
|
|
208
|
+
/wallet # Check balance and address (both chains)
|
|
209
|
+
/wallet export # Export keys and mnemonic for backup
|
|
210
|
+
/wallet solana # Enable Solana payments / switch to Solana
|
|
211
|
+
/wallet base # Switch back to Base (EVM)
|
|
212
|
+
/stats # View usage and savings
|
|
207
213
|
```
|
|
208
214
|
|
|
209
215
|
**Fund your wallet:**
|
|
210
216
|
|
|
211
|
-
- **
|
|
212
|
-
- **
|
|
213
|
-
- **CEX:** Withdraw USDC to
|
|
217
|
+
- **Base (EVM):** Send USDC on Base to your EVM address
|
|
218
|
+
- **Solana:** Send USDC on Solana to your Solana address
|
|
219
|
+
- **Coinbase/CEX:** Withdraw USDC to either network
|
|
214
220
|
- **Credit card:** Don't have USDC? Reach out to [@bc1max on Telegram](https://t.me/bc1max) — we accept credit card payments
|
|
215
221
|
|
|
216
222
|
---
|
|
@@ -219,11 +225,12 @@ USDC stays in your wallet until spent — non-custodial. Price is visible in the
|
|
|
219
225
|
|
|
220
226
|
For basic usage, no configuration needed. For advanced options:
|
|
221
227
|
|
|
222
|
-
| Variable
|
|
223
|
-
|
|
|
224
|
-
| `BLOCKRUN_WALLET_KEY`
|
|
225
|
-
| `BLOCKRUN_PROXY_PORT`
|
|
226
|
-
| `CLAWROUTER_DISABLED`
|
|
228
|
+
| Variable | Default | Description |
|
|
229
|
+
| --------------------------- | ------------------------------------ | ------------------------- |
|
|
230
|
+
| `BLOCKRUN_WALLET_KEY` | auto-generated | Your wallet private key |
|
|
231
|
+
| `BLOCKRUN_PROXY_PORT` | `8402` | Local proxy port |
|
|
232
|
+
| `CLAWROUTER_DISABLED` | `false` | Disable smart routing |
|
|
233
|
+
| `CLAWROUTER_SOLANA_RPC_URL` | `https://api.mainnet-beta.solana.com`| Solana RPC endpoint |
|
|
227
234
|
|
|
228
235
|
**Full reference:** [docs/configuration.md](docs/configuration.md)
|
|
229
236
|
|