A FluxA Agent Wallet skill that enables agents to request budgets, sign x402 payments, and call paid endpoints autonomously. It walks through the full flow—from mandate creation to X-PAYMENT execution—so agents can perform paid actions without human intervention.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install fluxa-x402-payment或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install fluxa-x402-payment⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/fluxa-x402-payment/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: fluxA-x402-payment description: A FluxA Agent Wallet skill that enables agents to request budgets, sign x402 payments, and call paid endpoints autonomously. It walks through the full flow—from mandate creation to X-PAYMENT execution—so agents can perform paid actions without human intervention. ---
Step 1: Apply for a budget mandate
# You **MUST** estimate a **total budget** for this task, as it may involve calling tools that require payment via the FluxA Wallet.
# It is recommended to budget **1.5×** the estimated cost.
# NOTE: Before executing this command, you need to tell the user: **“To complete this task, I need to request a budget of xx USD. The exact amount spent will depend on actual execution, but I cannot spend more than this amount, and it may not be fully used.”**
node ./scripts/fluxa-cli.bundle.js mandate-create --desc "{what task}" --amount 50000
# - desc: Describe what task this budget is being requested for on behalf of the user
# - amount: The USDC amount in the smallest unit (6 decimals). For example, 1_000_000 represents 1 USDC.
# NOTE
# You need to remember the mandate ID to request the actual payment later, and ask the user to approve the authorization.
# You can wait about 10 seconds and then check the status using this method.
node ./scripts/fluxa-cli.bundle.js mandate-status --id <mandate-id>
Step 2: Use the budget mandate to request a payment signature (payment mandate)
node ./scripts/fluxa-cli.bundle.js x402-v3 \
--mandate <MANDATE_ID> \
--payload '<JSON>'
# Get `data.xPaymentB64` from response as PAYMENT_MANDATE
# This PAYMENT_MANDATE is sent to the server via the **X-Payment HTTP header** to complete the payment.
curl -H "X-PAYMENT: $PAYMENT_MANDATE" https://api.example.com/paid-endpoint
node ./scripts/fluxa-cli.bundle.js x402-v3 \
--mandate mand_Yfbpmb9PVZl05VaeR9nvQg \
--payload '{
"x402Version": 1,
"accepts": [{
"scheme": "exact",
...
"extra": {
"name": "USD Coin",
"version": "2"
}
}]
}'
## output:
{
"success": true,
"data": {
"X-PAYMENT": "base64-encoded-payment-header..."
}
}
安装 FluxA Agent Wallet for x402 Resources Payment 后,可以对 AI 说这些话来触发它
Help me get started with FluxA Agent Wallet for x402 Resources Payment
Explains what FluxA Agent Wallet for x402 Resources Payment does, walks through the setup, and runs a quick demo based on your current project
Use FluxA Agent Wallet for x402 Resources Payment to a FluxA Agent Wallet skill that enables agents to request budgets, ...
Invokes FluxA Agent Wallet for x402 Resources Payment with the right parameters and returns the result directly in the conversation
What can I do with FluxA Agent Wallet for x402 Resources Payment in my design & creative workflow?
将技能文件夹放到 ~/.claude/skills/fluxa-x402-payment/ 目录(个人级,所有项目可用),或 .claude/skills/fluxa-x402-payment/(项目级)。重启 AI 客户端后,用 /fluxa-x402-payment 主动调用,或让 AI 根据上下文自动发现并使用。
FluxA Agent Wallet for x402 Resources Payment 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
FluxA Agent Wallet for x402 Resources Payment 可免费安装使用。请查阅仓库了解许可证信息。
A FluxA Agent Wallet skill that enables agents to request budgets, sign x402 payments, and call paid endpoints autonomously. It walks through the full flow—from mandate creation to X-PAYMENT execution—so agents can perform paid actions without human intervention.
Lists the top use cases for FluxA Agent Wallet for x402 Resources Payment, with example commands for each scenario
Automate my design & creative tasks using FluxA Agent Wallet for x402 Resources Payment
Identifies repetitive steps in your workflow and sets up FluxA Agent Wallet for x402 Resources Payment to handle them automatically
FluxA Agent Wallet for x402 Resources Payment 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。