Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Agentic AQUA

Agentic AQUA (alpha) is an MCP server and CLI for managing Bitcoin and Liquid Network wallets through AI assistants like Claude. One seed backs both networks (unified wallet). Agentic AQUA can also operate on the Lightning Network.

⚠️ Alpha software. agentic-aqua is in early development. Use it only with small amounts you can afford to lose.

Do not use your main seed. Create a separate wallet for Agentic AQUA and keep only small amounts in it. Letting an AI assistant operate a wallet carries risks that a regular wallet does not: the model can misunderstand a request, follow instructions hidden in web pages or tool output, or expose data through conversation logs. Any of these can lead to lost funds.

Features

  • Generate & Import - Create new wallets or import existing seeds
  • Unified Wallet - One seed (mnemonic) for Bitcoin and Liquid; unified_balance shows both
  • Bitcoin (onchain) - BIP84 wallets, balance and send via btc_* tools (BDK)
  • Watch-Only - Import CT descriptors for balance monitoring
  • Send & Receive - Full transaction support (L-BTC, BTC, and Liquid assets like USDt)
  • Lightning - Send and receive via Lightning using L-BTC
  • Assets - Native support for L-BTC, USDt, and all Liquid assets
  • Swaps & Pegs - Convert BTC ↔ L-BTC and swap Liquid/cross-chain assets via SideSwap, SideShift, and Changelly
  • JAN3 Account - Login, Lightning Address, and WapuPay (pay ARS bank accounts with USDT or L-BTC) via your JAN3 account
  • PIX → DePix - Brazilian on-ramp through Ankara with Noviuz Hosted KYC
  • Secure - Encrypted storage, no remote servers for keys

Installation

Quickest way: just ask your AI agent directly:

Install this MCP server: https://pypi.org/project/agentic-aqua/

Python 3.13 required.

If you don't have uv installed:

# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Install Agentic AQUA:

uv tool install --python 3.13 agentic-aqua

This creates a permanent agentic-aqua executable. Find its full path with:

which agentic-aqua
# Example: /Users/yourname/.local/bin/agentic-aqua

Configure Claude Desktop (~/.claude/claude_desktop_config.json) using that path:

{
  "mcpServers": {
    "agentic-aqua": {
      "command": "/full/path/to/agentic-aqua",
      "args": []
    }
  }
}

Restart Claude Desktop and you're ready to use Bitcoin and Liquid wallets.

Updating / removing: uv tool upgrade agentic-aqua to update, uv tool uninstall agentic-aqua to remove.

Agent skill

The Agentic AQUA skill teaches AI agents (Claude Code, Cursor, Codex, OpenCode and others) how to use the aqua CLI and MCP tools. Install it with:

npx skills add jan3dev/agentic-aqua-skill

Add -g to make it available in every project. The skill repo covers per-agent targets and manual install.

For Developers

Clone and install from source:

git clone https://github.com/AquaWallet/agentic-aqua.git
cd agentic-aqua
uv python install 3.13
uv sync --python 3.13

Configure Claude Desktop using the full path to uv (find with which uv):

{
  "mcpServers": {
    "agentic-aqua": {
      "command": "/full/path/to/uv",
      "args": ["run", "--python", "3.13", "--directory", "/absolute/path/to/agentic-aqua", "python", "-m", "aqua.server"]
    }
  }
}

Quick Start

Once connected, you can ask Claude to:

  • "Create a new wallet" (creates both Bitcoin and Liquid wallets from one seed; the seed is never shown in the chat. Ask for a backup afterwards if you want one)
  • "Show my balance" / "What's my Bitcoin balance?"
  • "Generate a receive address" (Liquid or Bitcoin)
  • "Send 10,000 Sats to bc1..." / "Send 0.001 L-BTC to lq1..."
  • "Pay this Lightning invoice: lnbc..."
  • "Receive 50,000 Sats via Lightning"
  • "Delete my wallet" (the assistant shows your balances and asks for explicit confirmation first)

Available Tools

Wallet Management

Tool Description
lw_create_wallet Create a wallet from a newly generated seed (the seed is never shown or returned)
lw_backup_mnemonic Write the seed to a local backup file, only when you explicitly ask (never returned)
lw_import_mnemonic Import wallet from seed (also creates Bitcoin wallet)
lw_import_descriptor Import watch-only Liquid wallet from CT descriptor
lw_export_descriptor Export Liquid CT descriptor for watch-only use
btc_import_descriptor Import watch-only Bitcoin wallet from BIP84 descriptor
btc_export_descriptor Export Bitcoin BIP84 descriptors + xpub
lw_list_wallets List all wallets
delete_wallet Permanently delete a wallet, its seed and cached data. Two-step: without confirm it only previews balances; confirm=true deletes (irreversible)

⚠️ Bitcoin and Liquid descriptors cannot be derived from each other (different BIP84 paths + Liquid's SLIP-77 blinding key). To watch a unified wallet, import both descriptors separately.

Liquid (lw_*)

Tool Description
lw_balance Get wallet balances (all assets)
lw_address Generate Liquid receive address (lq1...)
lw_send Send L-BTC
lw_send_asset Send any Liquid asset (USDt, etc.)
lw_sweep Sweep the entire L-BTC (or one asset) balance to one address
lw_list_assets List known Liquid assets (asset_id, ticker, name, precision)
lw_transactions Transaction history
lw_tx_status Get transaction status (txid or explorer URL)

Bitcoin (btc_*)

Tool Description
btc_balance Get Bitcoin balance (sats)
btc_address Generate Bitcoin receive address (bc1...)
btc_transactions Bitcoin transaction history
btc_send Send BTC
btc_sweep Sweep the entire Bitcoin balance to one address

Unified

Tool Description
unified_balance Get balance for both Bitcoin and Liquid

Lightning

Tool Description
lightning_send Pay a Lightning invoice or Lightning Address using L-BTC (~0.1% + ~21 Sats)
lightning_transaction_status Check status of a Lightning swap (send or receive)
lightning_refund Recover the L-BTC locked up by a failed send swap
lightning_decode Decode a BOLT11 invoice without paying it
lightning_receive Generate a Lightning invoice to receive L-BTC — disabled by default

Sends go through Indra, AQUA's Boltz-compatible swap service (1,000–100,000 Sats, mainnet only). Set "lightning_provider": "boltz" in ~/.aqua/config.json — or AQUA_LIGHTNING_PROVIDER=boltz — to use Boltz instead (100–25,000,000 Sats, and the only option on testnet). Receiving over Lightning ships off; re-enable it with "lightning_receive": true. See docs/CONFIG.md.

When a send fails, its L-BTC stays locked on chain until it is refunded: lightning_refund (CLI aqua lightning refund --swap-id <id>) recovers it, cooperatively with the provider where possible and on its own after the swap's timeout block. See docs/submarine-swap-ln-refund.md.

Swaps — SideSwap (sideswap_*) — BTC ↔ L-BTC pegs and atomic Liquid asset swaps

Tool Description
sideswap_server_status Live fees, peg minimums, hot-wallet balance
sideswap_recommend Recommend a peg vs an instant swap for a BTC ↔ L-BTC conversion
sideswap_peg_quote Quote the receive amount for a peg at current fees
sideswap_peg_in Peg BTC → L-BTC
sideswap_peg_out Peg L-BTC → BTC
sideswap_peg_status Check status of a peg order
sideswap_list_assets List Liquid assets SideSwap supports for atomic swaps
sideswap_quote Read-only price quote for a Liquid asset swap
sideswap_execute_swap Execute an atomic Liquid asset swap (L-BTC ↔ USDt, etc.)
sideswap_swap_status Check status of an atomic asset swap

Swaps — SideShift (sideshift_*) — custodial cross-chain swaps (USDt across chains, BTC ↔ USDt-on-X)

Tool Description
sideshift_list_coins List supported coins and networks
sideshift_pair_info Rate / min / max for a pair
sideshift_quote Fixed-rate quote (~15 min TTL)
sideshift_recommend Recommend SideSwap vs SideShift for a pair
sideshift_send Send funds from the wallet via a fixed-rate shift
sideshift_receive Receive into the wallet via a variable-rate shift
sideshift_status Check status of a shift order

Swaps — Changelly (changelly_*) — USDt-Liquid ↔ USDt on Ethereum/Tron/BSC/Solana/Polygon

Tool Description
changelly_list_currencies List currencies Changelly supports
changelly_quote Fixed-rate quote for a USDt-Liquid ↔ USDt-on-X swap
changelly_send Send USDt-Liquid out to USDt on another chain
changelly_receive Receive USDt-Liquid from USDt on another chain
changelly_status Check status of a swap order

WapuPay (wapupay_*) — pay Argentine bank accounts in ARS, funded with USDT or L-BTC on Liquid

Tool Description
wapupay_exchange_rates Current exchange rates (e.g. USDT/ARS); public, no key needed
wapupay_quote Preview USDT cost, fee, and rate for an ARS payment
wapupay_create_order Create a direct-fiat order (USDT or L-BTC rail); returns a Liquid funding address
wapupay_fund_order Re-issue funding instructions for an existing order
wapupay_order_status Check a direct-fiat order's status
wapupay_orders List locally-tracked orders
wapupay_transactions List WapuPay transactions
wapupay_transaction Get a single transaction by id
wapupay_spending_limit Monthly spending limit (USDT) for the account/key
wapupay_provision_account Provision a WapuPay API key via your JAN3 account

JAN3 Account (jan3_*) — login, sessions, and Lightning Address for your JAN3 account

Tool Description
jan3_login / jan3_verify Default login flow: email OTP → verify, saves the session
jan3_login_start / jan3_login_complete Fallback paid captchaless login flow
jan3_session_info Status/metadata for a persisted session
jan3_list_sessions List all persisted sessions
jan3_logout Delete a persisted session
jan3_user_info Account profile + Lightning Address status
jan3_enable_lightning_address Enable/disable the Lightning Address
jan3_rebind_wallet Re-bind Lightning Address delivery to a different wallet (destructive)
jan3_ln_check_username Check if a Lightning username is available
jan3_purchase_ln_username Buy/update the Lightning username (on-chain payment)

PIX → DePix (eulen_*, pix_*) — Brazilian on-ramp through Ankara

Tool Description
eulen_kyc_session Create/reuse a Noviuz Hosted KYC session via Ankara (otp and/or pix verification); returns the verification_url to open in a browser
eulen_kyc_confirm Poll the hosted KYC result via Ankara (every 15-20 s while created)
pix_receive Create a PIX charge that pays DePix to the local Liquid wallet
pix_list List Ankara deposits with optional id, date-range, and status filters
pix_status Refresh the Ankara deposit status

This integration requires a JAN3 login and approved hosted KYC. Identity data is entered directly in Noviuz's hosted UI; agentic-aqua never asks for or stores CPF, e-mail, Pix data, name, or documents. With the pix method the user verifies by paying a small Pix that comes back as DePix to their own Liquid wallet. All API calls from agentic-aqua go to ANKARA_API_URL—never directly to Eulen.

Utilities

Tool Description
qr_generate Generate a PNG QR code for any content (address, invoice, URI)
qr_decode Decode a QR code from an image file
doctor Diagnose (and optionally repair) the ~/.aqua/config.json config file

CLI

Agentic AQUA also ships with a Click-based CLI (aqua) for direct, scriptable wallet operations. It exposes the same operations as the MCP tools.

# Discover commands
aqua --help
aqua wallet --help
aqua btc --help
aqua liquid --help
aqua lightning --help
aqua sideswap --help
aqua sideshift --help
aqua changelly --help
aqua wapupay --help
aqua jan3 --help
aqua eulen --help
aqua qr --help

# Wallet management
aqua wallet generate-mnemonic          # prints a seed in your local terminal only
aqua wallet create --wallet-name default --network mainnet --password-stdin   # seed never displayed
aqua wallet backup-mnemonic --wallet-name default   # writes <aqua dir>/backups/default-mnemonic.txt (plain text)
aqua wallet import-mnemonic --mnemonic-stdin --wallet-name default --network mainnet --password-stdin
aqua wallet list
aqua wallet delete --wallet-name old             # preview only: shows balances, deletes nothing, exits 1
aqua wallet delete --wallet-name old --confirm   # permanently deletes the wallet, its seed and the seed backup file

# Watch-only descriptors (Bitcoin and Liquid are separate)
aqua btc export-descriptor    --wallet-name default
aqua btc import-descriptor    --wallet-name cold --descriptor "wpkh([fp/84h/0h/0h]xpub.../0/*)#cs"
aqua liquid export-descriptor --wallet-name default
aqua liquid import-descriptor --wallet-name cold --descriptor "ct(slip77(...),elwpkh(...))"

# Balances
aqua balance                              # unified (BTC + Liquid)
aqua btc balance --wallet-name default
aqua liquid balance --wallet-name default

# Receive addresses
aqua btc address
aqua liquid address

# Send (--wallet-name is required for on-chain sends)
aqua btc send    --wallet-name default --address bc1... --amount 10000
aqua liquid send --wallet-name default --address lq1... --amount 50000
aqua liquid send-asset --wallet-name default --address lq1... --amount 1000000 --asset-id <asset_id>
# (or use --asset-ticker USDt instead of --asset-id)

# Transaction history & status
aqua btc transactions
aqua liquid transactions
aqua liquid tx-status --tx <txid|explorer_url>

# Lightning (L-BTC via Indra / Boltz)
aqua lightning send --invoice lnbc...
aqua lightning send --ln-address user@domain.com --amount-sats 1000
aqua lightning status --swap-id <id>
aqua lightning decode --invoice lnbc...

# Swaps & pegs
aqua sideswap peg-in --wallet-name default                       # BTC -> L-BTC
aqua sideswap peg-out --amount 50000 --btc-address bc1... --wallet-name default
aqua sideswap swap --asset-ticker USDt --amount 50000 --wallet-name default
aqua sideshift send --deposit-coin btc --deposit-network liquid --settle-coin usdt --settle-network tron \
  --settle-address T... --deposit-amount 0.001 --wallet-name default
aqua changelly send --external-network tron --settle-address T... --amount-from 100 --wallet-name default

# PIX -> DePix
aqua jan3 login --email person@example.com
aqua jan3 verify --email person@example.com --otp 123456
aqua eulen kyc-session --email person@example.com            # --method pix --amount-cents 1000 for Pix
aqua eulen kyc-confirm --email person@example.com --session-id <session_id> --wait
aqua eulen receive --email person@example.com --amount-cents 5000 --wallet-name default
aqua eulen list --email person@example.com --date-from 2026-09-14 --date-to 2026-09-18
aqua eulen status --swap-id <deposit_id> --email person@example.com

# WapuPay (pay ARS bank accounts, funded with USDT or L-BTC on Liquid)
aqua wapupay quote --amount-ars 10000 --alias some.alias
aqua wapupay create-order --amount-ars 10000 --alias some.alias --wallet-name default
# then fund the returned address:
aqua liquid send-asset --wallet-name default --address <funding_address> --amount <amount> --asset-ticker USDt

# QR
aqua qr decode ./invoice-qr.png

# Run as MCP stdio server
aqua serve       # recommended
aqua-mcp         # direct MCP entrypoint

Output defaults to a human-readable table on the terminal and JSON when piped. Force a format with --format json or --format pretty.

Loading seeds safely

Avoid pasting seeds into the chat with your agent. Because it will persist in logs and will be sent to the AI provider, agent transcripts may persist them. The recommended workflow is to use this command that hides the text input:

aqua wallet import-mnemonic --mnemonic-stdin --wallet-name defaultx --network mainnet --password-stdin

The CLI honors these variables out of the box:

Variable Used by
AQUA_MNEMONIC wallet import-mnemonic
AQUA_PASSWORD wallet import-mnemonic, btc send, liquid send, liquid send-asset, lightning send, lightning receive
AQUA_LIGHTNING_PROVIDER lightning send — overrides lightning_provider (indra | boltz)
INDRA_API_URL Base URL of the Indra swap service (default https://indra.aquabtc.com)
AQUA_<OPTION> Any CLI option (Click auto_envvar_prefix="AQUA") — e.g. AQUA_WALLET_NAME=default

For cron/automation without stdin or env vars, every command with --password-stdin also accepts --password-file PATH (a file holding the wallet password; cannot be combined with --password-stdin), e.g. aqua btc send --wallet-name default --address bc1... --amount 10000 --password-file ~/.aqua-pass. Keep that file at chmod 600.

If you would rather pipe secrets from a password manager, every secret-bearing command also accepts --mnemonic-stdin / --password-stdin:

pass show crypto/aqua-mnemonic | aqua-cli wallet import-mnemonic --mnemonic-stdin

Tips:

  • Never commit .env or secrets.env files (the project's .gitignore already excludes them).
  • Prefer set -a; . file; set +a over export $(cat file) — the former tolerates spaces and quotes inside values.
  • After importing a wallet, the seed is no longer needed for day-to-day operations; only AQUA_PASSWORD is used to sign transactions.

JAN3 account login

Two login flows, both multi-account (one session per email), ending with a locally saved session:

# Default (free email-OTP)
aqua jan3 login --email you@example.com          # emails an OTP
aqua jan3 verify --email you@example.com --otp 123456

# Fallback (paid captchaless), for accounts that can't use the free flow
aqua jan3 login-start --email you@example.com --wallet-name default --password-stdin
aqua jan3 login-complete --email you@example.com --otp 123456

Once logged in:

aqua jan3 list-sessions
aqua jan3 user-info --email you@example.com
aqua jan3 logout --email you@example.com

Configuration

Default config location: ~/.aqua/config.json

Migrating from aqua-mcp? The config dir moved from ~/.aqua-mcp to ~/.aqua. There is no automatic migration. To carry over your wallets, run once:

mv ~/.aqua-mcp ~/.aqua
{
  "network": "mainnet",
  "default_wallet": "default",
  "electrum_url": null,
  "auto_sync": true
}

Security

Seeds are encrypted at rest using a password (PBKDF2 + Fernet). Without a password, the seed is still Fernet-encrypted, but with a built-in default key that ships with the source code: this only hides it from plaintext scanners, and anyone who gets the wallet file can decrypt it. Use a password for real funds. MCP tools that take a wallet password also accept password_file (a local path to a file holding it) so the password never enters the conversation. Note: this password is NOT a BIP39 passphrase; the derived Liquid/Bitcoin keys depend solely on the seed, so the same seed restores identical descriptors in any BIP39-compliant wallet (AQUA, Blockstream App, Jade, etc.).

For maximum security you can:

  1. Generate wallet on an air-gapped device
  2. Export the CT descriptor
  3. Import as watch-only on your daily machine

All private key operations happen locally. Only blockchain sync uses Blockstream's public servers.

Development

# Install with dev dependencies
uv python install 3.13
uv sync --python 3.13 --all-extras

# Run tests
uv run --python 3.13 python -m pytest tests/

# Format code
uv run black src/
uv run ruff check src/

Architecture

AI Assistant ←→ MCP Server (Python) ←→ LWK (Liquid) ──→ Electrum/Esplora
                       │
                       ├──→ BDK (Bitcoin) ──→ Esplora (Blockstream)
                       │
                       └──→ Indra / Boltz ──→ Lightning

Credits

Built with:

  • LWK - Liquid Wallet Kit by Blockstream
  • BDK - Bitcoin Development Kit
  • MCP - Model Context Protocol
  • Boltz - Submarine swap protocol for Lightning

Metadata

Release files for agentic-aqua 0.6.0b3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentic-aqua 0.6.0b3
File Size Uploaded Provenance Actions
agentic_aqua-0.6.0b3.tar.gz 529.3 kB With provenance Details for agentic_aqua-0.6.0b3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentic-aqua 0.6.0b3
File Interpreter ABI Platform Actions
agentic_aqua-0.6.0b3-py3-none-any.whl Python 3 none any Details for agentic_aqua-0.6.0b3-py3-none-any.whl

Total release size: 781.2 kB

Release files / agentic_aqua-0.6.0b3.tar.gz

Download URL agentic_aqua-0.6.0b3.tar.gz
Size 529.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b947b12e9d235da5b111b78f7ea12d4e78ba9042c1bf7da10e191e837e7f55d1
BLAKE2b-256 checksum
How to use checksums
d65baaffeb7ec0ec59038726211247a4ce920839a8ed2c2b92dc5d2c439af56a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / agentic_aqua-0.6.0b3-py3-none-any.whl

Download URL agentic_aqua-0.6.0b3-py3-none-any.whl
Size 251.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b0ede686b455d09e062fe6b5055ffc69b3538d8907e9f318cdcc61211ab559f
BLAKE2b-256 checksum
How to use checksums
21b8424ec7a1d0afad680debff5dc8ecb21b2aaf0c1f347aacc8904779af031d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for agentic-aqua 0.6.0b3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agentic_aqua-0.6.0b3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page