Agent Wallet Policy

作者 circlefin58ab8648bb1a无许可证155 个星标收录于 2026年10月8日更新于 2026年10月8日仓库3周前更新

View spending policy on a Circle agent wallet — per-transaction, daily, weekly, and monthly USDC caps via the `circle` CLI. Use when the user wants to inspect current limits. Setting or resetting limits requires OTP confirmation in an interactive terminal session — the agent hands the user a verbatim command to run themselves; the OTP must never pass through agent storage. Mainnet-only — testnet chains are rejected. Triggers on: spending limit, spending policy, per-tx cap, daily cap, weekly cap, monthly cap, wallet rules, OTP confirmation.

AI 生成的概览

通过 circle CLI 查看并指导设置 Circle 代理钱包的消费限额(单笔、每日、每周、每月 USDC 上限)。

功能
该技能说明如何使用 circle CLI 查看 Circle 代理钱包的消费策略,显示单笔、每日、每周和每月的 USDC 上限。它还说明如何设置或重置这些限额,此过程需要用户在自己的终端中输入人工 OTP,并说明之后如何验证新限额。内容涵盖会话状态和钱包地址查询等前置步骤,以及 OTP 和限额单调性错误的排查方法。
适用场景
当用户想要查看或更改 Circle 代理钱包的消费限额,或询问单笔、每日、每周或每月上限时使用。当限额变更需要 OTP 确认且该确认不应由代理处理时,也适用。
运行要求
需要 circle CLI,以及已登录并接受条款的会话;消费策略仅支持主网,且仅适用于代理钱包。该技能不包含脚本,只有一份参考文档。设置或重置限额需要用户在自己的终端中运行交互式命令并输入通过电子邮件收到的 OTP。

Overview

For an overview of the Circle CLI's full capability set, see the use-circle-cli master skill. This skill is the narrower spending-policy flow.

Circle agent wallets support spending policies — per-wallet caps that the CLI enforces on every payment and transfer. There are three operations:

OperationCommandOTP required?
View current limitscircle wallet limit --address <addr> --chain ARC --output jsonNo
Set custom limitscircle wallet limit set ...Yes — human OTP, run in user's own terminal
Reset to defaultscircle wallet limit reset ...Yes — human OTP, run in user's own terminal

Spending policies are mainnet-only (testnet chains are rejected; see Troubleshooting / Rules).

Prerequisites

Two supporting commands set up the flow: a session check (circle wallet status) and a wallet-address lookup (circle wallet list ... --output json). READ references/commands.md for the exact commands.

If circle wallet status errors with "Not logged in" or "Terms acceptance is required", hand off to the use-agent-wallet skill — it covers install, terms, login, and wallet creation.

Viewing current limits (in-agent, no OTP)

bash
circle wallet limit --address <addr> --chain ARC --output json

Shows the current per-tx, daily, weekly, and monthly USDC caps (null for any unset tier). Safe to call freely — read-only, no money moves, no OTP.

Setting or resetting limits (interactive terminal — handoff to user)

circle wallet limit set and circle wallet limit reset are interactive. They send a 6-digit OTP to the user's email mid-execution and wait for the code at the CLI's stdin prompt.

OTPs are password-equivalent. The agent must NOT receive, store, or relay the OTP. The agent's job here is to hand the user a verbatim command to run in their own terminal, then wait for them to report back.

1. Confirm values with the user

Limits must be monotonic: per-tx ≤ daily ≤ weekly ≤ monthly.

A typical conservative configuration:

TierSuggested USDC value
--per-tx1
--daily5
--weekly20
--monthly50

Adjust based on the user's stated tolerance. Get explicit yes before generating the command.

2. Hand the user the command

Tell the user:

Setting spending limits requires an OTP I shouldn't see. Please run this command in your own terminal — the CLI will email you a 6-digit code; enter it at the prompt. Let me know once it completes.

bash
circle wallet limit set \  --address <addr> --chain ARC \  --policy-type stablecoin \  --per-tx 1 --daily 5 --weekly 20 --monthly 50

For reset, the verbatim command is:

bash
circle wallet limit reset --address <addr> --chain ARC --yes

Omit --yes if you want the user to see a confirmation prompt before the OTP is sent.

3. Verify after the user reports done

Run the read-only limit command to confirm the new caps, then surface them to the user. READ references/commands.md for the exact command.

Troubleshooting

SymptomCauseFix
User received multiple OTP emailsCommand was re-run while a previous invocation was still waitingTell the user to use the most recent OTP only. Earlier ones are invalidated.
OTP rejected with "prefix mismatch"User entered an OTP from a previous requestRestart — each set / reset invocation has a fresh prefix.
Spending policies are mainnet-onlyTried to set a policy on a testnet chainRe-run with a mainnet --chain value (BASE, MATIC, etc.).
Limits must be monotonicper-tx > daily, daily > weekly, etc.Re-check the values. per-tx ≤ daily ≤ weekly ≤ monthly.
Only agent wallets support spending policiesTried on a local (non-agent) walletSpending policies apply only to agent wallets created via circle wallet create.

Rules

  • NEVER ask the user to share the OTP with you. The OTP must go directly from the user's email to the CLI prompt in their own terminal — it should never touch the agent's context, tool calls, or any local file.
  • If email- or messaging-integration tools are connected (e.g., Gmail or Slack via MCP), the OTP can also be fetched through them — note the option to the user; how to handle it is their call.
  • ALWAYS hand the user a verbatim circle wallet limit set / reset command for them to run in their own terminal. Do NOT try to orchestrate the OTP from chat.
  • ALWAYS confirm proposed limit values with the user before generating the command. Show the per-tx / daily / weekly / monthly numbers explicitly and wait for explicit yes.
  • Spending policies are mainnet-only — testnet chains are rejected. Don't quote testnet examples.
  • Only agent wallets support spending policies, not local wallets.
  • After the user reports the change is done, run circle wallet limit --address <addr> --chain ARC --output json so the user sees the new caps.

Reference Links

Alternatives

Trigger the use-agent-wallet skill instead when:

  • The user has not yet logged in to the CLI or accepted Terms.
  • circle wallet status errors with "Not logged in" or "Terms acceptance is required".
  • The user is asking about wallet setup, login, or session state — not policy.

Trigger the pay-via-agent-wallet skill instead when:

  • The user wants to call, pay for, or use a paid x402 service.
  • Limits are already set and the user is ready to spend.

Trigger the fund-agent-wallet skill instead when:

  • The user wants to add USDC before setting limits.
  • The user mentions deposit, fiat on-ramp, fiat purchase, QR-code transfer, or Gateway deposit.

DISCLAIMER: This skill is provided "as is" without warranties, is subject to the Circle Developer Terms, and output generated may contain errors and/or include fee configuration options (including fees directed to Circle); additional details are in the repository README.

来源与署名

来源:circlefin/skills位于plugins/circle/skills/agent-wallet-policy提交58ab864

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架