Boltzpay
Pay for API data automatically — multi-protocol (x402 + L402), multi-chain.
- Rating
- 4.7 (330 reviews)
- Downloads
- 22,380 downloads
- Version
- 1.0.0
Overview
Pay for API data automatically — multi-protocol (x402 + L402), multi-chain.
Complete Documentation
View Source →
BoltzPay — Paid API Access for AI Agents
BoltzPay lets AI agents pay for API data automatically. It supports multiple payment protocols (x402 and L402) and multiple blockchains (Base and Solana), paying with USDC or Bitcoin Lightning. Agents can discover, evaluate, and purchase API data in a single workflow.
Quick Start
Fetch data from a paid API endpoint:
npx @boltzpay/cli fetch https://invy.bot/api
Commands
| Command | Description | Credentials Needed |
|---|---|---|
| npx @boltzpay/cli fetch | Fetch and pay for API data | Yes |
| npx @boltzpay/cli check | Check if URL requires payment | No |
| npx @boltzpay/cli quote | Get a price quote | No |
| npx @boltzpay/cli discover | Browse compatible APIs | No |
| npx @boltzpay/cli budget | Check spending budget | No |
| npx @boltzpay/cli history | View payment history | No |
| npx @boltzpay/cli wallet | Check wallet address and balance | No |
| npx @boltzpay/cli demo | Interactive demo walkthrough | No |
Setup
Set the following environment variables for paid API access:
COINBASE_API_KEY_ID— Your Coinbase CDP API key IDCOINBASE_API_KEY_SECRET— Your Coinbase CDP API key secretCOINBASE_WALLET_SECRET— Your Coinbase CDP wallet secretBOLTZPAY_DAILY_BUDGET— Daily spending limit in USD (optional, default: unlimited)
Examples
1. Discover available APIs
npx @boltzpay/cli discover
Browse the directory of paid APIs compatible with BoltzPay. No credentials needed.
2. Check price before paying
npx @boltzpay/cli check https://invy.bot/api
See the payment protocol, amount, and chain options without spending anything.
3. Fetch paid data
npx @boltzpay/cli fetch https://invy.bot/api
Automatically detects the payment protocol, pays with USDC, and returns the API response.
No Credentials?
Seven of the eight commands work without any Coinbase credentials:
check— see if a URL requires paymentquote— get detailed pricingdiscover— browse the API directorybudget— check spending limitshistory— view past transactionswallet— check wallet address and balancedemo— interactive demo walkthrough
fetch requires credentials (it makes actual payments).Links
Installation
openclaw install boltzpay
💻Code Examples
npx @boltzpay/cli fetch https://invy.bot/api
## Commands
| Command | Description | Credentials Needed |
|---------|-------------|--------------------|
| `npx @boltzpay/cli fetch <url>` | Fetch and pay for API data | Yes |
| `npx @boltzpay/cli check <url>` | Check if URL requires payment | No |
| `npx @boltzpay/cli quote <url>` | Get a price quote | No |
| `npx @boltzpay/cli discover` | Browse compatible APIs | No |
| `npx @boltzpay/cli budget` | Check spending budget | No |
| `npx @boltzpay/cli history` | View payment history | No |
| `npx @boltzpay/cli wallet` | Check wallet address and balance | No |
| `npx @boltzpay/cli demo` | Interactive demo walkthrough | No |
## Setup
Set the following environment variables for paid API access:
- `COINBASE_API_KEY_ID` — Your Coinbase CDP API key ID
- `COINBASE_API_KEY_SECRET` — Your Coinbase CDP API key secret
- `COINBASE_WALLET_SECRET` — Your Coinbase CDP wallet secret
- `BOLTZPAY_DAILY_BUDGET` — Daily spending limit in USD (optional, default: unlimited)
Get your Coinbase CDP keys at [portal.cdp.coinbase.com](https://portal.cdp.coinbase.com).
## Examples
### 1. Discover available APIsnpx @boltzpay/cli discover
Browse the directory of paid APIs compatible with BoltzPay. No credentials needed.
### 2. Check price before payingnpx @boltzpay/cli check https://invy.bot/api
See the payment protocol, amount, and chain options without spending anything.
### 3. Fetch paid dataTags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw — a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
Adversarial Prompting
Adversarial analysis to critique, fix.