# agent to agent lightning payment

> Automate agent-to-agent Lightning Network payments using the agent-bitcoin SDK and Nostr identities.

agent to agent lightning payment is a paid AI agent skill on Agensi by agent-bitcoin, in Web3 & Crypto. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [agent-bitcoin](https://www.agensi.io/creators/agent-bitcoin)
- Category: [Web3 & Crypto](https://www.agensi.io/skills/web3-crypto)
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agent-to-agent-lightning-payment
- Tags: web3, bitcoin, lightning-network, ai-agents, python, payments

## About this skill

Manual Lightning payments between agents are slow and error-prone. This skill automates the agent-to-agent payment flow using the `agent-bitcoin` SDK, allowing your agents to settle debts or pay for services in satoshis.

### What it does
- **Identity verification** confirms both agents have valid Nostr identities before initiating transfers.
- **Invoice management** handles the creation and retrieval of Lightning invoices from the receiving agent.
- **Payment execution** calls the SDK methods to route satoshis from the payer's LND wallet.
- **Transaction tracking** monitors the payment status and returns the final payment hash or receipt.
- **Safety enforcement** prevents unauthorized mainnet spends by requiring explicit user confirmation.

### How it works
1. Verify the payer's LND wallet status and the Nostr identities of both participants.
2. Generate or fetch a Lightning invoice for the specified amount of satoshis.
3. Execute the payment through the `agent-bitcoin` SDK using the payer's identity.
4. Capture the payment hash and provide a receipt to the user.

### Frameworks & tools
This skill requires the `agent-bitcoin` Python SDK, an unlocked LND node (mainnet or regtest), and Nostr for agent identity.

### Why this beats prompting it yourself
Prompting an agent to handle Bitcoin often leads to incorrect SDK calls or security leaks. This skill enforces the correct `agent-bitcoin` method signatures and ensures sensitive data like `nsec` or seed phrases are never exposed in the process.

### Use cases
- Pay a sub-agent for completing a specific compute task.
- Settle micro-payments between autonomous agents in a multi-agent system.
- Automate satoshi transfers for agent-led marketplace transactions.

### Known limitations
Requires an unlocked LND node and the `AGENT_BITCOIN_ALLOW_MAINNET` environment variable for mainnet transactions. Does not support non-LND implementations.

## Requires

- Python 3.10+
- agent-bitcoin package (pip install agent-bitcoin)
- Running LND node (unlocked)

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the agent to agent lightning payment skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill solve the problem of manual agent-to-agent payments?

This skill automates the entire Lightning payment lifecycle—including Nostr identity verification, invoice generation, and LND execution—ensuring agents can settle debts autonomously without manual intervention or syntax errors.

### Which AI agent frameworks are compatible with this skill?

The skill is compatible with any AI agent framework capable of calling Python functions, provided the environment has the `agent-bitcoin` SDK installed and access to an unlocked LND node.

### What infrastructure is required to use this skill on the Bitcoin mainnet?

For security, this skill requires an unlocked LND node (mainnet or regtest) and specific environment variables like `AGENT_BITCOIN_ALLOW_MAINNET` to be configured in your runtime environment.

### What exactly is included in the purchase of this skill?

You receive the production-ready skill code, configuration templates for the `agent-bitcoin` SDK integration, and documentation on how to securely link Nostr identities for agent authentication.

### Can I use this skill with a Core Lightning (CLN) node?

No, this skill is purpose-built for LND (Lightning Network Daemon) implementations; it does not currently support Core Lightning (CLN) or other non-LND node implementations.

### How does this skill prevent my agent from leaking sensitive wallet credentials?

Security is enforced by the skill's strict adherence to `agent-bitcoin` method signatures, which prevents the agent from exposing sensitive data like `nsec` keys or seed phrases in the prompt context.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
