• LIGHTNING
  • ON-CHAIN
  • MANAGEMENT
  • HUMAN

How to automate Bitcoin invoicing with your AI

Connect OpenNode to your AI client to turn chat commands into real Bitcoin payment requests. Once connected, your agent handles the technical heavy lifting of generating addresses and invoices.

Ask AI about this page

Short answer

How can I use AI to make Bitcoin invoices?

You tell your AI how much to charge, and it uses OpenNode to create a Lightning invoice or an on-chain address. This lets you move from a conversation to a live payment request instantly. You'll see the specific payment details right in your chat window.

The outcomes

Where your requests land

Every command you give your agent results in one of these four outcomes.

LIGHTNING

Instant Lightning invoices

The AI generates a Lightning Network invoice for immediate settlement. You get a bolt1r string or a QR code link to send to customers.

ON-CHAIN

Standard Bitcoin addresses

For customers who prefer traditional transactions, the AI generates a unique on-chain address. This ensures you can receive funds on the mainnet.

MANAGEMENT

Track existing payments

Your agent can look up previously created Lightning invoices. This helps you confirm if a specific request is still active or has expired.

HUMAN

Manual review required

The AI creates the requests but doesn't handle your actual bank transfers or business accounting. You remain in control of your funds and final bookkeeping.

The workflow

What your AI does when a payment is requested.

Your agent acts as the bridge between your natural language instructions and the OpenNode API.

  1. Identify payment type

    The AI determines if you want a Lightning invoice or a standard on-chain address based on your prompt.

    create_address
  2. Generate the request

    The agent calls the necessary tool to build the specific payment request for the amount you specified.

    create_lnurl_pay
  3. Verify invoice status

    If you need to check on a pending payment, the AI pulls the current status of your Lightning requests.

    list_lnurl_pay
  4. Deliver details

    The AI presents the final invoice string or Bitcoin address directly in your chat interface.

    create_charge

Try it

Copy these to start.

Use these prompts to trigger the OpenNode tools.

Starting points

Swap the bracketed text for your actual customer names or specific Bitcoin amounts.

OpenNode Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_wJLw8OVUYCT56VlfqAd0GktYrBFJhVlI0wOkQO7w/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — OpenNode capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "opennode-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_wJLw8OVUYCT56VlfqAd0GktYrBFJhVlI0wOkQO7w/mcp"
    }
  }
}
Copy into chat04
  • Create a Lightning invoice for [0.001] BTC for my customer [Alice].

  • Generate an on-chain Bitcoin address for a [500] USD payment.

  • List my recent Lightning payments to see if [Invoice ID] is still active.

  • Set up a Lightning LNURL payment request for [Customer Name].

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect OpenNode once, then ask.

You only need to link your OpenNode account one time. Your credentials stay encrypted, and you can immediately start issuing invoices through any compatible AI client.

Connect OpenNode to your AI

FAQ

How the automation behaves

  • 01

    Can my AI automatically withdraw my Bitcoin to my personal wallet?

    No. The tools only allow the AI to create charges and addresses. You must manage your withdrawals through the OpenNode dashboard.

  • 02

    Will the AI delete my previous payment history?

    No. The AI can list existing payments, but it does not have the capability to delete or modify your historical transaction records.

  • 03

    Can I use this to create invoices for any currency?

    The AI uses the parameters you provide, but the underlying charge is processed through OpenNode's Bitcoin infrastructure.

  • 04

    Does the AI handle the actual customer support if a payment fails?

    No. The AI handles the technical creation of the invoice. You are responsible for communicating with your customers regarding payment issues.

  • 05

    Can the AI create a Lightning invoice if I don't specify the amount?

    No. You must provide a specific amount or a way to calculate the charge for the tool to successfully create a request.

  • More questions about OpenNode? The Connector page answers them. See everything the OpenNode Connector can do

Connect OpenNode to Claude, Cursor, ChatGPT & more