bolthub
PricingBlogDocs
bolthub

Rail-agnostic pay-per-call for MCP tools and APIs. Agents pay per call and you keep custody. Lightning today, more rails next. Built for tool builders and AI teams.

contact@bolthub.ai

Product

All productsbolthub Pay SDKHosted platformToolClientAPI HubNode LauncherPricingFor tool buildersFor agentsCharge for your toolsDocs

Legal

Terms of ServicePrivacy PolicySecurityAcceptable Use

Resources

API HubBlogWhat is L402?L402 vs x402RSS feed

Packages

npm

@bolthub/​payTool-payment SDK@bolthub/​agentL402 payment client@bolthub/​cliCLI@bolthub/​mcp-registryRegistry MCP@bolthub/​mcp-bridgeBridge MCP@bolthub/​verifyWebhook verifier

PyPI

bolthubPython SDKbolthub-verifyPython verifier
bolthub

© 2026 Signal Tech Pty Ltd. All rights reserved.

for tool builders

Charge agents for your tools.

Add a price to any MCP tool or endpoint in a few lines with bolthub Pay: agents pay per call and you settle on the rail you choose, Lightning today and stablecoins (x402) next. No KYC, no middleman holding your funds.

Read the 60-second guideStart your free trial
server.ts
import { createPaywall, l402Rail } from "@bolthub/pay";
// A rail needs a signing secret and something that makes invoices —
// your wallet (NWC / LND / phoenixd / LNbits) or a bolthub facilitator.
const pay = createPaywall({
rails: [l402Rail({ secret: process.env.PAY_SECRET!, invoiceProvider })],
});
// Charge 2000 sats for one MCP tool call:
pay.tool(server, "get_satellite_image", "Recent satellite imagery", schema,
{ price: { amount: 2000 } },
async (args) => ({ content: [{ type: "text", text: await fetchImage(args) }] }),
);

Your tools have no price tag.

The agent-to-tool protocol standardises what a tool does, but it has no slot for what it costs. Card processors won’t touch a fraction-of-a-cent API call, so most tools fall back to subscriptions, prepaid credits, and the busywork of issuing and revoking API keys.

bolthub Pay fills that slot: a paid tool answers an unpaid call with a payment_required challenge and runs only once a valid proof comes back — over whatever rail you accept.

Any rail

Price a tool once and accept Lightning today, stablecoins (x402) next — behind the same interface. Buyers pay in whatever they hold.

Ships in minutes

A few lines wrap a tool. No sales call, no KYC, no card processor onboarding. Your first paid call can happen today.

You keep custody

Payments settle straight to your wallet. bolthub is never in the funds path, so there is no balance to withdraw and nothing to freeze.

Make one tool paid.

Wrap the tool, name a price, and you’re charging. Swap the rail later without rewriting the handler. The SDK is open source (MIT) and free to self-host, no account needed.

terminal
bun add @bolthub/pay
Read the full quickstart

Start self-hosted, graduate to the hosted facilitator

Run the SDK yourself for free, or connect a wallet once in the dashboard and point bolthub Pay at the hosted facilitator: replay protection, usage metering, analytics, and one-click setup. Same code, one swapped rail. Sats still land in your wallet; bolthub only ever sees the metering path. See pricing.

Building the other side? Give your agent a budget and let it pay for tools across rails. New to the wire format? Read L402 vs x402 — you don’t have to choose.

start selling

Start earning from your tools today

Self-host the SDK free, or start on the hosted platform: 1-month free trial, usage-based billing after that.

Start your free trialStart free with the SDK

hub / btc-intel

  • GET /v1/derivatives/cme-basis3 sats/req
  • GET /v1/market/multi_exchange3 sats/req

LIVE32 endpoints · btc-intel.gw.bolthub.ai

browse the hub →