Skip to main content

bridgenode-cli

PyPI version Downloads License: MIT-0 Python versions

BridgeNode CLI — AI inference without 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

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.2.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bridgenode_cli-0.1.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file bridgenode_cli-0.1.2.tar.gz.

File metadata

  • Download URL: bridgenode_cli-0.1.2.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

Hashes for bridgenode_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d669a822141c40859ca931c13dace8ba01e0b254f027e84d9378ce0a0677dde9
MD5 e542bda7e8d0b665c235a12c8e038382
BLAKE2b-256 a359a62caba7d0ca57493c540e551ce7a18edea19842a41ec2f937f02b0fdffd

See more details on using hashes here.

File details

Details for the file bridgenode_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: bridgenode_cli-0.1.2-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

Hashes for bridgenode_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a2e38a15f72ca0cd55bcc6dfb9d4eca45a80c4a84a0bdc99dc2fae67d110e14
MD5 60850c792c04e77438dc54f7c8d082e9
BLAKE2b-256 4b447a48a7ebd8913cb9bf18f6ebf2560e126434ae32fcef8892962874349e6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page