afpay CLI Reference

Regenerate with afpay --help-markdown. See ../README.md for setup and examples, and architecture.md for deployment details.

Command-Line Help for afpay

This document contains the help content for the afpay command-line program.

Command Overview:

afpay

Agent-first cryptocurrency micropayment tool

Usage: afpay [OPTIONS] [COMMAND]

Subcommands:
Options:

afpay global

Global (cross-network) operations

Usage: afpay global <COMMAND>

Subcommands:

afpay global limit

Global spend limit (USD cents)

Usage: afpay global limit <COMMAND>

Subcommands:

afpay global limit add

Add a global spend limit (USD cents)

Usage: afpay global limit add --window <WINDOW> --max-spend <MAX_SPEND>

Options:

afpay global config

Global runtime configuration

Usage: afpay global config <COMMAND>

Subcommands:

afpay global config show

Show current runtime configuration

Usage: afpay global config show

afpay global config set

Update runtime configuration

Usage: afpay global config set [OPTIONS]

Options:

afpay global backup

Back up all data to a .tar.zst archive

Usage: afpay global backup [OPTIONS]

Options:

afpay global restore

Restore all data from a .tar.zst archive

Usage: afpay global restore [OPTIONS] <ARCHIVE>

Arguments:
Options:

afpay cashu

Cashu operations

Usage: afpay cashu <COMMAND>

Subcommands:

afpay cashu send

Send P2P cashu token (outputs token string; for Lightning, use send-to-ln)

Usage: afpay cashu send [OPTIONS] --amount-sats <AMOUNT_SATS>

Options:

afpay cashu receive

Receive cashu token

Usage: afpay cashu receive [OPTIONS] <TOKEN>

Arguments:
Options:

afpay cashu send-to-ln

Send cashu to a Lightning invoice

Usage: afpay cashu send-to-ln [OPTIONS] --to <TO>

Options:

afpay cashu receive-from-ln

Create Lightning invoice to receive cashu from LN

Usage: afpay cashu receive-from-ln [OPTIONS]

Options:

afpay cashu receive-from-ln-claim

Claim minted tokens from a receive-from-ln quote

Usage: afpay cashu receive-from-ln-claim --wallet <WALLET> --ln-quote-id <LN_QUOTE_ID>

Options:

afpay cashu balance

Check cashu balance

Usage: afpay cashu balance [OPTIONS]

Options:

afpay cashu wallet

Wallet management

Usage: afpay cashu wallet <COMMAND>

Subcommands:

afpay cashu wallet create

Create a new cashu wallet

Usage: afpay cashu wallet create [OPTIONS] --cashu-mint <MINT_URL>

Options:

afpay cashu wallet close

Close a zero-balance cashu wallet

Usage: afpay cashu wallet close [OPTIONS] --wallet <WALLET>

Options:

afpay cashu wallet list

List cashu wallets

Usage: afpay cashu wallet list

afpay cashu wallet dangerously-show-seed

Dangerously show wallet seed mnemonic (12 BIP39 words)

Usage: afpay cashu wallet dangerously-show-seed --wallet <WALLET>

Options:

afpay cashu wallet restore

Restore lost proofs from mint (fixes counter/proof sync issues)

Usage: afpay cashu wallet restore --wallet <WALLET>

Options:

afpay cashu limit

Spend limit for cashu network or a specific cashu wallet

Usage: afpay cashu limit [OPTIONS] <COMMAND>

Subcommands:
Options:

afpay cashu limit add

Add a network or wallet spend limit

Usage: afpay cashu limit add --window <WINDOW> --max-spend <MAX_SPEND>

Options:

afpay cashu config

Per-wallet configuration

Usage: afpay cashu config --wallet <WALLET> <COMMAND>

Subcommands:
Options:

afpay cashu config show

Show current wallet configuration

Usage: afpay cashu config show

afpay cashu config set

Update wallet settings

Usage: afpay cashu config set [OPTIONS]

Options:

afpay cashu backup

Back up cashu wallet data to a .tar.zst archive

Usage: afpay cashu backup [OPTIONS]

Options:

afpay cashu restore

Restore cashu wallet data from a .tar.zst archive

Usage: afpay cashu restore [OPTIONS] <ARCHIVE>

Arguments:
Options:

afpay ln

Lightning Network operations (NWC, phoenixd, LNbits)

Usage: afpay ln <COMMAND>

Subcommands:

afpay ln wallet

Wallet management

Usage: afpay ln wallet <COMMAND>

Subcommands:

afpay ln wallet create

Create a new Lightning wallet

Usage: afpay ln wallet create [OPTIONS] --backend <BACKEND>

Options:

afpay ln wallet close

Close a Lightning wallet

Usage: afpay ln wallet close [OPTIONS] --wallet <WALLET>

Options:

afpay ln wallet list

List Lightning wallets

Usage: afpay ln wallet list

afpay ln wallet dangerously-show-seed

Dangerously show wallet seed (for LN this is backend credential, not mnemonic words)

Usage: afpay ln wallet dangerously-show-seed --wallet <WALLET>

Options:

afpay ln send

Pay a Lightning invoice or BOLT12 offer

Usage: afpay ln send [OPTIONS] --to <TO>

Options:

afpay ln receive

Create a Lightning invoice (BOLT11) or get a reusable BOLT12 offer

Usage: afpay ln receive [OPTIONS]

Options:

afpay ln balance

Check balance

Usage: afpay ln balance [OPTIONS]

Options:

afpay ln limit

Spend limit for ln network or a specific ln wallet

Usage: afpay ln limit [OPTIONS] <COMMAND>

Subcommands:
Options:

afpay ln limit add

Add a network or wallet spend limit

Usage: afpay ln limit add --window <WINDOW> --max-spend <MAX_SPEND>

Options:

afpay ln config

Per-wallet configuration

Usage: afpay ln config --wallet <WALLET> <COMMAND>

Subcommands:
Options:

afpay ln config show

Show current wallet configuration

Usage: afpay ln config show

afpay ln config set

Update wallet settings

Usage: afpay ln config set [OPTIONS]

Options:

afpay ln backup

Back up Lightning wallet data to a .tar.zst archive

Usage: afpay ln backup [OPTIONS]

Options:

afpay ln restore

Restore Lightning wallet data from a .tar.zst archive

Usage: afpay ln restore [OPTIONS] <ARCHIVE>

Arguments:
Options:

afpay sol

Solana operations

Usage: afpay sol <COMMAND>

Subcommands:

afpay sol wallet

Wallet management

Usage: afpay sol wallet <COMMAND>

Subcommands:

afpay sol wallet create

Create a new Solana wallet

Usage: afpay sol wallet create [OPTIONS] --sol-rpc-endpoint <SOL_RPC_ENDPOINT>

Options:

afpay sol wallet close

Close a Solana wallet

Usage: afpay sol wallet close [OPTIONS] --wallet <WALLET>

Options:

afpay sol wallet list

List Solana wallets

Usage: afpay sol wallet list

afpay sol wallet dangerously-show-seed

Dangerously show wallet seed mnemonic (12 BIP39 words)

Usage: afpay sol wallet dangerously-show-seed --wallet <WALLET>

Options:

afpay sol send

Send SOL or SPL token transfer

Usage: afpay sol send [OPTIONS] --to <TO> --amount <AMOUNT> --token <TOKEN>

Options:

afpay sol receive

Show wallet receive address

Usage: afpay sol receive [OPTIONS]

Options:

afpay sol balance

Check balance

Usage: afpay sol balance [OPTIONS]

Options:

afpay sol limit

Spend limit for sol network or a specific sol wallet

Usage: afpay sol limit [OPTIONS] <COMMAND>

Subcommands:
Options:

afpay sol limit add

Add a network or wallet spend limit

Usage: afpay sol limit add [OPTIONS] --window <WINDOW> --max-spend <MAX_SPEND>

Options:

afpay sol config

Per-wallet configuration

Usage: afpay sol config --wallet <WALLET> <COMMAND>

Subcommands:
Options:

afpay sol config show

Show current wallet configuration

Usage: afpay sol config show

afpay sol config set

Update wallet settings

Usage: afpay sol config set [OPTIONS]

Options:

afpay sol config token-add

Register a custom token for balance tracking

Usage: afpay sol config token-add [OPTIONS] --symbol <SYMBOL> --address <ADDRESS>

Options:

afpay sol config token-remove

Unregister a custom token

Usage: afpay sol config token-remove --symbol <SYMBOL>

Options:

afpay sol backup

Back up Solana wallet data to a .tar.zst archive

Usage: afpay sol backup [OPTIONS]

Options:

afpay sol restore

Restore Solana wallet data from a .tar.zst archive

Usage: afpay sol restore [OPTIONS] <ARCHIVE>

Arguments:
Options:

afpay evm

EVM chain operations (Base, Arbitrum)

Usage: afpay evm <COMMAND>

Subcommands:

afpay evm wallet

Wallet management

Usage: afpay evm wallet <COMMAND>

Subcommands:

afpay evm wallet create

Create a new EVM chain wallet

Usage: afpay evm wallet create [OPTIONS] --evm-rpc-endpoint <EVM_RPC_ENDPOINT>

Options:

afpay evm wallet close

Close an EVM chain wallet

Usage: afpay evm wallet close [OPTIONS] --wallet <WALLET>

Options:

afpay evm wallet list

List EVM chain wallets

Usage: afpay evm wallet list

afpay evm wallet dangerously-show-seed

Dangerously show wallet seed mnemonic (12 BIP39 words)

Usage: afpay evm wallet dangerously-show-seed --wallet <WALLET>

Options:

afpay evm send

Send native token or ERC-20 token transfer

Usage: afpay evm send [OPTIONS] --to <TO> --amount <AMOUNT> --token <TOKEN>

Options:

afpay evm receive

Show wallet receive address

Usage: afpay evm receive [OPTIONS]

Options:

afpay evm balance

Check balance

Usage: afpay evm balance [OPTIONS]

Options:

afpay evm limit

Spend limit for evm network or a specific evm wallet

Usage: afpay evm limit [OPTIONS] <COMMAND>

Subcommands:
Options:

afpay evm limit add

Add a network or wallet spend limit

Usage: afpay evm limit add [OPTIONS] --window <WINDOW> --max-spend <MAX_SPEND>

Options:

afpay evm config

Per-wallet configuration

Usage: afpay evm config --wallet <WALLET> <COMMAND>

Subcommands:
Options:

afpay evm config show

Show current wallet configuration

Usage: afpay evm config show

afpay evm config set

Update wallet settings

Usage: afpay evm config set [OPTIONS]

Options:

afpay evm config token-add

Register a custom token for balance tracking

Usage: afpay evm config token-add [OPTIONS] --symbol <SYMBOL> --address <ADDRESS>

Options:

afpay evm config token-remove

Unregister a custom token

Usage: afpay evm config token-remove --symbol <SYMBOL>

Options:

afpay evm backup

Back up EVM wallet data to a .tar.zst archive

Usage: afpay evm backup [OPTIONS]

Options:

afpay evm restore

Restore EVM wallet data from a .tar.zst archive

Usage: afpay evm restore [OPTIONS] <ARCHIVE>

Arguments:
Options:

afpay btc

Bitcoin on-chain operations

Usage: afpay btc <COMMAND>

Subcommands:

afpay btc wallet

Wallet management

Usage: afpay btc wallet <COMMAND>

Subcommands:

afpay btc wallet create

Create a new Bitcoin wallet

Usage: afpay btc wallet create [OPTIONS]

Options:

afpay btc wallet close

Close a Bitcoin wallet

Usage: afpay btc wallet close [OPTIONS] --wallet <WALLET>

Options:

afpay btc wallet list

List Bitcoin wallets

Usage: afpay btc wallet list

afpay btc wallet dangerously-show-seed

Dangerously show wallet seed mnemonic (12 BIP39 words)

Usage: afpay btc wallet dangerously-show-seed --wallet <WALLET>

Options:

afpay btc send

Send BTC on-chain

Usage: afpay btc send [OPTIONS] --to <TO> --amount-sats <AMOUNT_SATS>

Options:

afpay btc receive

Show wallet receive address

Usage: afpay btc receive [OPTIONS]

Options:

afpay btc balance

Check balance

Usage: afpay btc balance [OPTIONS]

Options:

afpay btc limit

Spend limit for btc network or a specific btc wallet

Usage: afpay btc limit [OPTIONS] <COMMAND>

Subcommands:
Options:

afpay btc limit add

Add a network or wallet spend limit

Usage: afpay btc limit add --window <WINDOW> --max-spend <MAX_SPEND>

Options:

afpay btc config

Per-wallet configuration

Usage: afpay btc config --wallet <WALLET> <COMMAND>

Subcommands:
Options:

afpay btc config show

Show current wallet configuration

Usage: afpay btc config show

afpay btc config set

Update wallet settings

Usage: afpay btc config set [OPTIONS]

Options:

afpay btc backup

Back up Bitcoin wallet data to a .tar.zst archive

Usage: afpay btc backup [OPTIONS]

Options:

afpay btc restore

Restore Bitcoin wallet data from a .tar.zst archive

Usage: afpay btc restore [OPTIONS] <ARCHIVE>

Arguments:
Options:

afpay wallet

List all wallets (cross-network)

Usage: afpay wallet <COMMAND>

Subcommands:

afpay wallet list

List all wallets (cross-network)

Usage: afpay wallet list [OPTIONS]

Options:

afpay balance

All wallets balance (cross-network)

Usage: afpay balance [OPTIONS]

Options:

afpay history

History queries

Usage: afpay history <COMMAND>

Subcommands:

afpay history list

List history records from local store

Usage: afpay history list [OPTIONS]

Options:

afpay history status

Check history status

Usage: afpay history status --transaction-id <TRANSACTION_ID>

Options:

afpay history update

Incrementally sync on-chain/backend history into local store

Usage: afpay history update [OPTIONS]

Options:

afpay limit

Spend limit list and remove (cross-network)

Usage: afpay limit <COMMAND>

Subcommands:

afpay limit remove

Remove a spend limit rule by ID

Usage: afpay limit remove --rule-id <RULE_ID>

Options:

afpay limit list

List current limit status

Usage: afpay limit list