@boltzpay/cli
v0.1.1
Published
CLI for BoltzPay — fetch paid APIs from the terminal
Maintainers
Readme
@boltzpay/cli
CLI for BoltzPay — fetch paid APIs from your terminal. Also serves as the Python bridge for LangChain and CrewAI integrations.
Install
npm install -g @boltzpay/cliOr run directly:
npx @boltzpay/cli fetch https://invy.bot/apiQuick Start
# Explore APIs (no keys needed)
boltzpay discover
boltzpay check https://invy.bot/api
boltzpay quote https://invy.bot/api
# Fetch and pay (requires Coinbase CDP keys)
export COINBASE_API_KEY_ID="your-key-id"
export COINBASE_API_KEY_SECRET="your-key-secret"
export COINBASE_WALLET_SECRET="your-wallet-secret"
boltzpay fetch https://invy.bot/apiFeatures
- 8 commands — fetch, quote, check, discover, budget, history, wallet, demo
- JSON output —
--jsonflag for scripting and automation - Python bridge — LangChain and CrewAI integrations use
npx @boltzpay/cliunder the hood - Interactive demo —
boltzpay demowalks through wallet, discovery, quote, and fetch - Multi-protocol — x402 (USDC) and L402 (Lightning) auto-detection
Commands
| Command | Description | Requires Keys |
|---------|-------------|:-------------:|
| boltzpay fetch <url> | Fetch a paid API endpoint | Yes |
| boltzpay quote <url> | Get price quote | No |
| boltzpay check <url> | Check if URL requires payment | No |
| boltzpay discover | Browse API directory | No |
| boltzpay budget | Show budget status | No |
| boltzpay history | Show payment history | No |
| boltzpay wallet | Show wallet info and balances | No |
| boltzpay demo | Interactive demo walkthrough | No |
Global Flags
--json— Output as JSON (for scripting and Python bridge)--verbose— Show additional details--debug— Show debug information (headers, timing)
Python Bridge
The CLI serves as a bridge for Python frameworks. The LangChain and CrewAI integrations call npx @boltzpay/cli <command> --json under the hood.
pip install langchain-boltzpay # LangChain integration
pip install boltzpay-crewai # CrewAI integrationLinks
- Documentation
- GitHub
- SDK
- MCP Server — for Claude Desktop
Part of BoltzPay
This package is part of the BoltzPay open-source SDK — giving AI agents the ability to pay for APIs automatically.
License
MIT
