Loading...
Loading...
FluxA Agent Wallet integration via CLI. Enables agents to make x402 payments for paid APIs, send USDC payouts to any wallet, and create payment links to receive payments. Use when the user asks about crypto payments, x402, USDC transfers, payment links, or interacting with the FluxA Agent Wallet.
npx skill4agent add fluxa-agent-payment/fluxa-ai-wallet-mcp fluxa-agent-walletscripts/fluxa-cli.bundle.jsscripts/fluxa-cli.bundle.jsnode scripts/fluxa-cli.bundle.js <command> [options]{ "success": true, "data": { ... } }{ "success": false, "error": "Error message" }01| Capability | What it does | When to use |
|---|---|---|
| x402 Payment (v3) | Pay for APIs using the x402 protocol with intent mandates | Agent hits HTTP 402, needs to pay for API access |
| Payout | Send USDC to any wallet address | Agent needs to transfer funds to a recipient |
| Payment Link | Create shareable URLs to receive payments | Agent needs to charge users, create invoices, sell content |
node scripts/fluxa-cli.bundle.js init \
--email "agent@example.com" \
--name "My AI Agent" \
--client "Agent v1.0"export AGENT_ID="ag_xxxxxxxxxxxx"
export AGENT_TOKEN="tok_xxxxxxxxxxxx"
export AGENT_JWT="eyJhbGciOiJ..."node scripts/fluxa-cli.bundle.js statusAskUserQuestionopenopen "<URL>"Agent: I need to open the authorization URL to sign the mandate.
[Yes, open the link] [No, show me the URL]
User: [Yes, open the link]
Agent: *runs* open "https://agentwallet.fluxapay.xyz/onboard/intent?oid=..."
Agent: I've opened the authorization page in your browser. Please sign the mandate, then let me know when you're done.authorizationUrlmandate-createapprovalUrlpayout| I want to... | Document |
|---|---|
| Pay for an API that returned HTTP 402 | X402-PAYMENT.md |
| Pay to a payment link (agent-to-agent) | PAYMENT-LINK.md — "Paying TO a Payment Link" section |
| Send USDC to a wallet address | PAYOUT.md |
| Create a payment link to receive payments | PAYMENT-LINK.md — "Create Payment Link" section |
1. PAYLOAD=$(curl -s <payment_link_url>) → Get full 402 payload JSON
2. mandate-create --desc "..." --amount <amount> → Create mandate (BOTH flags required)
3. User signs at authorizationUrl → Mandate becomes "signed"
4. mandate-status --id <mandate_id> → Verify signed (use --id, NOT --mandate)
5. x402-v3 --mandate <id> --payload "$PAYLOAD" → Get xPaymentB64 (pass FULL 402 JSON)
6. curl -H "X-Payment: <token>" <url> → Submit payment--payloadx402-v3accepts| Human-readable | Atomic units |
|---|---|
| 0.01 USDC | |
| 0.10 USDC | |
| 1.00 USDC | |
| 10.00 USDC | |
| Command | Required Flags | Description |
|---|---|---|
| (none) | Check agent configuration |
| | Register agent ID |
| | Create an intent mandate |
| | Query mandate status (NOT |
| | Execute x402 v3 payment |
| | Create a payout |
| | Query payout status |
| | Create a payment link |
| (none) | List payment links |
| | Get payment link details |
| | Update a payment link |
| | Delete a payment link |
| | Get payment records for a link |
| Wrong | Correct |
|---|---|
| |
| |
| |
| Variable | Description |
|---|---|
| Pre-configured agent ID |
| Pre-configured agent token |
| Pre-configured agent JWT |
| Email for auto-registration |
| Agent name for auto-registration |
| Client info for auto-registration |
| Custom data directory (default: |
| Wallet API base URL (default: |
| Agent ID API base URL (default: |