bridgenode-cli
BridgeNode CLI — AI inference without API keys. Payment: Solana USDC via x402 (automatic handshake, fee sponsorship — no SOL needed).
Installation
pip install bridgenode-cli
Usage
# Single chat completion (x402 handshake hidden, §4.1)
bridgenode chat "Hello!" --model deepseek-v4-flash
# Smart routing (§5.1/§5.8): auto / eco / premium
bridgenode chat "Analyze this code" --mode auto
# Model list + prices (§5.2) — 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 (billing upfront, §4.2) |
--base-url |
Base URL (default: BRIDGENODE_BASE_URL / https://bridgenode.cc/v1) |
--max-per-call / --daily-cap |
Spending policy (fail-closed) |
.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 (Free-Riding protection): after 200,
PAYMENT-RESPONSEis verified — invalid receipt → error. - Spending policy (fail-closed): max USD per call / per day — checked BEFORE signing.
Requirements
- Python ≥ 3.11
- Solana wallet with USDC ATA (rent — agent's responsibility, §3.3)
Links
- Website: https://bridgenode.cc
- Protocol: x402 V2 (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.1.tar.gz
(8.9 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.1.tar.gz.
File metadata
- Download URL: bridgenode_cli-0.1.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
208f5a21ea92e7f56221051249d1fafd30603bc932a6cacdb5d803429d829026
|
|
| MD5 |
61c34356750f868eceed354b13195519
|
|
| BLAKE2b-256 |
0d1c7661b9d6170dfd6ada196fba83cae6ff6e0d5df51338ba9d3ef7a0a91bbb
|
File details
Details for the file bridgenode_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: bridgenode_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 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 |
50ca3de06d343eb8842a4de8c35789319d867c798536198ef3190a6f56963f9e
|
|
| MD5 |
4c576023e307ba04bf6d268c2267e84c
|
|
| BLAKE2b-256 |
6dcbaaa9f5d7302572bc9b3bf810e76c799521f70603be5d9109427b27e05a93
|