use-circle-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOverview
概述
The Circle CLI (, command ) is a holistic stablecoin CLI for AI agents. It surfaces Circle's full agent-facing stack — wallet management, cross-chain transfers, paid services, Gateway/Nanopayments, smart contracts, spending policy, transaction operations, and Circle's own skill catalog — through one consistent binary. New capabilities ship continuously; this skill is the front door that introduces the CLI broadly and routes to specialized skills for deep flows.
@circle-fin/clicircleIf the user is doing something narrow (paying for a service, setting up the wallet for the first time, configuring a spending limit), use one of the dedicated skills under Alternatives below. Use this skill when the user is exploring what the CLI can do, when they're doing something that doesn't have its own dedicated skill yet (e.g., bridging, smart contract execution), or when you need a quick orientation across the full command surface.
Circle CLI(,命令为)是一款面向AI Agent的全方位稳定币CLI工具。它通过统一的二进制文件,呈现Circle面向Agent的完整技术栈——包括钱包管理、跨链转账、付费服务、Gateway/小额支付、智能合约、支出策略、交易操作以及Circle自身的技能目录。新功能会持续推出;本技能是广泛介绍CLI并引导至专业技能以处理深度流程的入口。
@circle-fin/clicircle如果用户的操作较为具体(如支付服务费用、首次设置钱包、配置支出限额),请使用下方替代方案中的专用技能。当用户在探索CLI的功能、进行尚无专用技能支持的操作(如跨链桥接、智能合约执行),或需要快速了解整个命令体系时,使用本技能。
Install & verify
安装与验证
bash
which circle || command -v circle
circle --version # also surfaces any update notice from Circle's serverIf not installed:
bash
npm install -g @circle-fin/clibash
which circle || command -v circle
circle --version # 同时显示Circle服务器推送的更新通知若未安装:
bash
npm install -g @circle-fin/cliDiscoverability: always ask --help
--help功能探索:始终使用--help
--helpThe CLI is self-documenting. Whenever the agent is unsure about a verb, flag, output shape, or whether a command exists, run on the relevant scope first — don't guess flags, don't invent commands.
--helpbash
circle --help # top-level command list
circle <command> --help # verbs available under a command group
circle <command> <verb> --help # flags, examples, and output format for a specific verbExamples:
bash
circle --help # all top-level commands (wallet, bridge, services, ...)
circle wallet --help # all verbs under `wallet`
circle services pay --help # flags and examples for `circle services pay`
circle bridge transfer --help # flags and output shape for cross-chain bridgingThe CLI ships new commands and flags faster than this document. Always prefer output over what's documented here when they disagree — the help text reflects the installed version, this skill might lag.
--helpCLI自带文档说明。当Agent对某个动词、标志、输出格式或命令是否存在不确定时,请先在相关范围内运行——不要猜测标志,不要自创命令。
--helpbash
circle --help # 顶级命令列表
circle <command> --help # 命令组下可用的动词
circle <command> <verb> --help # 特定动词的标志、示例和输出格式示例:
bash
circle --help # 所有顶级命令(wallet、bridge、services等)
circle wallet --help # `wallet`下的所有动词
circle services pay --help # `circle services pay`的标志和示例
circle bridge transfer --help # 跨链桥接的标志和输出格式CLI的新命令和标志更新速度快于此文档。当帮助文本与本文档内容不一致时,始终以的输出为准——帮助文本反映的是已安装版本,而本技能可能存在滞后。
--helpCommand surface (high-level)
命令体系(概览)
Top-level command groups, organized by what the user typically wants to do:
顶级命令组按用户常见操作场景分类:
Wallet & identity
钱包与身份
| Command | What it does |
|---|---|
| Create a Circle-managed agent wallet on supported EVM chains |
| Email + OTP authentication for the agent wallet (two-step |
| List wallets (filter by |
| Show token balances for a wallet on a chain |
| Send USDC (or another supported token) from this wallet to another address on the same chain |
| Open a fiat on-ramp or render a deposit QR code so the user can fund the wallet |
| View and change spending policy (mainnet only; set/reset require human OTP) |
| Execute a smart contract function (any chain Circle supports) |
| Manage Circle CLI Terms of Use acceptance (gates wallet commands; never accept on the user's behalf without consent) |
| 命令 | 功能 |
|---|---|
| 在支持的EVM链上创建由Circle托管的Agent钱包 |
| Agent钱包的邮箱+OTP认证(为非交互式Agent设计的两步 |
| 列出钱包(可通过 |
| 显示钱包在某条链上的代币余额 |
| 从当前钱包向同链上的其他地址发送USDC(或其他支持的代币) |
| 打开法币充值通道或生成存款二维码,方便用户为钱包充值 |
| 查看和修改支出策略(仅主网可用;设置/重置需人工OTP验证) |
| 执行智能合约函数(Circle支持的所有链均可) |
| 管理Circle CLI服务条款的接受状态(会限制钱包相关命令;未经用户同意,绝不能代用户接受条款) |
Cross-chain & on-chain operations
跨链与链上操作
| Command | What it does |
|---|---|
| Bridge USDC to another blockchain via CCTP (~8–20s on fast chains, longer on slow chains) |
| Check progress of a bridge transfer |
| Show CCTP fee schedule |
| Move on-chain USDC into Circle Gateway for nanopayments (eco lands on Polygon ~50-60s for $0.03; direct stays on source chain) |
| Show Gateway / Nanopayments balance per chain |
| Move Gateway balance back to a wallet (same-chain only in v1) |
| 命令 | 功能 |
|---|---|
| 通过CCTP将USDC跨链至其他区块链(快速链约8-20秒,慢速链耗时更长) |
| 查看跨链桥接转账的进度 |
| 显示CCTP费用标准 |
| 将链上USDC转入Circle Gateway用于小额支付(生态链存入Polygon约50-60秒,费用0.03美元;直接存入则保留在原链) |
| 显示各链上Gateway/小额支付的余额 |
| 将Gateway余额转回钱包(v1版本仅支持同链操作) |
Paid services (x402)
付费服务(x402)
| Command | What it does |
|---|---|
| Search the x402 paid-API marketplace by keyword |
| Inspect a paid endpoint — pricing, schema, supported chains, payment scheme |
| Make a paid HTTP request with automatic x402 payment in USDC |
| 命令 | 功能 |
|---|---|
| 通过关键词搜索x402付费API市场 |
| 查看付费端点详情——定价、schema、支持的链、支付方案 |
| 自动以USDC完成x402支付并发起付费HTTP请求 |
Smart contracts
智能合约
| Command | What it does |
|---|---|
| Show Circle contract addresses (USDC token, Gateway, etc.) per chain |
| Read-only ABI query against any deployed contract |
| Execute a write call against any contract (state-changing transaction) |
| 命令 | 功能 |
|---|---|
| 显示各链上Circle合约的地址(USDC代币、Gateway等) |
| 对已部署合约进行只读ABI查询 |
| 对合约执行写入调用(会改变链上状态的交易) |
Transactions
交易管理
| Command | What it does |
|---|---|
| Show transaction history for a wallet on a chain |
| Cancel a pending transaction (replace-by-nonce) |
| Speed up a pending transaction (replace-with-higher-gas) |
| 命令 | 功能 |
|---|---|
| 显示钱包在某条链上的交易历史 |
| 取消待处理交易(通过替换nonce实现) |
| 加速待处理交易(通过提高Gas费实现) |
Discovery & tooling
功能探索与工具
| Command | What it does |
|---|---|
| List supported blockchains with their public RPC defaults |
| Inspect or set per-chain RPC overrides |
| Discover and install Circle skills from the |
This list will keep growing as Circle ships more capabilities. For any unfamiliar command, run — it is authoritative and reflects the CLI you have installed, not this document.
<command> --help| 命令 | 功能 |
|---|---|
| 列出支持的区块链及其默认公共RPC节点 |
| 查看或设置各链的RPC节点覆盖配置 |
| 发现并安装 |
随着Circle推出更多功能,此列表会持续更新。对于任何不熟悉的命令,请运行——这是权威来源,反映的是你已安装的CLI版本,而非本文档。
<command> --helpCommon end-to-end flows
常见端到端流程
For each common flow, there's a dedicated skill that handles the full walkthrough. If the user's task matches one of these, route to the named skill.
| User intent | Skill to use |
|---|---|
| "Set up Circle / log in / create an agent wallet" | |
| "Pay for a service / call a paid API / use the x402 marketplace" | |
| "Fund my wallet / add USDC / deposit into Gateway" | |
| "Set / change spending limits / view current caps" | |
| "Bridge USDC to another chain (CLI)" | This skill — |
| "Execute a smart contract / read a contract" | This skill — |
| "Manage transactions / cancel a pending tx" | This skill — |
| "Build with Circle SDKs in an app" | One of the SDK-flavored |
If the task fits a dedicated skill, hand off there — that skill has the gotchas and decision trees baked in (some, like and , also ship whitelists). If it doesn't, the high-level commands in the table above are enough to get started; use for flag-level detail.
pay-via-agent-walletfund-agent-walletallowed-tools<command> --help每个常见流程都有对应的专用技能处理完整操作流程。如果用户的任务符合以下场景,请引导至指定技能。
| 用户意图 | 使用的技能 |
|---|---|
| "设置Circle/登录/创建Agent钱包" | |
| "支付服务费用/调用付费API/使用x402市场" | |
| "为钱包充值/添加USDC/存入Gateway" | |
| "设置/修改支出限额/查看当前上限" | |
| "将USDC跨链至其他链(CLI)" | 本技能—— |
| "执行智能合约/读取合约数据" | 本技能——写入操作使用 |
| "管理交易/取消待处理交易" | 本技能—— |
| "在应用中使用Circle SDK开发" | 某款SDK专属的 |
如果任务适合专用技能,请转交至该技能——这些技能已内置各种注意事项和决策逻辑(部分技能如和还包含白名单)。如果不适合,上述表格中的高级命令足以入门;如需标志级细节,请使用。
pay-via-agent-walletfund-agent-walletallowed-tools<command> --helpBridging and smart contracts
跨链桥接与智能合约
For cross-chain USDC, run and . For ABI-level read and write calls, run and . The CLI's output is the source of truth for flag positions and ABI conventions — don't guess.
circle bridge --helpcircle bridge transfer --helpcircle contract query --helpcircle wallet execute --help--help对于跨链USDC操作,请运行和。对于ABI级别的读写调用,请运行和。CLI的输出是标志位置和ABI规范的权威来源——不要猜测。
circle bridge --helpcircle bridge transfer --helpcircle contract query --helpcircle wallet execute --help--helpRules
规则
- ALWAYS run when you're unsure about flags or output shape — the help text is authoritative and reflects the installed CLI version, not this skill.
<command> --help - ALWAYS pass for commands whose output the agent needs to parse.
--output json - ALWAYS pass when running
--chain,circle wallet list,circle wallet balance,circle wallet transfer,circle bridge transfer,circle gateway *, andcircle contract *. If unsure which chain to use, runcircle transaction *first.circle blockchain list - NEVER accept Circle's Terms of Use on the user's behalf — even with . The agent MUST show the live Terms (from
CIRCLE_ACCEPT_TERMS=1) and obtain explicit consent before runningcircle terms show --init --output json.circle terms accept - NEVER guess or hardcode the user's email address for .
circle wallet login - NEVER store, log, or display private keys, OTP codes, or session tokens beyond their immediate use.
- Treat the CLI as the source of truth for the user's wallet state. Don't infer balances or transaction status — query the CLI fresh.
- Default to mainnet for the agent wallet flow unless the user explicitly requests testnet. Spending policy is mainnet-only.
- For routine permissionless tasks the user has already asked for, act first and summarize after — don't ask for re-confirmation on routine read-only operations like or
wallet balance.services search
- 当对标志或输出格式不确定时,务必运行——帮助文本是权威来源,反映的是已安装的CLI版本,而非本技能。
<command> --help - 对于Agent需要解析输出的命令,务必添加参数。
--output json - 运行、
circle wallet list、circle wallet balance、circle wallet transfer、circle bridge transfer、circle gateway *和circle contract *时,务必指定circle transaction *参数。若不确定使用哪条链,请先运行--chain。circle blockchain list - 绝不能代用户接受Circle的服务条款——即使使用参数。Agent必须显示实时条款(通过
CIRCLE_ACCEPT_TERMS=1获取)并获得用户明确同意后,才能运行circle terms show --init --output json。circle terms accept - 绝不能猜测或硬编码用户的邮箱地址用于。
circle wallet login - 除即时使用外,绝不能存储、记录或显示私钥、OTP验证码或会话令牌。
- 将CLI视为用户钱包状态的权威来源。不要推断余额或交易状态——应通过CLI实时查询。
- 除非用户明确要求测试网,否则Agent钱包流程默认使用主网。支出策略仅在主网可用。
- 对于用户已请求的常规无权限任务,先执行再总结——对于或
wallet balance等常规只读操作,无需再次确认。services search
Staying current
保持版本更新
Surface these to the user when relevant — start of session, after a long gap, or when a command behaves unexpectedly.
bash
undefined在相关场景下向用户展示以下命令——如会话开始时、长时间间隔后或命令行为异常时。
bash
undefinedCheck the CLI version (also surfaces any update notice from Circle's server)
检查CLI版本(同时显示Circle服务器推送的更新通知)
circle --version
circle --version
Update the CLI
更新CLI
npm install -g @circle-fin/cli@latest
npm install -g @circle-fin/cli@latest
Update Circle's installed skills (pick the host matching the runtime: claude-code, cursor, codex, opencode, amp, or another tool name)
更新已安装的Circle技能(选择与运行环境匹配的宿主:claude-code、cursor、codex、opencode、amp或其他工具名称)
circle skill update --tool <tool>
circle skill update --tool <tool>
Universal fallback (works on any host the open skills
registry supports)
skills通用更新方案(适用于开放skills
注册表支持的所有宿主)
skillsnpx skills update
These commands are idempotent (re-running is safe). But `npm install -g`, `circle skill update`, and `npx skills update` all mutate the user's system — ask the user before running any of them, don't run them unprompted.npx skills update
这些命令是幂等的(重复运行安全)。但`npm install -g`、`circle skill update`和`npx skills update`都会修改用户系统——运行前请询问用户,不要未经提示直接运行。Reference Links
参考链接
- Full setup walkthrough: https://agents.circle.com/skills/setup.md
- Circle Developer Docs: https://developers.circle.com/llms.txt — Always read this when looking for source documentation on Circle products
- x402 protocol concepts: https://developers.circle.com/gateway/nanopayments/concepts/x402
- Service Discovery skill (paid services walkthrough): https://agents.circle.com/services/SKILL.md
- Discovery API OpenAPI spec: https://agents.circle.com/.well-known/openapi.json
- Circle Agent Card (a2a): https://agents.circle.com/.well-known/a2a.json
- Circle agent-facing skill index: https://agents.circle.com/.well-known/agent-skills/index.json
- CLI package on npm:
@circle-fin/cli
- 完整设置指南:https://agents.circle.com/skills/setup.md
- Circle开发者文档:https://developers.circle.com/llms.txt ——查找Circle产品的官方文档时,请始终参考此链接
- x402协议概念:https://developers.circle.com/gateway/nanopayments/concepts/x402
- 服务发现技能(付费服务指南):https://agents.circle.com/services/SKILL.md
- 发现API OpenAPI规范:https://agents.circle.com/.well-known/openapi.json
- Circle Agent Card(a2a):https://agents.circle.com/.well-known/a2a.json
- Circle面向Agent的技能索引:https://agents.circle.com/.well-known/agent-skills/index.json
- npm上的CLI包:
@circle-fin/cli
Alternatives
替代方案
Trigger the skill instead when:
use-agent-wallet- The user wants to install the CLI, log in, accept Terms, create a wallet, check balance, or otherwise bootstrap the agent wallet.
- The user mentions ,
circle wallet status,circle wallet login.circle wallet create
Trigger the skill instead when:
pay-via-agent-wallet- The user wants to call, pay for, or use a paid x402 service.
- The user mentions specifically.
circle services search/inspect/pay
Trigger the skill instead when:
fund-agent-wallet- The user wants to add USDC to the wallet (fiat on-ramp, crypto deposit, Gateway deposit, withdrawal).
- The user mentions deposit, fiat on-ramp, fiat purchase, QR-code transfer, or Gateway deposit.
Trigger the skill instead when:
agent-wallet-policy- The user wants to view, set, or reset spending limits on the agent wallet.
- The user mentions per-tx / daily / weekly / monthly caps, spending policy, or wallet rules.
Trigger one of the SDK-flavored skills (, , , , , , , , , ) instead when:
use-usdcuse-gatewaybridge-stablecoinswap-tokensuse-circle-walletsuse-developer-controlled-walletsuse-user-controlled-walletsuse-modular-walletsuse-smart-contract-platformuse-arc- The user is writing application code that uses Circle SDKs (e.g., ,
@circlefin/app-kit,@circlefin/bridge-kit).@circle-fin/developer-controlled-wallets - The user wants architectural guidance on choosing a wallet type, integrating CCTP into a web app, or deploying contracts via Circle's Smart Contract Platform.
The CLI is for agent-flow use (an AI agent operating on behalf of a user). The SDK skills are for code-generation use (the agent is helping a developer write application code).
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.
当出现以下情况时,请触发技能:
use-agent-wallet- 用户希望安装CLI、登录、接受条款、创建钱包、查询余额或进行其他Agent钱包初始化操作。
- 用户提及、
circle wallet status、circle wallet login。circle wallet create
当出现以下情况时,请触发技能:
pay-via-agent-wallet- 用户希望调用、支付或使用付费x402服务。
- 用户明确提及。
circle services search/inspect/pay
当出现以下情况时,请触发技能:
fund-agent-wallet- 用户希望为钱包添加USDC(法币充值、加密货币存款、Gateway存款、提现)。
- 用户提及存款、法币充值、法币购买、二维码转账或Gateway存款。
当出现以下情况时,请触发技能:
agent-wallet-policy- 用户希望查看、设置或重置Agent钱包的支出限额。
- 用户提及单笔交易/每日/每周/每月限额、支出策略或钱包规则。
当出现以下情况时,请触发某款SDK专属技能(、、、、、、、、、):
use-usdcuse-gatewaybridge-stablecoinswap-tokensuse-circle-walletsuse-developer-controlled-walletsuse-user-controlled-walletsuse-modular-walletsuse-smart-contract-platformuse-arc- 用户正在编写应用代码并使用Circle SDK(如、
@circlefin/app-kit、@circlefin/bridge-kit)。@circle-fin/developer-controlled-wallets - 用户需要关于选择钱包类型、在Web应用中集成CCTP或通过Circle智能合约平台部署合约的架构指导。
CLI适用于Agent流程场景(AI Agent代表用户操作)。SDK技能适用于代码生成场景(Agent帮助开发者编写应用代码)。
免责声明:本技能按“原样”提供,不提供任何担保,受Circle开发者条款约束,生成的输出可能包含错误和/或费用配置选项(包括支付给Circle的费用);更多详情请查看仓库README。