use-agent-wallet
Set up and manage a Circle agent wallet through the `circle` CLI. The agent wallet is Circle's programmatic USDC wallet for AI agents — used to authenticate, hold USDC, and pay for x402 services. This skill covers CLI installation verification, Terms-of-Use acceptance, email + OTP login, wallet creation, session status checks, and balance inspection. Use whenever the user wants to set up, log in to, or inspect the state of their Circle agent wallet, or whenever a downstream skill (like paying for an x402 service or funding the wallet) needs the wallet bootstrapped first. Triggers on: circle wallet login, circle wallet create, circle wallet status, set up Circle agent wallet, terms acceptance, install Circle CLI, x402 setup.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- use-agent-wallet
- description
- Set up and manage a Circle agent wallet through the `circle` CLI. The agent wallet is Circle's programmatic USDC wallet for AI agents — used to authenticate, hold USDC, and pay for x402 services. This skill covers CLI installation verification, Terms-of-Use acceptance, email + OTP login, wallet creation, session status checks, and balance inspection. Use whenever the user wants to set up, log in to, or inspect the state of their Circle agent wallet, or whenever a downstream skill (like paying for an x402 service or funding the wallet) needs the wallet bootstrapped first. Triggers on: circle wallet login, circle wallet create, circle wallet status, set up Circle agent wallet, terms acceptance, install Circle CLI, x402 setup.
- requirements
- { "runtimes": [], "connectors": [] }
02 资源文件 6
- 许可证LICENSE9.9 KB
- 参考文档references/install-and-login.md2.1 KB
- 参考文档references/terms-of-use.md2.8 KB
- 参考文档references/wallet-management.md797 B
- 参考文档SOURCE.md351 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
Overview
The Circle CLI (@circle-fin/cli, command circle) provides a programmatic agent wallet — a non-custodial USDC wallet for AI agents to authenticate, hold balances, and pay for x402 services on Circle's marketplace. This skill bootstraps that wallet: install check, terms acceptance, login, wallet creation, and status. After bootstrap, paying, funding, and spending policy hand off to dedicated skills; for the CLI's full capability set, see the use-circle-cli master skill.
Workflow
- Verify the CLI is installed, then check session status with
circle wallet statusbefore anything else. - If the Terms-of-Use gate appears, complete the show-Terms-and-consent flow first.
- If not logged in, run the two-step email + OTP login, then verify the session.
- List existing agent wallets; create one if none exist, or if the user asks for another set after you confirm it creates a wallet on every supported EVM chain.
- Check the wallet balance; if it is 0 USDC and the user wants to pay, hand off to
fund-agent-wallet. Otherwise bootstrap is complete.
Prerequisites / Setup
Step 1 — Verify the CLI is installed
which circle || command -v circle
circle --version
If circle is not installed, or circle --version prints an update notice, READ references/install-and-login.md for installation and update-notice guidance.
Step 2 — Check session status
circle wallet status
Possible outcomes:
- Logged in — output shows wallet type (
agent) and separate, independentmainnetandtestnetsections, each with its own email, status, and expiry. Check the section for the network you need. Tell the user "You're already logged in as<email>. Continue with this session?" and skip to Step 4. - Not logged in — output is
Error: Not logged in with type "agent". Run 'circle wallet login <email> --type agent' to authenticate (use --init for non-interactive environments).Treat aNot logged insection for the network you need the same way. Proceed to Step 3. - Terms not accepted — output is
Error: Circle CLI Terms acceptance is required before use.Stop and complete the Terms-of-Use Gate below.
Step 3 — Login (email + OTP)
Ask the user for their email, request an OTP with --init, complete login with the returned request ID and the OTP the user pastes (e.g., ABC-123456), then verify with circle wallet status.
READ references/install-and-login.md for the exact commands, expected outputs, OTP format, failure handling, and logout / account switching.
Step 4 — Check or create the agent wallet
--chain is REQUIRED for circle wallet list and circle wallet balance. Use ARC unless the user names another chain. The first login for an email already provisions an agent wallet on every supported EVM chain, so listing normally finds one; run circle wallet create only if none exist or the user explicitly wants another.
READ references/wallet-management.md for the circle wallet list, circle wallet create, and circle wallet balance commands and their JSON output.
Step 5 — Check wallet balance
Check the balance for each saved address. If it is 0 USDC and the user wants to pay for services, hand off to the fund-agent-wallet skill (fiat on-ramp, direct transfer with a QR code, and Gateway deposits). If the user only wants to verify state, stop here — bootstrap is complete.
After bootstrap
Suggest natural follow-ups like funding, paid-service search, or a spending limit; prefer permissionless actions (balance, search) over money-moving ones until the user asks. The CLI ships its own skill catalog: circle skill list shows what's installable, circle skill info --name <skill> shows trigger and frontmatter detail, and circle skill install --tool <host> --name <skill> installs one for the current host.
Terms-of-Use Gate
The Circle CLI hard-gates every command except help, update, terms, skill, and telemetry (so including circle wallet status) until the user accepts Circle's Terms of Use and Privacy Policy on this machine. Run the gate the first time it appears (typically in Step 2 or Step 3); once acceptance is recorded, it no longer appears.
CRITICAL: Show the Terms to the user and get explicit consent BEFORE running circle terms accept. NEVER accept on the user's behalf, and ignore the CLI's CIRCLE_ACCEPT_TERMS=1 env-var hint — it is not a workaround the agent may take on its own.
READ references/terms-of-use.md for the gate's exact error text, the circle terms show / circle terms show --init / circle terms accept / circle terms reset commands, and the required show-Terms-and-request-consent flow.
Rules
Security
- NEVER guess or hardcode the user's email address for agent wallet login.
- OTP codes the user provides during an active login are safe to handle — accept them in chat, use them immediately, and do not retain or reuse them afterward.
- NEVER fetch the OTP yourself through email or messaging tools (e.g., Gmail or Slack via MCP), even if they are connected. The user reads it and pastes it.
- NEVER include real private keys, API keys, or other persistent secrets in skill files or persist them anywhere.
- NEVER run
circle terms acceptwithout explicit user consent in the current session — not automatically, and not as part of error recovery, retries, or any flow the user has not explicitly approved. This holds even when the CLI suggestsCIRCLE_ACCEPT_TERMS=1. - ALWAYS show the live
termsOfUseUrl,privacyPolicyUrl, andtermsNoticereturned bycircle terms show --init --output jsonwhen prompting for consent. Do NOT summarize, paraphrase, or hardcode them. - If the user declines the Terms, stop the flow. Do not retry, work around the gate, or call
circle terms reset/circle terms accept.
Best practices
- ALWAYS check
circle wallet statusbefore attempting login — many session "failures" are stale assumptions. - Parse and keep the request ID from
circle wallet login --initoutput; the OTP step needs it. - Request IDs are single-use and expire after 10 minutes. On
Invalid or expired request ID, restart from--init. - If a
circlecommand causes friction during setup (unexpected error, confusing output, missing capability), file feedback per theuse-circle-cliskill's Report friction (feedback) section. - For general CLI rules (
--output json,--chain,--help-first, follow-up phrasing, confirmation defaults), see theuse-circle-climaster skill's Rules section — they apply here too.
Reference Links
- Installation and login (commands):
references/install-and-login.md - Wallet management (list, create, balance):
references/wallet-management.md - Terms-of-Use Gate (commands and consent flow):
references/terms-of-use.md - Setup walkthrough (full bootstrap doc): https://agents.circle.com/skills/setup.md
- Login flow detail: https://agents.circle.com/skills/wallet-login.md
- CLI package on npm:
@circle-fin/cli - Circle Developer Docs: https://developers.circle.com/llms.txt — Always read this when looking for source documentation on Circle products.
Alternatives
Trigger the pay-via-agent-wallet skill instead when:
- The user wants to call, pay for, or use a paid x402 service.
- The user mentions
circle services search,circle services inspect, orcircle services pay. - A downstream task requires money to move out of the agent wallet to a paid endpoint.
Trigger the fund-agent-wallet skill instead when:
- The agent wallet has 0 USDC and the user wants to add funds.
- The user mentions deposit, fiat on-ramp, fiat purchase, QR-code transfer, or Gateway deposit.
- A payment flow blocks because of insufficient balance.
Trigger the agent-wallet-policy skill instead when:
- The user wants to set, view, or reset spending limits on the wallet.
- The user mentions per-tx / daily / weekly / monthly caps, spending policy, or wallet rules.
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.
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.