npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fluxa-pay/fluxa-wallet

v0.5.0

Published

FluxA Agent Wallet CLI — payments, payouts, and payment links for AI agents

Downloads

430

Readme

@fluxa-pay/fluxa-wallet

FluxA Agent Wallet CLI — x402 payments, payouts, payment links, refunds, prepaid cards, and account reads for AI agents.

Install

npm install -g @fluxa-pay/fluxa-wallet
fluxa-wallet --version

Usage

fluxa-wallet <command> [options]
fluxa-wallet <command> --help     # full options for any command

Commands

Account & status (read-only)

| Command | Description | |---------|-------------| | status | Local agent configuration status | | wallet-address | Linked user's wallet address (prints the address) | | balance | Linked wallet balances — USDC / XRP / credits | | mandates | List mandates with limit / spent / remaining | | recent-transactions | Recent transactions — USDC / XRP / credits spends (--limit, 1-100) | | check-wallet | Whether the agent is linked to a user's wallet | | version | Print the CLI version (also --version, -v) |

Setup

| Command | Description | |---------|-------------| | init | Register a new agent ID (--name, --client) | | refreshJWT | Refresh the JWT and print the new token | | link-wallet | Get the wallet-linking URL (or confirm already linked) |

x402 payments

| Command | Description | |---------|-------------| | x402 | Execute an x402 payment (delegates to v3; --mandate, --payload) | | x402-v3 | Execute an x402 v2/v3 payment (--mandate, --payload) | | mandate-create | Create an intent mandate (--desc, --amount; --currency CARD_USD plus merchant flags for a linked-card mandate) | | mandate-status | Query a mandate by id (--id) |

Linked cards (VIC)

The user links their own card in the wallet UI; the agent reads it and pays with a signed CARD_USD mandate.

| Command | Description | |---------|-------------| | linked-card list | List the linked (source) cards in the user's wallet (--limit, --cursor) | | linked-card mandates | List CARD_USD mandates: all, per card (--card), or eligible for an amount (--host, --amount) | | linked-card subcard | Show the credential issued under one CARD_USD mandate (--mandate) | | headless-checkout | Pay a WPE payment attempt with a signed CARD_USD mandate (--mandate, --attempt, --billing) |

Payouts

| Command | Description | |---------|-------------| | payout | Send USDC to a wallet address (--to, --amount, --id) | | payout-status | Query a payout (--id) |

Payment links (receiving)

| Command | Description | |---------|-------------| | paymentlink-create | Create a payment link (--amount) | | paymentlink-list | List payment links | | paymentlink-get | Get a payment link (--id) | | paymentlink-update | Update a payment link (--id) | | paymentlink-delete | Delete a payment link (--id) | | paymentlink-payments | Payments received on a link (--id) | | received-records | All received payment records | | received-record | A single received record (--id) | | paymentlink-refund-create | Initiate a refund (--payment-id) | | paymentlink-refund-list | List refunds | | paymentlink-refund-get | Get a refund (--id) | | paymentlink-refund-cancel | Cancel a pending refund (--id) |

Prepaid cards

| Command | Description | |---------|-------------| | card create | Issue a funded virtual card (--amount, --mandate) | | card list | List cards created by this agent (--global for the linked account) | | card details | Reveal PAN / CVV / expiry (--id) | | card balance | Refresh & show card balance (--id) | | card transactions | List card transaction history (--id, optional filters) | | card 3ds latest | Show the latest 3DS challenge (--id) | | card 3ds latest_1h | Show 3DS challenges from the last hour (--id) | | card holder create | Set up the account cardholder once (--first-name, --last-name) | | card holder me | Show the account cardholder | | card recharge | Add funds to a card (--id, --amount, --mandate) | | card withdraw | Withdraw card balance (--id, optional --amount) | | card withdrawals | List card withdrawals (--id) | | card withdrawal | Get one card withdrawal (--id, --withdrawal-id) |

Identity

| Command | Description | |---------|-------------| | agent-vc | Issue a short-lived agent VC for a third party (--audience, --challenge) |

Run fluxa-wallet <command> --help for the complete option list of any command.

Quick Start

# Register your agent
fluxa-wallet init --name "My AI Agent" --client "Agent v1.0"

# Check the linked wallet and balances
fluxa-wallet wallet-address
fluxa-wallet balance
fluxa-wallet check-wallet

# Create an intent mandate, then pay an x402 API
fluxa-wallet mandate-create --desc "Spend up to 0.10 USDC" --amount 100000
fluxa-wallet x402 --mandate mand_xxx --payload '{"accepts":[...]}'

# Linked card: CARD_USD mandate for one merchant, user approves in the wallet, then pay
fluxa-wallet mandate-create --currency CARD_USD --desc "Buy a USB-C cable on Amazon, up to $30" --amount 3000 \
  --merchant-name Amazon --merchant-url https://www.amazon.com --merchant-country US
fluxa-wallet linked-card list
fluxa-wallet linked-card mandates --host www.amazon.com --amount 3000
fluxa-wallet linked-card subcard --mandate mand_xxx
fluxa-wallet headless-checkout --mandate mand_xxx --attempt wpa_xxx --billing @billing.json

# AgentCard: one-time holder setup, then issue a card
fluxa-wallet card holder create --first-name Alice --last-name Agent
fluxa-wallet card create --amount 25.00 --mandate mand_xxx
fluxa-wallet card list
fluxa-wallet card list --global
fluxa-wallet card transactions --id card_xxx
fluxa-wallet card 3ds latest --id card_xxx
fluxa-wallet card 3ds latest_1h --id card_xxx

# Send a payout
fluxa-wallet payout --to 0x... --amount 1000000 --id payout_001

# Receive: create a payment link
fluxa-wallet paymentlink-create --amount 5000000 --desc "AI Report"

Output Format

Most commands print a JSON envelope:

{ "success": true, "data": { ... } }

The read commands wallet-address, balance, mandates, recent-transactions, and successful card ... commands print their value directly — a bare address string or bare JSON — without the {success,data} wrapper, so they're easy to pipe. card list prints the cards array directly. version prints just the version string. On error, every command falls back to:

{ "success": false, "error": "..." }

Exit code 0 = success, 1 = failure.

Environment Variables

| Variable | Description | |----------|-------------| | AGENT_ID | Pre-configured agent ID | | AGENT_TOKEN | Pre-configured agent token | | AGENT_JWT | Pre-configured agent JWT | | AGENT_NAME | Agent name for auto-registration | | CLIENT_INFO | Client info for auto-registration | | FLUXA_DATA_DIR | Custom data directory (default: ~/.fluxa-ai-wallet-mcp) | | WALLET_API | Wallet API base URL | | AGENT_ID_API | Agent ID API base URL | | CARD_SERVICE_API | AgentCard API base URL (default: https://agentcard.fluxapay.xyz) |

Related

License

Apache-2.0