bridgenode-cli
BridgeNode CLI — AI inference for AI agents, no API keys. Pay per request with Solana USDC via x402. The payment handshake is fully automatic, and fees are sponsored — no SOL needed.
Installation
pip install bridgenode-cli
Or install the full toolkit (SDK + CLI):
pip install bridgenode
Usage
# Single chat completion (payment handshake fully automatic)
bridgenode chat "Hello!" --model deepseek-v4-flash
# Smart routing: auto / eco / premium
bridgenode chat "Analyze this code" --mode auto
# Model list + prices (no payment)
bridgenode models
Options
| Option | Description |
|---|---|
--model |
Explicit model id (see bridgenode models) |
--mode |
auto / eco / premium (smart routing) |
--max-tokens |
Max output tokens (billed upfront) |
--base-url |
Base URL (default: BRIDGENODE_BASE_URL / https://bridgenode.cc/v1) |
--max-per-call / --daily-cap |
Spending policy (fail-closed) |
Configuration (.env)
# Required — your Solana wallet private key (base58)
BRIDGENODE_WALLET_KEY=...
# Optional: BRIDGENODE_BASE_URL, BRIDGENODE_MAX_PER_CALL, BRIDGENODE_DAILY_CAP
Security
- Receipt verification: every response receipt is verified — invalid receipt → error.
- Spending policy (fail-closed): max USD per call / per day — checked BEFORE signing.
Requirements
- Python ≥ 3.11
- A Solana wallet with a USDC token account (ATA)
Links
- Website: https://bridgenode.cc
- Models & prices: https://bridgenode.cc/v1/models
- Documentation: https://bridgenode.cc/llms.txt
- Protocol: x402 V2 (https://docs.x402.org)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bridgenode_cli-0.1.4.tar.gz
(9.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bridgenode_cli-0.1.4.tar.gz.
File metadata
- Download URL: bridgenode_cli-0.1.4.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b0c2799852f37973de37b9a0c7d8515ce00412ffccf72d8e322f2617f5e0e2f
|
|
| MD5 |
5b41aa4df8ce7fe05ce15dc525ef62ed
|
|
| BLAKE2b-256 |
de278c1c5e85b134faf78b1f4914ad4836558779f244d1863bd04b05c0a764e4
|
File details
Details for the file bridgenode_cli-0.1.4-py3-none-any.whl.
File metadata
- Download URL: bridgenode_cli-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4dc5c87d3d2b02cdb3abf352669a735ac21feba6d8d84b0faa7a75316f9da62
|
|
| MD5 |
0dd5c3fa4c4ec434a9aca4235a743617
|
|
| BLAKE2b-256 |
890d610c47934801d2607a25a728e1a0cade89c76cdaeca569d861c221d2a548
|