Odel
bolthub Marketplace

bolthub Marketplace

@signaltech-orgCommunicationTypeScriptMITUpdated 4 days ago

Discover and call every paid API on the bolthub marketplace with automatic L402 Lightning payments.

bolthub SDK

Source code for every publicly published bolthub.ai package — the npm @bolthub/* scope and the bolthub / bolthub-verify PyPI packages.

bolthub is a payment layer for agent-to-tool commerce: charge agents for your MCP tools and APIs per call, settling on the rail you choose (Lightning today, stablecoins next), with bolthub never in the funds path. These packages are the open-source side of that: the tool-payment SDK, payment clients, MCP servers, a CLI, and origin-verification middleware.

PackageRegistryDirectoryWhat it is
@bolthub/paynpmpackages/payTool-payment SDK — price an MCP tool or HTTP endpoint (createPaywall), pay for tools within a budget (PayingClient); rails: L402, x402, facilitator
@bolthub/agentnpmpackages/agentL402 payment client — wallet adapters (LND, LNbits, Phoenixd, NWC, WebLN), 402 challenge handling, session cache
@bolthub/mcp-registrynpmpackages/mcp-registryMCP server exposing the whole bolthub marketplace to AI agents
@bolthub/mcp-bridgenpmpackages/mcp-bridgeMCP server for a single bolthub gateway (one tool per endpoint)
@bolthub/clinpmpackages/cliTerminal client for the marketplace
@bolthub/verifynpmpackages/verifyGateway signature verification middleware (Express/Fastify/Node)
bolthubPyPIpackages/agent-pythonPython L402 client
bolthub-verifyPyPIpackages/verify-pythonPython gateway signature verification (Flask/Django/FastAPI)

packages/shared is internal (never published); it is here because @bolthub/mcp-bridge bundles it.

Relationship to the bolthub platform

The bolthub platform (gateway, API, web app) lives in a private monorepo. The SDK packages above are developed there and synced to this repository, which is the publish origin: releases are tagged here and built + published by CI with npm provenance, so what's on npm is verifiably built from this public source.

Issues and PRs are welcome here. Accepted changes are applied to the monorepo first, then sync back out with the next release.

Verifying what you install

Published dist/ bundles are built with Bun from this source and ship source maps with embedded sources, so the tarball itself is readable.

# provenance: confirm the tarball was built from this repo by GitHub Actions
npm audit signatures

# or rebuild and compare yourself
git clone https://github.com/signaltech-org/bolthub-sdk
cd bolthub-sdk && bun install
cd packages/mcp-registry && bun run build

See SECURITY.md for the trust model (what touches your wallet credentials and what doesn't) and how to report vulnerabilities.

Development

bun install
bun test

Each TypeScript package builds with bun run build from its directory (@bolthub/agent must be built before the packages that bundle it).

License

MIT