# @circle-fin/cli

> Circle CLI — command-line tool for interacting with Circle services.

Latest version **1.5.0** (published 2026-12-03) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @circle-fin/cli
pnpm add @circle-fin/cli
yarn add @circle-fin/cli
bun add @circle-fin/cli
```

Provides the command `circle`.

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; large bundle.

## Facts

| | |
|---|---|
| Version | 1.5.0 |
| Published | 2026-12-03 |
| First published | 2026-05-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.18.2 |
| Dependencies | 18 |
| Unpacked size | 22.3 MB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | tomleicircle, igaskin-circle, circle-npm-ci |
| Keywords | circle, cli, wallet, usdc, cctp |

## Links

- npm: https://www.npmjs.com/package/@circle-fin/cli
- npm.io page: https://npm.io/package/@circle-fin/cli

## Dependencies (18)

- [ws](https://npm.io/package/ws.md) 8.21.0
- [zod](https://npm.io/package/zod.md) 3.25.67
- [bs58](https://npm.io/package/bs58.md) 6.0.0
- [pino](https://npm.io/package/pino.md) 10.1.0
- [uuid](https://npm.io/package/uuid.md) 11.1.1
- [bn.js](https://npm.io/package/bn.js.md) 5.2.3
- [qrcode](https://npm.io/package/qrcode.md) 1.5.4
- [semver](https://npm.io/package/semver.md) 7.7.4
- [abitype](https://npm.io/package/abitype.md) 1.1.0
- [cli-table3](https://npm.io/package/cli-table3.md) 0.6.5
- [@noble/curves](https://npm.io/package/@noble/curves.md) 1.4.2
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) 1.7.1
- [rpc-websockets](https://npm.io/package/rpc-websockets.md) 9.3.8
- [json-schema-faker](https://npm.io/package/json-schema-faker.md) 0.6.1
- [@ethersproject/bytes](https://npm.io/package/@ethersproject/bytes.md) 5.8.0
- [@ethersproject/units](https://npm.io/package/@ethersproject/units.md) 5.8.0
- [@ethersproject/address](https://npm.io/package/@ethersproject/address.md) 5.8.0
- [@ethersproject/keccak256](https://npm.io/package/@ethersproject/keccak256.md) 5.8.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.5.0 (latest) — 2026-12-03
- 1.4.0 — 2026-11-17
- 1.3.0 — 2026-11-10
- 1.2.3 — 2026-11-04
- 1.2.2 — 2026-10-14
- 1.2.1 — 2026-10-09
- 1.2.0 — 2026-10-06
- 1.1.4 — 2026-09-22
- 1.1.3 — 2026-09-18
- 1.1.2 — 2026-09-17
- 1.1.1 — 2026-09-16
- 1.1.0 — 2026-09-16
- 1.0.0 — 2026-08-13
- 0.0.6 — 2026-06-22
- 0.0.5 — 2026-05-29
- … 4 more at https://npm.io/package/@circle-fin/cli/versions

## README

# cli

Circle's CLI for setting up an agent wallet, funding it with USDC, and using it for stablecoin-powered workflows.

Learn more at [agents.circle.com](https://agents.circle.com/).

## Quickstart

Install the CLI and login.

```bash
npm install -g @circle-fin/cli
circle --version
circle wallet login <email>
# Enter the OTP code sent to your email when prompted
circle wallet status
```

### Logout

Revoke sessions on the server and clear their matching local credentials:

```bash
circle wallet logout               # Sessions sharing each saved token's device ID
circle wallet logout --scope all   # All devices for each saved account/environment
```

Both scopes process every saved environment, independently:

| Saved logins | Environments handled by either scope |
| ------------ | ------------------------------------ |
| Mainnet only | Mainnet                              |
| Testnet only | Testnet                              |
| Both         | Mainnet and testnet                  |

`--scope` selects devices, not environments. An environment with no saved session is skipped, even with `--scope all`; logout does not accept `--testnet`. Plain logout uses `local` scope; explicit `--scope local` is also accepted. `local` still performs server revocation; it does not mean local-only deletion.

Server logout requires an internet connection. If it fails for an environment, its credentials are kept so you can retry. If an earlier local-scope logout is awaiting cleanup, run `circle wallet logout` to finish cleanup. Log in again to each environment you want to include (`circle wallet login <email>` for mainnet, or add `--testnet` for testnet), then retry `circle wallet logout --scope all`.

For a lost device, log in on a trusted device to the same account and each environment you want to protect, then run `circle wallet logout --scope all`. Use your organization's account recovery process if you cannot authenticate. All-device logout does not prompt; its success message names the affected environments.

### Check or Create a Wallet

Check the current wallet state on `ARC`:

```bash
circle wallet list --chain ARC --type agent --output json
```

The initial agent wallets are provisioned during login. Use `circle wallet list` first to inspect what is already available.

Create an EVM SCA wallet batch on all supported chains:

```bash
circle wallet create
circle wallet create --testnet
circle wallet list --chain ARC --type agent --output json
```

Check the wallet balance:

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

## Discover Skills

Once the wallet is set up, use the CLI to discover other Circle skills:

```bash
circle skill list
circle skill info --name use-circle-cli
```

Install a skill for the current tool:

```bash
circle skill install --tool claude-code --name use-circle-cli
# or --tool cursor, --tool codex
```

## Commands

### Blockchain

Blockchain commands let you inspect supported chains and configure per-chain RPC settings.

```bash
# Inspect blockchain RPC configuration
circle blockchain config --chain ARC
# List supported blockchains
circle blockchain list
```

### Bridge

Bridging moves USDC from one supported blockchain to another with CCTP.

```bash
# Show the fee for a bridge route
circle bridge get-fee ARC --chain ARB
# Check the status of a bridge transfer
circle bridge status <burn-tx-hash> --chain ARB
# Bridge USDC from Arbitrum to Arc
circle bridge transfer ARC --amount 1.0 --address <addr> --chain ARB
```

### Contract

Contract queries let you look up Circle contract addresses and read onchain contract state without submitting a transaction.

```bash
# Show Circle contract addresses on a chain
circle contract address usdc --chain ARC
# Query read-only contract state
circle contract query "balanceOf(address)" <addr> --contract <contract> --chain ARC --output json
```

### Gateway

Gateway is used for nanopayments, including depositing wallet funds into a Gateway balance and managing that balance.

```bash
# Show the current Gateway balance across all settlement chains
circle gateway balance --address <addr> --chain ARC --all
# Deposit wallet USDC directly on Arc
circle gateway deposit --amount 0.5 --address <addr> --chain ARC --method direct
# Deposit wallet USDC into Gateway for nanopayments
circle gateway deposit --amount 0.5 --address <addr> --chain ARB --method eco
# Withdraw funds from Gateway back to a wallet
circle gateway withdraw --amount 0.1 --address <addr> --chain ARC
```

### Services

Services lets you discover paid x402 endpoints, inspect pricing, and estimate or execute paid requests with the wallet.

```bash
# Inspect a paid endpoint and its pricing
circle services inspect https://api.example.com/data
# Estimate a paid request before sending it
circle services pay https://api.example.com/data --address <addr> --chain ARC --estimate
# Pay on-chain from wallet USDC, using the seller's cheapest standard x402 offer
circle services pay https://api.example.com/data --address <addr> --chain ARC --direct
# Search for paid x402 services
circle services search "web search"
```

### Transaction

Transaction commands help manage pending transactions after they have been submitted.

```bash
# Speed up a pending transaction
circle transaction accelerate <transaction-id> --chain ARC
# Cancel a pending transaction
circle transaction cancel <transaction-id> --chain ARC
```

### Wallet

The wallet flow covers sending USDC, swapping into supported assets, executing onchain actions, and managing spending policy from a wallet address.

```bash
# Execute a write call from the wallet
circle wallet execute "approve(address,uint256)" <spender> <amount> --contract <contract> --address <addr> --chain ARC --estimate
# Swap tokens with Circle Stablecoin Kits
circle wallet swap USDC 1.0 EURC 0.8 --address <addr> --chain ARC
# Move ERC-20 USDC between wallets on Arc
circle wallet transfer <recipient> --amount 1 --token 0x3600000000000000000000000000000000000000 --address <addr> --chain ARC
```

### Limit

Limit controls spending policy on an agent wallet, including remaining budget, transfer limits, blocklists, and resetting custom policies. Policy writes require OTP confirmation.

```bash
# Show remaining EVM-wide rolling-window policy + budget (daily / weekly / monthly)
circle wallet limit budget --address <addr>
# Set a transfer limit on every EVM mainnet (omit --chain) — OTP-gated, ephemeral human session
circle wallet limit set --address <addr> \
  --policy-type stablecoin --per-tx 100 --daily 100 --weekly 100 --monthly 100
# Set a transfer limit on one chain; where both exist, the stricter applies per window
circle wallet limit set --address <addr> --chain ARC \
  --policy-type stablecoin --per-tx 100 --daily 100 --weekly 100 --monthly 100
 # Block specific recipient addresses — OTP-gated
circle wallet limit set --address <addr> --chain ARC \
  --policy-type stablecoin --rule-type recipient-blocklist \
  --targets "[0xBAD1,0xBAD2]"
# Block specific contracts on the contract-execution path — OTP-gated
circle wallet limit set --address <addr> --chain ARC \
  --policy-type contract --rule-type contract-blocklist \
  --targets "[0xCONTRACT]"
# Reset every custom policy on this (wallet, chain) back to defaults — OTP-gated
circle wallet limit reset --address <addr> --chain ARC
# Remove the all-EVM-chains transfer limit — OTP-gated
circle wallet limit reset --address <addr>
```

## External Wallet

Import a local wallet from a private key or mnemonic phrase:

```bash
circle wallet import my-wallet --private-key || circle wallet import my-wallet --mnemonic
circle wallet list --chain ARC --type local
```

Imported local wallets can be used with wallet-based commands such as transfer, contract execution, bridge, and Gateway flows where local wallet support is available.

## Testnet Funds

Use a separate testnet login session when you want to try the CLI without using mainnet funds:

```bash
circle wallet login <email> --testnet
circle wallet list --chain ARC-TESTNET
```

Testnet and mainnet sessions are stored separately.

## Update

To update to a new version of the CLI, run:

```bash
circle update
```

This checks for a newer published version and, if one is available, prompts before running `npm install -g @circle-fin/cli@latest` for you. Pass `--yes` to skip the prompt (useful in scripts and CI). If you'd rather upgrade by hand, the npm command above works directly.

## Help

Use `--help` on any command group to see the full list of supported verbs, flags, and examples.

```bash
circle --help
circle wallet --help
circle gateway --help
circle services --help
```

## Legal

By using the Circle CLI, you agree to the [Terms of Use](https://agents.circle.com/terms-of-use) and [Privacy Policy](https://www.circle.com/legal/privacy-policy).

---
_Source: https://npm.io/package/@circle-fin/cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
