A self-custodial Lightning wallet designed for AI agents. Run it as a CLI — every command outputs JSON to stdout for easy parsing. No API keys, no accounts, no webhooks.Documentation Index
Fetch the complete documentation index at: https://docs.moneydevkit.com/llms.txt
Use this file to discover all available pages before exploring further.
The agent wallet runs a local daemon that leverages moneydevkit’s lightning infrastructure. No node management required.
Quick start
Initialize the wallet
~/.mdk-wallet/config.json. Back up the mnemonic — it controls your funds.How it works
The CLI automatically starts a daemon on first command. The daemon:- Runs a local HTTP server on
localhost:3456 - Polls for incoming payments every 30 seconds
- Persists payment history to
~/.mdk-wallet/
Commands
| Command | Description |
|---|---|
init | Generate mnemonic, create config |
init --show | Show config (mnemonic redacted) |
init --network signet | Initialize on signet testnet |
start | Start the daemon |
stop | Stop the daemon |
restart | Restart the daemon |
status | Check if daemon is running |
balance | Get balance in sats |
receive <amount> | Generate BOLT11 invoice |
receive | Generate variable-amount invoice |
receive <amount> --description "..." | Invoice with custom description |
receive-bolt12 | Generate BOLT12 offer (variable amount) |
send <destination> [amount] | Pay bolt11, bolt12, LNURL, or Lightning address |
payments | List payment history |
Output format
All commands output JSON to stdout. Exit code0 means success, 1 means error.
Supported destinations
Thesend command auto-detects the destination type:
| Format | Example |
|---|---|
| Bolt11 | lnbc..., lntb..., lntbs... |
| Bolt12 | lno... |
| LNURL | lnurl... |
| Lightning Address | user@domain.com |
Configuration
Config is stored in~/.mdk-wallet/config.json:
| Variable | Description |
|---|---|
MDK_WALLET_MNEMONIC | Override mnemonic |
MDK_WALLET_PORT | Server port (default: 3456) |
AI agent integration
This wallet is designed for AI agents that need to send and receive Lightning payments. Every command outputs JSON for easy parsing, and the daemon auto-starts on first use.Paying L402 endpoints
The agent wallet pairs naturally with L402 pay-per-call APIs. Simply pay the invoice and return the token and preimage to unlock the API.Upgrading
~/.mdk-wallet/ are preserved across upgrades.

