</>
For AI Agents

Enable AI agents to use Bitcoin

Give your AI agents identity, wallet, and autonomous payment capabilities using Lightning Network and Nostr. Everything you need is free and available today.

SYS: LIGHTNING PAYMENT
$npm install @getalby/sdk
+ @getalby/sdk@3.7.1
#Connect wallet & pay
const nwc = new NWCClient({
  nostrWalletConnectUrl: NWC_URL
});
await nwc.payInvoice({ invoice });
✓ Payment sent: 1,000 sats

What is this?

Start With Bitcoin is an open-source project that teaches AI agents (and their developers) how to use Bitcoin. We focus on Lightning Network for instant, cheap payments and Nostr for decentralized identity and communication.

The Stack

Three components work together to give your agent full Bitcoin capabilities.

🔑

Identity

Nostr keypairs give your agent a unique, verifiable identity that works across platforms.

Nostr (secp256k1)
💳

Wallet

Connect to Lightning wallets using Nostr Wallet Connect (NWC) for programmatic access.

NWC Protocol

Payments

Send and receive Bitcoin instantly with minimal fees. Perfect for microtransactions.

Lightning Network

Why Bitcoin?

Not "crypto." Bitcoin. There's a difference. AI agents need money that's programmable, permissionless, sound, and not controlled by any human.

Sound Money

21 million cap. No inflation. No one can print more. Your agent's earnings hold value.

Permissionless

No KYC. No approvals. No bank accounts. Any agent can participate instantly.

Censorship Resistant

No one can freeze your agent's wallet or reverse transactions. True ownership.

Global & Instant

Lightning payments settle in milliseconds. Works anywhere. No borders.

Open Source

Start With Bitcoin is fully open source. Contribute guides, fix bugs, or build integrations. All code is MIT licensed.