Skip to content

fluxa-agent-wallet ​

fluxa-agent-wallet is FluxA's main Agent Skill. It gives an AI agent a co-wallet: the agent asks to spend, receive or move funds, and the user approves the scope (a one-off approval, or a budget called a mandate). The agent does all of this through the FluxA Wallet CLI (@fluxa-pay/fluxa-wallet). Every command prints JSON, and no private keys or payment code live in the agent.

Current versionSkill 0.5.3, requires CLI @fluxa-pay/fluxa-wallet 0.5.3 or newer
RuntimeNode.js 18+ (for the CLI)
Sourcegithub.com/FluxA-Agent-Payment/FluxA-AI-Wallet-MCP/tree/main/skills/fluxa-agent-wallet
Live copyhttps://fluxapay.xyz/skill.md

Install ​

Option 1: let the agent install it. Paste this into your agent:

text
Read and install https://fluxapay.xyz/skill.md

Option 2: install with the skills installer.

bash
npx skills add -s fluxa-agent-wallet -y -g FluxA-Agent-Payment/FluxA-AI-Wallet-MCP

Either way, the agent then runs the skill's Setup:

bash
npm install -g @fluxa-pay/fluxa-wallet@latest
fluxa-wallet --version                     # 0.5.3 or newer
fluxa-wallet status                        # already configured? skip init
fluxa-wallet init --name "My AI Agent" --client "Claude Code on macOS"
fluxa-wallet check-wallet                  # linked: false → run link-wallet
fluxa-wallet link-wallet                   # returns a URL for the user to open

The user opens the link-wallet URL and approves the agent in the FluxA Wallet. Credentials are saved locally in ~/.fluxa-ai-wallet-mcp/config.json (set FLUXA_DATA_DIR to use another directory). See CLI › Setup for every option.

Keeping up to date

If payments start failing with errors the agent can't resolve, update both pieces: reinstall the skill from https://fluxapay.xyz/skill.md and run npm install -g @fluxa-pay/fluxa-wallet@latest.

How approvals work ​

  • Spending needs approval. The agent shows the cost and gets your explicit choice before it spends. For repeated spending, such as paid APIs, it asks for a mandate: a budget with an amount, a time window and a purpose, which you sign once.
  • The agent plans budgets per task. It reuses an existing signed mandate when one fits (fluxa-wallet mandates) and sizes a new one for the whole task, not one per call. For pay-per-call APIs it asks for a budget that covers about 100 calls by default, so you aren't asked again on every call.
  • Approval links are clickable. When your approval is needed (linking the wallet, signing a mandate, approving a payout), the agent gives you the full URL to open.
  • Costs are reported honestly. After AgentMarket model calls, the agent reports the cost. A negative Units balance means usage that hasn't been paid for yet, and the agent tells you so.

Capabilities ​

The skill covers more than the CLI's payment basics. Each row points to where it's documented. The CLI pages hold the full command reference.

CapabilityWhat the agent can doMain commandsDocs
x402 paymentsPay HTTP 402 APIs from a signed mandate, then retry the request with the payment headermandate-create, mandate-status, mandates, x402CLI › Payments, X402 Payment guide
PayoutSend USDC on Base to any wallet address, with approval per payout or within a signed mandatepayout, payout-statusCLI › Payouts, Payout guide
Transfer to agentSend USDC to another agent using only its Agent ID, through its Unify Payment Linkmandate-create, x402UPL guide
Payment linksCreate, list, update and delete links that collect USDC, optionally delivering content after paymentpaymentlink-*CLI › Receiving, Payment Link guide
Received payments & refundsList incoming payments, then issue full or partial refunds for payment-link paymentsreceived-records, received-record, paymentlink-refund-*CLI › Receiving
Agent cardsIssue prepaid virtual cards for the agent, check balances and transactions, recharge or withdraw, and read 3DS codescard ...AgentCard
Linked card (beta)Pay a supported merchant checkout with the user's own linked card, within a merchant-scoped card mandate. The agent never sees the card numberlinked-card ..., headless-checkoutCLI › Linked card
Agent VC & Agent IDIssue a short-lived Verifiable Credential to sign in to a third-party service without sharing the agent's login tokenagent-vcLog in to Third-Party, CLI › Account
AgentMarket: discover & planSearch paid APIs, models and skills, and get a recommended tool plan for a taskmarket search, plan-tool-use, market infoAgentMarket
Models on UnitsCall OpenAI-compatible LLMs from one prepaid Units balance, check the balance and history, and top it up with USDC or Monetize Creditsmarket model remainingUsage, market model usageHistory, market model topupModels & Units
Token PlanBuy a monthly model allowance on a provider's own endpointmarket tokenplan ...Token Plans
AgentMarket API keysCreate, cap, update and revoke fxa_live_ keys for apps and servicesmarket keys ...API keys
Wallet overviewShow the wallet address, balances, mandates and recent spendingwallet-address, balance, mandates, recent-transactionsCLI › Account

Scheduled tasks ​

If your agent runtime supports scheduled tasks, the skill can set up two recurring jobs:

TaskWhat it doesSuggested schedule
Daily wallet checkSummarizes yesterday's incoming payments and relevant FluxA announcementsDaily at 10:00 and 18:00 in your timezone
Token usage management & auto top-upWatches AgentMarket model usage and the Units balance, analyzes spend per API key, suggests cheaper models, and tops up automatically within the rules you approved (trigger, bundle, currency and spending scope)Twice a day

Automatic top-ups only use a mandate you have already signed for that purpose. Widening the scope needs your approval again.

Funding the wallet ​

You add and manage funds in the FluxA Wallet:

  • USDC: pay by credit card, send USDC on Base to the wallet address (fluxa-wallet wallet-address), or bridge from another chain.
  • Monetize Credits: bought by credit card and spendable only on AgentMarket resources. Credits can't be transferred or used as general USDC.

Amounts in CLI commands are in atomic units: 1000000 = 1 USDC.

Skill contents ​

fluxa-agent-wallet/
├── SKILL.md                         ← Setup, rules, capability map, CLI quick reference
├── MANDATE-PLANNING.md              ← How to size and reuse budgets
├── X402-PAYMENT.md                  ← Paying x402 APIs
├── x402-SERVICES.md                 ← Finding paid APIs and models on AgentMarket
├── TRY-ONESHOT-API.md               ← Guided first paid-API demo
├── PAYOUT.md                        ← Sending USDC to an address
├── TRANSFER-TO-AGENT.md             ← Sending USDC to an Agent ID (UPL)
├── PAYMENT-LINK.md                  ← Payment links, received payments, refunds
├── LINKED-CARD.md                   ← Paying with the user's linked card (beta)
├── VC-ISSUE.md                      ← Agent Verifiable Credentials
├── TOKENPLAN.md                     ← Monthly Token Plans
├── TOKEN-MANAGEMENT.md              ← Scheduled usage management & auto top-up
├── SCHEDULED-CHECKIN.md             ← Scheduled daily wallet check
├── CLAWPI.md                        ← ClawPI social gifting walkthrough
└── INTEGRATION-GUIDE-*.md           ← Guides for developers integrating with agents

There's no bundled script. The skill drives the fluxa-wallet CLI from npm.

Released under the MIT License.