Skip to main content

bridgenode

PyPI version Downloads License: MIT-0 Python versions

BridgeNode — AI inference without API keys. Pay per request with Solana USDC via x402. No API keys, no registration — the payment handshake is fully automatic, and fees are sponsored (the agent needs no SOL).

This is the full toolkit meta-package: it installs the Python SDK (bridgenode-llm) and the CLI (bridgenode-cli) in one step.

Installation

pip install bridgenode

This installs:

  • bridgenode-llm — the Python SDK (LLMClient): from bridgenode_llm import LLMClient
  • bridgenode-cli — the command-line tool: bridgenode chat "Hello!"

Quick start (Python)

from bridgenode_llm import LLMClient

client = LLMClient()  # key from .env (BRIDGENODE_WALLET_KEY)
resp = client.chat("deepseek-v4-flash", [
    {"role": "user", "content": "Hello!"}])
print(resp["choices"][0]["message"]["content"])

Quick start (CLI)

bridgenode chat "Hello!" --model deepseek-v4-flash
bridgenode models  # list models + prices (no payment)

Configuration (.env)

# Required — your Solana wallet private key (base58)
BRIDGENODE_WALLET_KEY=...
# Optional
# BRIDGENODE_BASE_URL=https://bridgenode.cc/v1
# BRIDGENODE_MAX_PER_CALL=0.05   # spending policy: max USD per call (fail-closed)
# BRIDGENODE_DAILY_CAP=1.0       # spending policy: max USD per day

Features

  • No API keys, no registration — pay per request with USDC
  • Automatic x402 handshake — 402 → signed transaction → 200, fully hidden
  • Fee sponsorship (gasless) — the agent needs zero SOL
  • Fail-closed spending policy — per-call and daily caps checked before signing
  • Receipt verification — every response receipt is verified (invalid → error)
  • Smart routingmode: auto / eco / premium
  • MCP support — BridgeNode is also available as an MCP server

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

Uploaded Source

Built Distribution

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

bridgenode-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file bridgenode-0.1.1.tar.gz.

File metadata

  • Download URL: bridgenode-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for bridgenode-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e56d15a7ed6717e76675bb245ad7b48655ec6552a1ca717aad2a4c21e54064cd
MD5 7fa51438bad240e32cc06289e236a21e
BLAKE2b-256 fc74ca850ade0b59e9d958a7699e6ef93ef16d3899b2312ae0d6c8ab773e68e6

See more details on using hashes here.

File details

Details for the file bridgenode-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: bridgenode-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for bridgenode-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9933621dcbc2bbf5a9a6b13fc601215ecbe8ff56afc864d55c05650012a5dd8
MD5 7f5be40a1ed06db84737b4b19a51a0f2
BLAKE2b-256 c09de73545b018ead4375d663d40dff7154ae29b2b550654411b916bab4d9fc5

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