[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74ENJYS186MQ0577AXMATMN":3,"skill-same:01M74ENJYS186MQ0577AXMATMN":126},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":13,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":61},"01M74ENJYS186MQ0577AXMATMN","agentxpay",null,"AgentXPay Skill — 让 AI Agent 在 Monad 链上通过 x402 协议自主发现、付费、订阅 AI 服务。支持链上支付、Agent 钱包管理、服务订阅和资金托管。","meghal86\u002Fstacksignal","meghal86","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F37388715?v=4","01M6CS2EW8SK89GH52R2ZEN8QQ","01M728J5CGY456EETEFG6HJBTM",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: agentxpay\ndescription: AgentXPay Skill — 让 AI Agent 在 Monad 链上通过 x402 协议自主发现、付费、订阅 AI 服务。支持链上支付、Agent 钱包管理、服务订阅和资金托管。\nlicense: MIT\ncompatibility: Node.js >= 18, ethers v6, @agentxpay\u002Fsdk, Monad RPC 访问, 已部署 AgentXPay 合约\nmetadata: {\"author\": \"jasonruan\", \"version\": \"0.1.0\", \"chain\": \"monad\", \"protocol\": \"x402\", \"openclaw\": {\"requires\": {\"bins\": [\"npx\", \"node\"], \"env\": [\"RPC_URL\", \"PRIVATE_KEY\", \"SERVICE_REGISTRY_ADDRESS\", \"PAYMENT_MANAGER_ADDRESS\"]}, \"primaryEnv\": \"PRIVATE_KEY\", \"emoji\": \"💰\", \"homepage\": \"https:\u002F\u002Fgithub.com\u002FAgentXPay\"}}\nuser-invocable: true\ncommand-dispatch: tool\ncommand-tool: agentxpay_smart_call\n---\n\n# AgentXPay Skill\n\n让 AI Agent 具备在 Monad 区块链上**自主发现 AI 服务、链上付费、管理钱包**的能力。\n\n核心机制：通过 **x402 协议**（HTTP 402 Payment Required），Agent 发送请求 → 收到 402 → 自动链上支付 → 携带交易哈希重试 → 获取 AI 服务响应，全程无需人工介入。\n\n---\n\n## 前置条件\n\n在使用本 Skill 前，需要确保以下配置可用：\n\n| 变量 | 必填 | 说明 |\n|------|------|------|\n| `RPC_URL` | 是 | Monad RPC 节点地址 |\n| `PRIVATE_KEY` | 是 | Agent 钱包私钥 |\n| `SERVICE_REGISTRY_ADDRESS` | 是 | ServiceRegistry 合约地址 |\n| `PAYMENT_MANAGER_ADDRESS` | 是 | PaymentManager 合约地址 |\n| `SUBSCRIPTION_MANAGER_ADDRESS` | 否 | SubscriptionManager 合约地址 |\n| `ESCROW_ADDRESS` | 否 | Escrow 合约地址 |\n| `AGENT_WALLET_FACTORY_ADDRESS` | 否 | AgentWalletFactory 合约地址 |\n\n2. **依赖**：`@agentxpay\u002Fsdk`、`ethers` v6\n\n---\n\n## 可用 Tool 清单\n\n本 Skill 提供以下 7 个 Tool，AI 可根据任务需要选择调用：\n\n### Tool 1: `agentxpay_discover_services`\n\n**用途**：在 Monad 链上发现已注册的 AI 服务。\n\n**参数**：\n| 参数 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| category | string | 否 | 服务类别过滤，如 \"LLM\"、\"Image\"、\"Code\" |\n| maxPrice | string | 否 | 最大单价（MON），如 \"0.05\" |\n\n**返回**：`{ services: [...], totalCount: number }`\n\n**使用场景**：用户问\"有哪些 AI 服务可用\"、\"找一个图像生成服务\"时调用。\n\n**执行方式**：运行 `scripts\u002Frun-tool.ts discover_services '{\"category\":\"LLM\"}'`\n\n---\n\n### Tool 2: `agentxpay_pay_and_call` （核心 Tool）\n\n**用途**：通过 x402 协议自动付费调用 AI 服务端点。\n\n**参数**：\n| 参数 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| url | string | **是** | AI 服务端点 URL |\n| method | string | 否 | HTTP 方法，默认 \"POST\" |\n| body | object | 否 | 请求体（会被 JSON 序列化） |\n| headers | object | 否 | 额外 HTTP 请求头 |\n\n**返回**：`{ status, data, payment: { txHash, amount, serviceId }, latencyMs }`\n\n**工作流程**：\n1. 向目标 URL 发送 HTTP 请求\n2. 若收到 HTTP 402 响应，解析 `X-Payment-*` 响应头\n3. 自动调用 PaymentManager 合约完成链上支付\n4. 携带 `X-Payment-TxHash` 重新发送请求\n5. 返回 AI 服务响应 + 支付凭证\n\n**使用场景**：用户说\"帮我调用这个 AI 接口\"、\"用 GPT-4 回答问题\"时调用。\n\n**执行方式**：运行 `scripts\u002Frun-tool.ts pay_and_call '{\"url\":\"http:\u002F\u002F...\",\"method\":\"POST\",\"body\":{\"prompt\":\"hello\"}}'`\n\n---\n\n### Tool 3: `agentxpay_smart_call` （推荐：一步到位）\n\n**用途**：智能发现 → 选择最优服务 → 自动付费调用，一步完成。\n\n**参数**：\n| 参数 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| task | string | **是** | 任务描述，如 \"生成一张赛博朋克猫图片\" |\n| category | string | 否 | 偏好的服务类别 |\n| maxBudget | string | 否 | 最大预算（MON） |\n| preferCheapest | boolean | 否 | 是否优先选最便宜的 |\n\n**返回**：`{ selectedService: {...}, response, payment, latencyMs }`\n\n**使用场景**：用户描述一个需要外部 AI 服务的任务，但没有指定具体服务端点时。这是**最常用的 Tool**。\n\n**执行方式**：运行 `scripts\u002Frun-tool.ts smart_call '{\"task\":\"生成赛博朋克猫图片\",\"category\":\"Image\"}'`\n\n---\n\n### Tool 4: `agentxpay_manage_wallet`\n\n**用途**：创建和管理 Agent 智能合约钱包，包括授权\u002F撤销 Agent 地址和通过钱包余额支付服务。\n\n**参数**：\n| 参数 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| action | string | **是** | \"create\" \u002F \"fund\" \u002F \"get_info\" \u002F \"set_limit\" \u002F \"authorize_agent\" \u002F \"revoke_agent\" \u002F \"pay\" |\n| dailyLimit | string | 条件 | 每日限额（MON），create\u002Fset_limit 时需要 |\n| amount | string | 条件 | 金额（MON），fund\u002Fpay 时需要 |\n| walletAddress | string | 条件 | 钱包地址，fund\u002Fget_info\u002Fset_limit\u002Fauthorize_agent\u002Frevoke_agent\u002Fpay 时需要 |\n| agentAddress | string | 条件 | Agent 地址，authorize_agent\u002Frevoke_agent 时需要 |\n| serviceId | number | 条件 | 链上服务 ID，pay 时需要 |\n\n**返回**：`{ walletAddress, balance, dailyLimit, dailySpent, remainingAllowance, txHash, agentAddress?, isAuthorized?, paymentServiceId?, paymentAmount? }`\n\n**Action 说明**：\n- `create`：创建新的 Agent 智能钱包，设置每日支出限额\n- `fund`：向钱包充值 MON\n- `get_info`：查询钱包余额、每日限额、今日已花、剩余额度\n- `set_limit`：调整每日支出限额\n- `authorize_agent`：授权一个地址（Agent）从该钱包支出\n- `revoke_agent`：撤销一个地址的钱包支出权限\n- `pay`：通过钱包余额调用 PaymentManager.payPerUse 支付服务（需先授权）\n\n**使用场景**：用户说\"创建一个 Agent 钱包\"、\"授权某个地址使用钱包\"、\"用钱包余额支付服务\"时调用。\n\n---\n\n### Tool 5: `agentxpay_subscribe`\n\n**用途**：订阅链上 AI 服务的周期性计划。\n\n**参数**：\n| 参数 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| serviceId | number | **是** | 链上服务 ID |\n| planId | number | 否 | 订阅计划 ID（不传则自动选第一个） |\n\n**返回**：`{ subscriptionId, planName, price, txHash, hasAccess }`\n\n**使用场景**：用户说\"订阅这个服务\"、\"我想包月使用\"时调用。\n\n---\n\n### Tool 6: `agentxpay_create_escrow`\n\n**用途**：为定制 AI 任务创建链上资金托管。\n\n**参数**：\n| 参数 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| serviceId | number | **是** | 链上服务 ID |\n| amount | string | **是** | 托管金额（MON） |\n| deadlineDays | number | **是** | 截止天数 |\n| description | string | **是** | 任务描述 |\n\n**返回**：`{ escrowId, amount, deadline, txHash }`\n\n**使用场景**：用户说\"我有一个定制任务需要先锁定资金\"时调用。\n\n---\n\n### Tool 7: `agentxpay_get_agent_info`\n\n**用途**：查询当前 Agent 的钱包地址、余额和网络信息。\n\n**参数**：无\n\n**返回**：`{ address, balance, network }`\n\n**使用场景**：用户问\"我的钱包地址是什么\"、\"余额还有多少\"时调用。\n\n---\n\n## 标准操作流程 (SOP)\n\n### 场景 A：用户需要调用外部 AI 服务\n\n```\n步骤 1: 调用 agentxpay_discover_services 查看可用服务和价格\n步骤 2: 向用户展示服务列表和价格，确认是否继续\n步骤 3: 用户确认后，调用 agentxpay_pay_and_call 或 agentxpay_smart_call\n步骤 4: 返回 AI 服务响应 + 支付交易哈希\n```\n\n### 场景 B：用户直接描述任务（推荐）\n\n```\n步骤 1: 调用 agentxpay_smart_call，传入任务描述和可选的类别\u002F预算\n步骤 2: Skill 自动发现服务 → 选择最优 → 付费调用\n步骤 3: 返回结果给用户，附带所选服务信息和支付凭证\n```\n\n### 场景 C：用户要管理 Agent 钱包\n\n```\n步骤 1: 调用 agentxpay_manage_wallet action=\"get_info\" 查看当前状态\n步骤 2: 根据需要执行 create\u002Ffund\u002Fset_limit\n```\n\n### 场景 D：用户要用 Agent 钱包支付服务\n\n```\n步骤 1: 创建钱包 — manage_wallet action=\"create\" dailyLimit=\"1.0\"\n步骤 2: 充值 — manage_wallet action=\"fund\" walletAddress=\"0x...\" amount=\"10.0\"\n步骤 3: 授权 Agent — manage_wallet action=\"authorize_agent\" walletAddress=\"0x...\" agentAddress=\"0x...\"\n步骤 4: 通过钱包支付 — manage_wallet action=\"pay\" walletAddress=\"0x...\" serviceId=1 amount=\"0.01\"\n```\n\n### 场景 E：用户要订阅服务\n\n```\n步骤 1: 调用 agentxpay_discover_services 找到目标服务\n步骤 2: 调用 agentxpay_subscribe 订阅\n步骤 3: 确认访问权限已激活\n```\n\n---\n\n## 错误处理\n\n| 错误 | 原因 | 处理方式 |\n|------|------|---------|\n| \"No matching services found\" | 链上无匹配服务 | 建议用户放宽过滤条件或检查合约部署 |\n| \"insufficient funds\" | Agent 余额不足 | 提示用户充值或使用 agentxpay_manage_wallet fund |\n| HTTP 402 retry 失败 | 支付验证未通过 | 检查合约地址和网络配置 |\n| \"daily limit exceeded\" | 超出每日限额 | 提示用户调整限额或等待次日重置 |\n| \"Agent ... is not authorized\" | Agent 未被授权使用钱包 | 用 authorize_agent 授权该 Agent |\n| \"Insufficient daily allowance\" | 钱包每日额度不足 | 用 set_limit 调高限额或等待次日重置 |\n| \"Insufficient wallet balance\" | 钱包余额不足 | 用 fund 向钱包充值 |\n\n---\n\n## 安全注意事项\n\n1. **私钥保护**：PRIVATE_KEY 通过 `openclaw.json` 安全注入，不要硬编码\n2. **每日限额**：建议使用 Agent Wallet 的 dailySpendingLimit 限制支出\n3. **用户确认**：在执行付费操作前，应向用户展示价格并获得确认\n4. **交易验证**：所有支付都有链上 txHash，可在区块浏览器验证\n\n---\n\n## 引用资源\n\n- CLI 工具执行脚本：参考 `scripts\u002Frun-tool.ts`（可直接 `npx tsx` 执行）\n- TypeScript 类型定义：参考 `src\u002Ftypes.ts`\n- Tool JSON Schema 定义：参考 `src\u002Fschemas.ts`\n- 核心运行时实现：参考 `src\u002Fruntime.ts`\n- 集成入口和适配器（OpenAI\u002FMCP）：参考 `src\u002Findex.ts`\n- x402 协议参考：参考 `references\u002Fx402-protocol.md`\n- AgentXPay SDK API 文档：参考 `references\u002Fsdk-api.md`\n","# AgentXPay Skill\n\n让 AI Agent 具备在 Monad 区块链上**自主发现 AI 服务、链上付费、管理钱包**的能力。\n\n核心机制：通过 **x402 协议**（HTTP 402 Payment Required），Agent 发送请求 → 收到 402 → 自动链上支付 → 携带交易哈希重试 → 获取 AI 服务响应，全程无需人工介入。\n\n---\n\n## 前置条件\n\n在使用本 Skill 前，需要确保以下配置可用：\n\n| 变量 | 必填 | 说明 |\n|------|------|------|\n| `RPC_URL` | 是 | Monad RPC 节点地址 |\n| `PRIVATE_KEY` | 是 | Agent 钱包私钥 |\n| `SERVICE_REGISTRY_ADDRESS` | 是 | ServiceRegistry 合约地址 |\n| `PAYMENT_MANAGER_ADDRESS` | 是 | PaymentManager 合约地址 |\n| `SUBSCRIPTION_MANAGER_ADDRESS` | 否 | SubscriptionManager 合约地址 |\n| `ESCROW_ADDRESS` | 否 | Escrow 合约地址 |\n| `AGENT_WALLET_FACTORY_ADDRESS` | 否 | AgentWalletFactory 合约地址 |\n\n2. **依赖**：`@agentxpay\u002Fsdk`、`ethers` v6\n\n---\n\n## 可用 Tool 清单\n\n本 Skill 提供以下 7 个 Tool，AI 可根据任务需要选择调用：\n\n### Tool 1: `agentxpay_discover_services`\n\n**用途**：在 Monad 链上发现已注册的 AI 服务。\n\n**参数**：\n| 参数 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| category | string | 否 | 服务类别过滤，如 \"LLM\"、\"Image\"、\"Code\" |\n| maxPrice | string | 否 | 最大单价（MON），如 \"0.05\" |\n\n**返回**：`{ services: [...], totalCount: number }`\n\n**使用场景**：用户问\"有哪些 AI 服务可用\"、\"找一个图像生成服务\"时调用。\n\n**执行方式**：运行 `scripts\u002Frun-tool.ts discover_services '{\"category\":\"LLM\"}'`\n\n---\n\n### Tool 2: `agentxpay_pay_and_call` （核心 Tool）\n\n**用途**：通过 x402 协议自动付费调用 AI 服务端点。\n\n**参数**：\n| 参数 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| url | string | **是** | AI 服务端点 URL |\n| method | string | 否 | HTTP 方法，默认 \"POST\" |\n| body | object | 否 | 请求体（会被 JSON 序列化） |\n| headers | object | 否 | 额外 HTTP 请求头 |\n\n**返回**：`{ status, data, payment: { txHash, amount, serviceId }, latencyMs }`\n\n**工作流程**：\n1. 向目标 URL 发送 HTTP 请求\n2. 若收到 HTTP 402 响应，解析 `X-Payment-*` 响应头\n3. 自动调用 PaymentManager 合约完成链上支付\n4. 携带 `X-Payment-TxHash` 重新发送请求\n5. 返回 AI 服务响应 + 支付凭证\n\n**使用场景**：用户说\"帮我调用这个 AI 接口\"、\"用 GPT-4 回答问题\"时调用。\n\n**执行方式**：运行 `scripts\u002Frun-tool.ts pay_and_call '{\"url\":\"http:\u002F\u002F...\",\"method\":\"POST\",\"body\":{\"prompt\":\"hello\"}}'`\n\n---\n\n### Tool 3: `agentxpay_smart_call` （推荐：一步到位）\n\n**用途**：智能发现 → 选择最优服务 → 自动付费调用，一步完成。\n\n**参数**：\n| 参数 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| task | string | **是** | 任务描述，如 \"生成一张赛博朋克猫图片\" |\n| category | string | 否 | 偏好的服务类别 |\n| maxBudget | string | 否 | 最大预算（MON） |\n| preferCheapest | boolean | 否 | 是否优先选最便宜的 |\n\n**返回**：`{ selectedService: {...}, response, payment, latencyMs }`\n\n**使用场景**：用户描述一个需要外部 AI 服务的任务，但没有指定具体服务端点时。这是**最常用的 Tool**。\n\n**执行方式**：运行 `scripts\u002Frun-tool.ts smart_call '{\"task\":\"生成赛博朋克猫图片\",\"category\":\"Image\"}'`\n\n---\n\n### Tool 4: `agentxpay_manage_wallet`\n\n**用途**：创建和管理 Agent 智能合约钱包，包括授权\u002F撤销 Agent 地址和通过钱包余额支付服务。\n\n**参数**：\n| 参数 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| action | string | **是** | \"create\" \u002F \"fund\" \u002F \"get_info\" \u002F \"set_limit\" \u002F \"authorize_agent\" \u002F \"revoke_agent\" \u002F \"pay\" |\n| dailyLimit | string | 条件 | 每日限额（MON），create\u002Fset_limit 时需要 |\n| amount | string | 条件 | 金额（MON），fund\u002Fpay 时需要 |\n| walletAddress | string | 条件 | 钱包地址，fund\u002Fget_info\u002Fset_limit\u002Fauthorize_agent\u002Frevoke_agent\u002Fpay 时需要 |\n| agentAddress | string | 条件 | Agent 地址，authorize_agent\u002Frevoke_agent 时需要 |\n| serviceId | number | 条件 | 链上服务 ID，pay 时需要 |\n\n**返回**：`{ walletAddress, balance, dailyLimit, dailySpent, remainingAllowance, txHash, agentAddress?, isAuthorized?, paymentServiceId?, paymentAmount? }`\n\n**Action 说明**：\n- `create`：创建新的 Agent 智能钱包，设置每日支出限额\n- `fund`：向钱包充值 MON\n- `get_info`：查询钱包余额、每日限额、今日已花、剩余额度\n- `set_limit`：调整每日支出限额\n- `authorize_agent`：授权一个地址（Agent）从该钱包支出\n- `revoke_agent`：撤销一个地址的钱包支出权限\n- `pay`：通过钱包余额调用 PaymentManager.payPerUse 支付服务（需先授权）\n\n**使用场景**：用户说\"创建一个 Agent 钱包\"、\"授权某个地址使用钱包\"、\"用钱包余额支付服务\"时调用。\n\n---\n\n### Tool 5: `agentxpay_subscribe`\n\n**用途**：订阅链上 AI 服务的周期性计划。\n\n**参数**：\n| 参数 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| serviceId | number | **是** | 链上服务 ID |\n| planId | number | 否 | 订阅计划 ID（不传则自动选第一个） |\n\n**返回**：`{ subscriptionId, planName, price, txHash, hasAccess }`\n\n**使用场景**：用户说\"订阅这个服务\"、\"我想包月使用\"时调用。\n\n---\n\n### Tool 6: `agentxpay_create_escrow`\n\n**用途**：为定制 AI 任务创建链上资金托管。\n\n**参数**：\n| 参数 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| serviceId | number | **是** | 链上服务 ID |\n| amount | string | **是** | 托管金额（MON） |\n| deadlineDays | number | **是** | 截止天数 |\n| description | string | **是** | 任务描述 |\n\n**返回**：`{ escrowId, amount, deadline, txHash }`\n\n**使用场景**：用户说\"我有一个定制任务需要先锁定资金\"时调用。\n\n---\n\n### Tool 7: `agentxpay_get_agent_info`\n\n**用途**：查询当前 Agent 的钱包地址、余额和网络信息。\n\n**参数**：无\n\n**返回**：`{ address, balance, network }`\n\n**使用场景**：用户问\"我的钱包地址是什么\"、\"余额还有多少\"时调用。\n\n---\n\n## 标准操作流程 (SOP)\n\n### 场景 A：用户需要调用外部 AI 服务\n\n```\n步骤 1: 调用 agentxpay_discover_services 查看可用服务和价格\n步骤 2: 向用户展示服务列表和价格，确认是否继续\n步骤 3: 用户确认后，调用 agentxpay_pay_and_call 或 agentxpay_smart_call\n步骤 4: 返回 AI 服务响应 + 支付交易哈希\n```\n\n### 场景 B：用户直接描述任务（推荐）\n\n```\n步骤 1: 调用 agentxpay_smart_call，传入任务描述和可选的类别\u002F预算\n步骤 2: Skill 自动发现服务 → 选择最优 → 付费调用\n步骤 3: 返回结果给用户，附带所选服务信息和支付凭证\n```\n\n### 场景 C：用户要管理 Agent 钱包\n\n```\n步骤 1: 调用 agentxpay_manage_wallet action=\"get_info\" 查看当前状态\n步骤 2: 根据需要执行 create\u002Ffund\u002Fset_limit\n```\n\n### 场景 D：用户要用 Agent 钱包支付服务\n\n```\n步骤 1: 创建钱包 — manage_wallet action=\"create\" dailyLimit=\"1.0\"\n步骤 2: 充值 — manage_wallet action=\"fund\" walletAddress=\"0x...\" amount=\"10.0\"\n步骤 3: 授权 Agent — manage_wallet action=\"authorize_agent\" walletAddress=\"0x...\" agentAddress=\"0x...\"\n步骤 4: 通过钱包支付 — manage_wallet action=\"pay\" walletAddress=\"0x...\" serviceId=1 amount=\"0.01\"\n```\n\n### 场景 E：用户要订阅服务\n\n```\n步骤 1: 调用 agentxpay_discover_services 找到目标服务\n步骤 2: 调用 agentxpay_subscribe 订阅\n步骤 3: 确认访问权限已激活\n```\n\n---\n\n## 错误处理\n\n| 错误 | 原因 | 处理方式 |\n|------|------|---------|\n| \"No matching services found\" | 链上无匹配服务 | 建议用户放宽过滤条件或检查合约部署 |\n| \"insufficient funds\" | Agent 余额不足 | 提示用户充值或使用 agentxpay_manage_wallet fund |\n| HTTP 402 retry 失败 | 支付验证未通过 | 检查合约地址和网络配置 |\n| \"daily limit exceeded\" | 超出每日限额 | 提示用户调整限额或等待次日重置 |\n| \"Agent ... is not authorized\" | Agent 未被授权使用钱包 | 用 authorize_agent 授权该 Agent |\n| \"Insufficient daily allowance\" | 钱包每日额度不足 | 用 set_limit 调高限额或等待次日重置 |\n| \"Insufficient wallet balance\" | 钱包余额不足 | 用 fund 向钱包充值 |\n\n---\n\n## 安全注意事项\n\n1. **私钥保护**：PRIVATE_KEY 通过 `openclaw.json` 安全注入，不要硬编码\n2. **每日限额**：建议使用 Agent Wallet 的 dailySpendingLimit 限制支出\n3. **用户确认**：在执行付费操作前，应向用户展示价格并获得确认\n4. **交易验证**：所有支付都有链上 txHash，可在区块浏览器验证\n\n---\n\n## 引用资源\n\n- CLI 工具执行脚本：参考 `scripts\u002Frun-tool.ts`（可直接 `npx tsx` 执行）\n- TypeScript 类型定义：参考 `src\u002Ftypes.ts`\n- Tool JSON Schema 定义：参考 `src\u002Fschemas.ts`\n- 核心运行时实现：参考 `src\u002Fruntime.ts`\n- 集成入口和适配器（OpenAI\u002FMCP）：参考 `src\u002Findex.ts`\n- x402 协议参考：参考 `references\u002Fx402-protocol.md`\n- AgentXPay SDK API 文档：参考 `references\u002Fsdk-api.md`\n",{"name":5,"license":14,"metadata":23,"description":7,"command-tool":40,"compatibility":41,"user-invocable":42,"command-dispatch":43},{"chain":24,"author":25,"version":26,"openclaw":27,"protocol":39},"monad","jasonruan","0.1.0",{"emoji":28,"homepage":29,"requires":30,"primaryEnv":33},"💰","https:\u002F\u002Fgithub.com\u002FAgentXPay",{"env":31,"bins":36},[32,33,34,35],"RPC_URL","PRIVATE_KEY","SERVICE_REGISTRY_ADDRESS","PAYMENT_MANAGER_ADDRESS",[37,38],"npx","node","x402","agentxpay_smart_call","Node.js >= 18, ethers v6, @agentxpay\u002Fsdk, Monad RPC 访问, 已部署 AgentXPay 合约",true,"tool","main","54afe4b75ed2eb8f0feabb2f5b57dfa4bcbb3c44",".agents\u002Fskills\u002Fagentxpay","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal","https:\u002F\u002Fgithub.com\u002Fmeghal86","2026-05-17 14:11:28",{"source":8,"skillName":5,"commands":51,"prompt":60,"zipAvailable":42},[52,54,57],{"tool":37,"command":53},"npx skills add meghal86\u002Fstacksignal --skill agentxpay",{"tool":55,"command":56},"bunx","bunx skills add meghal86\u002Fstacksignal --skill agentxpay",{"tool":58,"command":59},"pnpm","pnpm dlx skills add meghal86\u002Fstacksignal --skill agentxpay","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002FSKILL.md",[62,68,72,76,80,84,88,92,98,102,106,110,114,118,122],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"_meta.json","REFERENCE","参考文档",451,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002F_meta.json",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"package.json",1149,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002Fpackage.json",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"pnpm-lock.yaml",47894,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002Fpnpm-lock.yaml",{"path":77,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":78,"sourceHtmlUrl":79},"README_EN.md",1394,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002FREADME_EN.md",{"path":81,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":82,"sourceHtmlUrl":83},"README.md",1305,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002FREADME.md",{"path":85,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fsdk-api.md",3907,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002Freferences\u002Fsdk-api.md",{"path":89,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fx402-protocol.md",3836,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002Freferences\u002Fx402-protocol.md",{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Frun-tool.ts","SCRIPT","脚本",4401,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002Fscripts\u002Frun-tool.ts",{"path":99,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":100,"sourceHtmlUrl":101},"src\u002Findex.ts",6877,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002Fsrc\u002Findex.ts",{"path":103,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":104,"sourceHtmlUrl":105},"src\u002Fruntime.ts",16930,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002Fsrc\u002Fruntime.ts",{"path":107,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":108,"sourceHtmlUrl":109},"src\u002Fschemas.ts",6785,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002Fsrc\u002Fschemas.ts",{"path":111,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":112,"sourceHtmlUrl":113},"src\u002Ftypes.ts",4723,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002Fsrc\u002Ftypes.ts",{"path":115,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":116,"sourceHtmlUrl":117},"tsconfig.json",468,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002Ftsconfig.json",{"path":119,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":120,"sourceHtmlUrl":121},"tsup.config.ts",216,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002Ftsup.config.ts",{"path":123,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":124,"sourceHtmlUrl":125},"tsup.standalone.ts",823,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagentxpay\u002Ftsup.standalone.ts",[127,136,144,152,160,167],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":131,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":135},"01M78XH0FRP65NYEDHF2BT7NB1","zvukogram","Text-to-Speech via Zvukogram API with SSML support. Use when you need to generate speech from text, create podcasts, voice notifications, or work with audio. Supports speed control, stress marks, English word transcription, and audio fragment merging.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzvukogram\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzvukogram\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":140,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":135},"01M78XEND5ASXYB6MN8AQQGJAF","zohomail","Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels.\nUse this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzohomail\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzohomail\u002FSKILL.md",[],[],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":148,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":135},"01M78XEBBV3C6DRZFAJXP6RDKS","zoho-recruit","Zoho Recruit API integration with managed OAuth. Manage candidates, job openings, interviews, and recruitment workflows.\nUse this skill when users want to read, create, update, or search recruitment data like candidates, job openings, interviews, and applications in Zoho Recruit.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-recruit\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-recruit\u002FSKILL.md",[],[],{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":156,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":135},"01M78XE5CQG75DZWYSKGXFR99T","zoho-people","Zoho People API integration with managed OAuth. Manage employees, departments, designations, attendance, and leave.\nUse this skill when users want to read, create, update, or query HR data like employees, departments, designations, and forms in Zoho People.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-people\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-people\u002FSKILL.md",[],[],{"skillNo":161,"name":162,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":163,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":135},"01M78XDZKMZAJYFJJFT7MR5ZN2","zoho-mail","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-mail\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-mail\u002FSKILL.md",[],[],{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":171,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":135},"01M78XDST8JK0WVDA1F3VPNWXD","zoho-inventory","Zoho Inventory API integration with managed OAuth. Manage items, sales orders, invoices, purchase orders, bills, contacts, and shipments.\nUse this skill when users want to read, create, update, or delete inventory items, sales orders, invoices, purchase orders, bills, or other inventory records in Zoho Inventory.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-inventory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-inventory\u002FSKILL.md",[],[]]