accept-agent-payments
Use when a developer wants to monetize an API, endpoint, service, model, dataset, tool, or agent-facing resource with Circle USDC…
Build non-custodial wallets where end users retain control of their private keys via Circle's user-controlled wallets SDK. Supports Google, Apple, Facebook social login, email OTP, and PIN authentication with MPC-based key management. Covers wallet creation, token transfers,
Claude Code
$ npx -y skills add circlefin/skills --skill use-user-controlled-wallets --agent claude-code
Codex
$ npx skills add circlefin/skills --skill use-user-controlled-wallets -a codex -y
Cursor
$ npx skills add circlefin/skills --skill use-user-controlled-wallets -a cursor -y
Gemini CLI
$ npx skills add circlefin/skills --skill use-user-controlled-wallets -a gemini-cli -y
GitHub Copilot
$ npx skills add circlefin/skills --skill use-user-controlled-wallets -a github-copilot -y
OpenCode
$ npx skills add circlefin/skills --skill use-user-controlled-wallets -a opencode -y
Windsurf
$ npx skills add circlefin/skills --skill use-user-controlled-wallets -a windsurf -y
name: use-user-controlled-wallets description: "Build non-custodial wallets where end users retain control of their private keys via Circle's user-controlled wallets SDK. Supports Google, Apple, Facebook social login, email OTP, and PIN authentication with MPC-based key management. Covers wallet creation, token transfers, message signing, smart contract execution, and wallet management. Triggers on: user-controlled wallets, social login wallet, email OTP wallet, PIN wallet, w3s-pw-web-sdk, executeChallenge, MPC wallet, userToken, deviceToken, contract execution." requirements: runtimes: [] connectors: []
User-controlled wallets are non-custodial: end users keep control of their private keys and assets, and authorize every sensitive operation (wallet creation, transactions, signing) through a challenge-response flow. Supports EVM chains, Solana, and Aptos.
npm install @circle-fin/user-controlled-wallets@latest @circle-fin/w3s-pw-web-sdk@latest vite-plugin-node-polyfills
The SDKs depend on Node.js built-ins (`buffer`, `crypto`, etc.) that browsers lack. Add `nodePolyfills()`:
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { nodePolyfills } from "vite-plugin-node-polyfills";
export default defineConfig({
plugins: [react(), nodePolyfills()],
});# Backend CIRCLE_API_KEY= # Circle API key # Frontend CIRCLE_APP_ID= # App ID from Wallets > User Controlled > Configurator
`@circle-fin/user-controlled-wallets` handles all server-side operations (user creation, challenge creation, transaction queries).
import { initiateUserControlledWalletsClient, Blockchain, TokenBlockchain } from "@circle-fin/user-controlled-wallets";
const circleClient = initiateUserControlledWalletsClient({
apiKey: process.env.CIRCLE_API_KEY!,
});`@circle-fin/w3s-pw-web-sdk` handles user-facing operations (challenge execution, auth flows, PIN/OTP/OAuth UI).
import { W3SSdk } from "@circle-fin/w3s-pw-web-sdk";
const sdk = new W3SSdk({ appSettings: { appId: circleAppId } });IMPORTANT: Call `sdk.getDeviceId()` right after initialization. It establishes the iframe session with Circle; without it, `sdk.execute()` fails silently.
For email OTP and social login, pass a login callback as the second constructor argument (see the corresponding reference).
Chosen at wallet creation. Supported blockchains per type: https://developers.circle.com/wallets/account-types
| Party | Role | | --- | --- | | End user (browser/mobile) | Authenticates (PIN, email OTP, or social login) and approves every sensitive operation in Circle's hosted UI via `@circle-fin/w3s-pw-web-sdk`. Keeps full control of private keys -- neither the developer nor Circle can act on the user's behalf. | | Developer service (backend) | Holds the Circle API key, manages user sessions, tracks usage, and enforces app-level guardrails (e.g., spending limits, allowlisted addresses, rate limiting). Calls Circle's API via `@circle-fin/user-controlled-wallets`. Requires a [Circle Developer Console](https://developers.circle.com/w3s/circle-developer-account) account; for developer account setup, see the `use-developer-controlled-wallets` skill. | | Circle Wallet Service (API) | Wallet creation, transaction submission, MPC-based key management, and blockchain interaction. Enforces platform-level compliance screening (e.g., OFAC sanctions checks). |
Request flow: End user -> Developer service (adds API key, enforces guardrails) -> Circle Wallet Service (compliance screening, submission) -> Blockchain.
All sensitive operations (wallet creation, transactions, signing) follow this pattern:
1. Backend creates the operation via the Circle API -> Circle returns a `challengeId`. 2. Frontend calls `sdk.setAuthentication({ userToken, encryptionKey })`, then `sdk.execute(challengeId, callback)` -> user approves in Circle's hosted UI. 3. The callback fires with the result or error.
| Method | Console Setup | How `userToken` Is Obtained | | --- | --- | --- | | PIN | None | Backend calls `createUserToken({ userId })` (60 min expiry) | | Email OTP | SMTP config | SDK login callback after OTP verification | | Social Login | OAuth client ID | SDK login callback after OAuth redirect |
Transfers and contract executions are asynchronous. Poll `circleClient.getTransaction({ userToken, id })`
Ship stablecoin apps faster with Circle Skills: best-practice guidance for USDC payments, crosschain transfers, wallets, and smart contracts, plus Circle's MCP server for real-time SDK and documentation context.
Use when a developer wants to monetize an API, endpoint, service, model, dataset, tool, or agent-facing resource with Circle USDC…
View spending policy on a Circle agent wallet — per-transaction, daily, weekly, and monthly USDC caps and contract allowlists via…
Build browser or server token bridging across chains with Circle App Kit or standalone Bridge Kit. Bridges USDC across CCTP…
Set up and integrate Circle Onramp, the hosted widget that lets end users buy crypto with fiat (bank transfer, debit card, Apple…
Fund a Circle agent wallet with USDC via the `circle` CLI. Payments are gas-abstracted: users pay with USDC only, no ETH…
Use this skill when the user wants to call a paid API, look something up online, search for data, get prices, odds, or stats, or…
Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…
Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…
小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…