# Send FluxA-agent-wallet to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "fluxa-agent-wallet",
    "name": "FluxA-agent-wallet",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/cpppppp7/fluxa-agent-wallet",
    "canonicalUrl": "https://clawhub.ai/cpppppp7/fluxa-agent-wallet",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/fluxa-agent-wallet",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=fluxa-agent-wallet",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "PAYMENT-LINK.md",
      "SKILL.md",
      "X402-PAYMENT.md",
      "PAYOUT.md",
      "scripts/fluxa-cli.bundle.js"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/fluxa-agent-wallet"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/fluxa-agent-wallet",
    "downloadUrl": "https://openagent3.xyz/downloads/fluxa-agent-wallet",
    "agentUrl": "https://openagent3.xyz/skills/fluxa-agent-wallet/agent",
    "manifestUrl": "https://openagent3.xyz/skills/fluxa-agent-wallet/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/fluxa-agent-wallet/agent.md"
  }
}
```
## Documentation

### FluxA Agent Wallet

FluxA Agent Wallet lets AI agents perform onchain financial operations — payments, payouts, and payment links — without managing private keys. All operations use the CLI (scripts/fluxa-cli.bundle.js).

### Setup

The CLI bundle is located at scripts/fluxa-cli.bundle.js within this skill directory. It requires Node.js v18+.

node scripts/fluxa-cli.bundle.js <command> [options]

All commands output JSON to stdout:

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

Or on error:

{ "success": false, "error": "Error message" }

Exit code 0 = success, 1 = failure.

### Capabilities

CapabilityWhat it doesWhen to usex402 Payment (v3)Pay for APIs using the x402 protocol with intent mandatesAgent hits HTTP 402, needs to pay for API accessPayoutSend USDC to any wallet addressAgent needs to transfer funds to a recipientPayment LinkCreate shareable URLs to receive paymentsAgent needs to charge users, create invoices, sell content

### Prerequisites — Register Agent ID

Before any operation, the agent must have an Agent ID. Register once:

node scripts/fluxa-cli.bundle.js init \\
  --email "agent@example.com" \\
  --name "My AI Agent" \\
  --client "Agent v1.0"

Or pre-configure via environment variables:

export AGENT_ID="ag_xxxxxxxxxxxx"
export AGENT_TOKEN="tok_xxxxxxxxxxxx"
export AGENT_JWT="eyJhbGciOiJ..."

Verify status:

node scripts/fluxa-cli.bundle.js status

The CLI automatically refreshes expired JWTs.

### Opening Authorization URLs (UX Pattern)

Many operations require user authorization via a URL (mandate signing, payout approval, agent registration). When you need the user to open a URL:

Always ask the user first using AskUserQuestion tool with options:

"Yes, open the link"
"No, show me the URL"



If user chooses YES: Use the open command to open the URL in their default browser:
open "<URL>"



If user chooses NO: Display the URL and ask how they'd like to proceed.

Example interaction flow:

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.

This pattern applies to:

Mandate authorization (authorizationUrl from mandate-create)
Payout approval (approvalUrl from payout)
Agent registration (if manual registration is needed)

### Quick Decision Guide

I want to...DocumentPay for an API that returned HTTP 402X402-PAYMENT.mdPay to a payment link (agent-to-agent)PAYMENT-LINK.md — "Paying TO a Payment Link" sectionSend USDC to a wallet addressPAYOUT.mdCreate a payment link to receive paymentsPAYMENT-LINK.md — "Create Payment Link" section

### Common Flow: Paying to a Payment Link

This is a 6-step process using CLI:

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

Critical: The --payload for x402-v3 must be the complete 402 response JSON including the accepts array, not just extracted fields.

See PAYMENT-LINK.md for the complete walkthrough with examples.

### Amount Format

All amounts are in smallest units (atomic units). For USDC (6 decimals):

Human-readableAtomic units0.01 USDC100000.10 USDC1000001.00 USDC100000010.00 USDC10000000

### CLI Commands Quick Reference

CommandRequired FlagsDescriptionstatus(none)Check agent configurationinit--email, --nameRegister agent IDmandate-create--desc, --amountCreate an intent mandatemandate-status--idQuery mandate status (NOT --mandate)x402-v3--mandate, --payloadExecute x402 v3 paymentpayout--to, --amount, --idCreate a payoutpayout-status--idQuery payout statuspaymentlink-create--amountCreate a payment linkpaymentlink-list(none)List payment linkspaymentlink-get--idGet payment link detailspaymentlink-update--idUpdate a payment linkpaymentlink-delete--idDelete a payment linkpaymentlink-payments--idGet payment records for a link

Common Mistakes to Avoid:

WrongCorrectmandate-create --amount 100000mandate-create --desc "..." --amount 100000mandate-status --mandate mand_xxxmandate-status --id mand_xxxx402-v3 --payload '{"maxAmountRequired":"100000"}'x402-v3 --payload '<full 402 response with accepts array>'

### Environment Variables

VariableDescriptionAGENT_IDPre-configured agent IDAGENT_TOKENPre-configured agent tokenAGENT_JWTPre-configured agent JWTAGENT_EMAILEmail for auto-registrationAGENT_NAMEAgent name for auto-registrationCLIENT_INFOClient info for auto-registrationFLUXA_DATA_DIRCustom data directory (default: ~/.fluxa-ai-wallet-mcp)WALLET_APIWallet API base URL (default: https://walletapi.fluxapay.xyz)AGENT_ID_APIAgent ID API base URL (default: https://agentid.fluxapay.xyz)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: cpppppp7
- Version: 1.0.1
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/fluxa-agent-wallet)
- [Send to Agent page](https://openagent3.xyz/skills/fluxa-agent-wallet/agent)
- [JSON manifest](https://openagent3.xyz/skills/fluxa-agent-wallet/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/fluxa-agent-wallet/agent.md)
- [Download page](https://openagent3.xyz/downloads/fluxa-agent-wallet)