BridgeNode Python SDK (bridgenode-llm). AI inference for AI agents — no API keys, pay per request with Solana USDC via x402.
pip install -e .— install in editable modepip install -e ".[dev]"— install with dev deps (pytest)pytest— run testspython -m build— build sdist + wheel
bridgenode_llm/— source (entry:bridgenode_llm/__init__.py)tests/— testsdist/— build output (GENERATED — never edit by hand)pyproject.toml— package metadata (name, version, keywords, license)
- Python ≥3.11; type hints throughout
- Follow existing patterns in
bridgenode_llm/client.py - Keep public exports in
bridgenode_llm/__init__.py— it's the package API surface
- ✅ Always: run
pytestbefore committing - ✅ Add tests for new behavior in
tests/ - ✅ Version bumps live in BOTH
pyproject.tomlANDbridgenode_llm/__init__.py - 🚫 Never: commit
.envor any secrets (wallet keys!) - 🚫 Never: edit files in
dist/(regenerated by build) - 🚫 Never: hardcode API keys or URLs in code — use
.env - 🚫 License is MIT-0 (MIT No Attribution) — never change it