Your Agent Wallet
for the Bitcoin Economy.

Give your AI agent a native way to hold balances, move funds, and execute trades on Bitcoin. Secure and fully self-custodial.

$ npx @secretkeylabs/xverse-agent-wallet --install

Read documentation

Built on Bitcoin • Earn on Starknet • Pay on Spark

Xverse wallet app interface with portfolio overview

# Start with Claude Code
xverse-wallet agent

# Check portfolio across all chains
xverse-wallet portfolio --accounts 0-4 --json

# Pay a Lightning invoice via Spark
xverse-wallet spark lightning pay --invoice <bolt11> --yes --json

# Swap USDC to WBTC on Starknet via AVNU
xverse-wallet swap execute --from starknet:USDC --to starknet:WBTC --amount 100 --yes --json

# Call a paid API over Lightning (MPP)
xverse-wallet pay request https://api.secretkeylabs.io/​v1/bitcoin/price --yes --json

> _

Work with

Claude
Cursor
OpenClaw
Hermes
Codex
Copilot
Cline
Windsurf

Everything Your Agent Needs

Self-Custodial

Your keys. Your machine. AES-256-GCM encryption at rest. Same core Bitcoin wallet tech that secures Xverse wallets used by millions.

Swaps & On-Ramps

Swap any asset across any chain. Bitcoin to Starknet WBTC. Runes to BTC. Stacks to Spark. Routes through AVNU, Flashnet, Dotswap, and Sats Terminal. Buy BTC with fiat via MoonPay, Revolut, or Banxa. One command.

xverse-wallet swap execute --from starknet:USDC --to starknet:WBTC --amount 100 --yes --json

Stablecoins on Any Chain

USDC on Starknet. USDB on Spark. USDCx on Stacks. Unified stablecoin management across every chain. Check balances, send, and convert between stables and BTC from one CLI.

Lightning Payments via Spark

Send and receive on Bitcoin L1 and Lightning through Spark. Sub-second settlement. Sub-cent fees. The speed agents need to transact in real time.

xverse-wallet spark lightning pay --invoice <bolt11> --yes --json

How it works

Machine Payments Protocol (MPP)

Your agent calls an API, gets a 402, pays the Lightning invoice via Spark, and receives the data. Built on the Machine Payments Protocol standard pioneered by Stripe and Tempo. Autonomous API commerce. No human in the loop.

xverse-wallet pay request https://api.secretkeylabs.io/v1/bitcoin/price --yes --json

Model Context Protocol (MCP)

The Xverse API ships with a native MCP server. Drop it into Claude, Cursor, or any MCP-compatible agent and your model can read Bitcoin data on demand: UTXOs, balances, Ordinals, Runes, mempool fees. Query first. Pay with MPP. Execute via the wallet.

xverse-wallet portfolio --accounts 0-4 --json

Agentic Trading

Automated execution across the Bitcoin ecosystem. Spot trades on Starknet via AVNU. Swaps on Flashnet through Spark. Runes on Bitcoin L1 via Dotswap and Sats Terminal. Stacks via Bitflow. Quote, compare, execute from the CLI.

xverse-wallet swap execute --from starknet:USDC --to starknet:WBTC --amount 100 --yes --json

What to Build First

01

Sweep Earn rewards into cold storage

Automate yield harvesting on Starknet into your long-term Bitcoin L1 vault. Every sat secured.

02

Pay Lightning-gated APIs on the fly

Let your agent buy data, compute, and services via MPP over Spark.

03

Rebalance across Bitcoin layers

Move between L1, Spark, Starknet and Stacks automatically.

The Stack Underneath

Starknet
AVNU
Spark
Flashnet
Stacks
Bitflow
Dotswap
Sats Terminal
Zellic

Give Your Agent a Wallet

Open source. Self-custodial. Ready for the agentic economy.

$ npx @secretkeylabs/xverse-agent-wallet --install

Frequently Asked Questions

What is the Xverse Agent Wallet?

Dropdown Arrow

The Xverse Agent Wallet is a self-custodial Bitcoin wallet built for AI agents. It lets autonomous systems hold BTC, send Lightning payments via Spark, execute trades across Starknet and Bitcoin L1, and manage funds without human intervention. Keys stay on the machine. Xverse never has access.

‍

How do AI agents connect to Bitcoin?

Dropdown Arrow

Through MCP (Model Context Protocol). The Xverse API ships a native MCP server that plugs into Claude, Cursor, Codex, Copilot, Cline, Windsurf, OpenClaw, and Hermes. Your agent reads onchain data, signs transactions, and pays for API calls over Lightning. One install. No middleware.

‍

What can agents do with the Xverse wallet?

Dropdown Arrow

Pay Lightning invoices autonomously via MPP. Execute spot trades on Starknet through AVNU. Swap on Flashnet via Spark. Buy and sell Runes on Bitcoin L1. Sweep Earn rewards into cold storage. Rebalance across L1, Stacks, Starknet, and Spark. All from the CLI.

Last updated: November 2026