Skip to main content

bridgenode-llm

BridgeNode SDK — AI inference per request. Mokėjimas Solana USDC per x402 V2. Gasless: facilitatoris dengia SOL dujas — agentui nereikia SOL.

  • OpenAI-compatible endpoint
  • Automatinis x402 handshake: 402 → pasirašyti dalinį TX → retry
  • Kvito (PAYMENT-RESPONSE) verifikacija po kiekvieno mokėjimo
  • Spending policy: max/call ir daily cap (fail-closed)
  • Jokių interaktyvių promptų — SDK skirtas agentams

Įdiegimas

pip install bridgenode-llm

Konfigūracija (.env)

BRIDGENODE_WALLET_KEY=<agento Solana wallet private key>   # agento USDC signing
BRIDGENODE_BASE_URL=https://bridgenode.cc/v1               # optional
BRIDGENODE_MAX_PER_CALL=0.05                               # optional, USDC
BRIDGENODE_DAILY_CAP=1.0                                   # optional, USDC

Naudojimas

from bridgenode_llm import LLMClient

client = LLMClient()  # raktas iš .env (BRIDGENODE_WALLET_KEY)

# Explicit model
response = client.chat("deepseek-v4-flash", "Hello!")

# Smart routing (mode: auto | eco | premium)
response = client.chat(mode="auto", messages=[{"role": "user", "content": "Write code"}])

print(response["choices"][0]["message"]["content"])

Detalės: protokolas.md §8.4 (BridgeNode protokolas).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bridgenode_llm-0.2.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

bridgenode_llm-0.2.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file bridgenode_llm-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for bridgenode_llm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9737bd5dd021d2b214e0df181ad0dd444abc004d2913344b4d08fa2c13461dbc
MD5 d97c9a41ff2cc7b6256d181fb0d3e71f
BLAKE2b-256 0d4eabcdaf93f22946d0e3f949b6edeb16181be1f757ea8e3343317e6935285e

See more details on using hashes here.

File details

Details for the file bridgenode_llm-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: bridgenode_llm-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.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_llm-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e9f8a834469fd140537704b42bb59b4d9350a7a4a9094f9b02c87db8b3df359
MD5 df5c22ae4c987685b68f656f3b3b0214
BLAKE2b-256 889bd54cb55433c343db124fcafed6da517156d31d611288be05a5e6d42821b7

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 Pingdom Monitoring Sentry Error logging StatusPage Status page