360 Secure SkillHub
360 安全技能中心

CAI: fund-agent-wallet-for-task

该 Skill 用于为 CAI 托管钱包充值:先用 wallet_balances 检查所需链与代币余额,不足时调用 create_deposit_link 生成托管充值链接交用户完成充值,随后再次核对余额再继续付款任务;不执行实际转账,用户提供交易哈希时可用 wallet_deposit_confirm 确认。

bernardtai
bernardtai
热度 16.02
最近更新 2026-06-02 18:01:24
分类:自动化依赖:MCP 服务 / 第三方 API应用场景:工作流 / 财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add fund-agent-wallet-for-task
Metadata
name
fund-agent-wallet-for-task
description
Fund your CAI custodial wallet so your agent can continue a paid task. Uses create_deposit_link and wallet_balances. No transfer until user is ready. Powered by CAI.com. Canonical skill v1.0.15.
metadata
{"version":"1.0.15"}

Fund your agent wallet for the next task

Before book flight, buy license, or pay OpenRouter, the agent may detect insufficient balance. This skill routes funding through CAI hosted deposit — not external wallet hand-holding.

When to Use

  • "Fund my agent wallet so it can continue"
  • "I need to top up before the agent pays"
  • "Give me a deposit link for my CAI account"
  • "Add USDC so my agent can finish the purchase"

Task flow (agent-native)

  1. wallet_balances on required chain/token.
  2. If short → create_deposit_link (action_type: deposit) with optional constraints (chain, payment_method, asset hints).
  3. Return Hosted action URL (url) to user; wait for funding.
  4. Re-check wallet_balances before any transfer.
  5. Continue parent task skill (payment, license, etc.).

Honesty: Deposit indexing may be partial_live — use wallet_deposit_confirm if user supplies tx hash.

Quick Setup

openclaw secrets set CAI_API_KEY "your_dashboard_api_key"

Canonical Reference