Skip to main content

Official Python SDK for BridgeNode — automated x402 payment auth for AI agents

Project description

bridgenode

Official Python SDK for BridgeNode — automated x402 payment auth for AI agents.

pip install bridgenode

Quick start

from bridgenode import X402Client

client = X402Client()
print(f"My address: {client.address}")

response = await client.request(messages=[
    {"role": "user", "content": "Hello, who are you?"}
])
print(response["choices"][0]["message"]["content"])

How it works

  1. Generates an ed25519 keypair (if none provided)
  2. Signs each request with a UUID nonce
  3. Sends X-Address / X-Signature / X-Nonce headers
  4. Handles 402, 401, 409 responses automatically

Install from source

cd bridgenode
pip install -e .

Requirements

  • Python ≥ 3.10
  • httpx, pynacl, base58

License

MIT — BridgeNode (https://bridgenode.cc)

Project details


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.0.tar.gz (5.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.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bridgenode-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7946a6bc85e24586f0c7975d2ac7fb7428cf8459faf8b8af97eae098c9105b91
MD5 176328db46317ae9e18c4f7e7cc58357
BLAKE2b-256 5662c1d66fea4370d9baa8a641bdeb7f53574478fa397787a74024e37a2f37a7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bridgenode-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 021b155e7c604f2ecbcb0ce8012527d89415fec5a18cc41bf23fc889cad088e4
MD5 d5dad1fad16890c1dc15b6edec8b2fe8
BLAKE2b-256 ee39eebbab0469019daa71b57fd5cb06b1e336e4a32889a602a165d2dab446d1

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