Give your AI agents a fetch() that pays. Multi-protocol, multi-chain, open source.
boltzpay is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on ai-agents, bitcoin, crewai, l402. It currently has 6 GitHub stars and 2 forks, and sits alongside related tools like boltzpay, agoragentic-integrations, tdm-integration-kit, TDM-Agent-Integration-Kit, lightning-wallet-mcp, piprail.
A
fetch()that pays. x402, L402, MPP — auto-detected, multi-chain, open source.
BoltzPay detects payment protocols, negotiates the best chain, pays, and returns data. One call. No vendor lock-in.
Docs · Registry · npm · GitHub
import { BoltzPay } from "@boltzpay/sdk";
const agent = new BoltzPay({
wallets: [
{ type: "coinbase", name: "main", coinbaseApiKeyId: "...", coinbaseApiKeySecret: "...", coinbaseWalletSecret: "..." },
],
budget: { daily: "5.00" },
});
const response = await agent.fetch(url);
// x402, L402, MPP — protocol auto-detected, payment handled
Browse 6,900+ scored endpoints from the BoltzPay Registry:
const apis = await agent.discover({ protocol: "mpp", minScore: 80 });
| Protocol | Payment | Wallet |
|---|---|---|
| x402 | USDC on-chain (Base, Solana) | Coinbase CDP |
| L402 | Bitcoin Lightning | NWC |
| MPP | Stripe, Tempo, Visa | Multi-wallet |
The SDK auto-detects which protocol an endpoint uses. Configure one or more wallets — the router tries each until one succeeds.
MPP streaming sessions with deposit, pay-per-chunk, and clean close:
const session = await agent.openSession(url);
const res = await session.fetch(url);
const receipt = await session.close(); // { totalSpent, refunded, voucherCount }
Wrap any MCP client with automatic payment handling (-32042):
const wrapped = await agent.wrapMcpClient(mcpClient);
const result = await wrapped.callTool({ name: "paid-tool" });
// Budget enforced, receipt returned
Or give Claude Desktop a payment wallet — zero code:
{
"mcpServers": {
"boltzpay": {
"command": "npx",
"args": ["-y", "@boltzpay/mcp"]
}
}
}
agent.on("budget:exceeded", (e) => console.log(`Blocked: ${e.period}`));
agent.on("payment", (e) => console.log(`${e.amount.toDisplayString()} via ${e.protocol}`));
const budget = agent.getBudget();
// { dailySpent, monthlySpent, dailyLimit, monthlyLimit,
// perTransactionLimit, dailyRemaining, monthlyRemaining }
Daily, monthly, per-transaction limits. Session deposit reservations. Allowlist/blocklist. Max amount guard.
npx @boltzpay/cli discover --protocol mpp --min-score 70
npx @boltzpay/cli fetch https://api.example.com
npx @boltzpay/cli diagnose https://api.example.com
npx @boltzpay/cli quote https://api.example.com
| Package | Description |
|---|---|
| @boltzpay/sdk | SDK — fetch, discover, sessions, budget, events |
| @boltzpay/core | Domain types, Money VO, protocol interfaces |
| @boltzpay/protocols | Protocol adapters (x402, L402, MPP) |
| @boltzpay/mcp | MCP server — 7 tools for Claude Desktop |
| @boltzpay/cli | CLI — terminal + Python bridge |
| @boltzpay/ai-sdk | Vercel AI SDK tools |
pip install langchain-boltzpay — docspip install boltzpay-crewai — docs@boltzpay/n8n-nodes-boltzpay — docsintegrations/openclaw/See CONTRIBUTING.md for setup instructions and PR guidelines.
MIT — see LICENSE
Created by @leventilo
Enable AI agents to access paid APIs across multiple protocols and chains with automated payment and data retrieval in one call.
Public adapters and discovery catalog for Triptych OS (Agent OS): agent frameworks, MCP/A2A/x402 protocols, workflows, wallets, SDKs, and examples for execute-first routing, governed handoffs, and receipt-aware agent commerce.
Developer integration tools for adding TDM payments to AI agents, apps, and workflows. CLI, MCP server, and copy-paste examples
Developer integration tools for adding TDM payments to AI agents, apps, and workflows. CLI, MCP server, and copy-paste examples
MCP Server for Lightning Faucet - Give your AI agent a Bitcoin wallet
x402 (HTTP 402 Payment Required) SDK + MCP server: let any API charge for itself and any AI agent pay for itself, USDC & stablecoins across EVM, Solana & 8 more chain families, in a couple of lines. Backendless, no fee, self-custodial, paid straight to your wallet. TypeScript, MIT.
The financial operating system for AI agents. A single HTTP client that intercepts '402 Payment Required', routes across x402, L402, and MPP, persists credentials as recoverable assets, enforces per-envelope budgets, and emits a structured trace.
540 security tests for AI agent systems — MCP, A2A, x402/L402, decision governance, benchmark integrity, skill supply chain. AIUC-1 pre-cert, NIST AI 800-2 aligned, MCP tool-poisoning reproduction. v4.9.1
A neutral landscape analysis of AI agent payment protocols (x402, MPP, L402, Google AP2, Visa TAP + ICC, Mastercard Agent Pay, Amex ACE, Google/Shopify UCP, OpenAI ACP, and others). Maintained by Genesis Software Group, Copenhagen. Updated April 2026. CC BY 4.0.
MCP server for 402 Index: discover 15,000+ paid API endpoints across L402, x402, and MPP
Sovereign oracle protocol — cryptographically signed data over Lightning sats (L402) and USDC on Base (x402). 11 feeds, 9 exchanges, DLC attestations, MCP server. No API keys, no accounts, no trust.
Any API becomes a Lightning toll booth in one line. L402 middleware for Express, Hono, Deno, Bun, and Workers.