Alpha Preview - The CLI is under active development. Commands, flags, and output formats may change between releases. Don’t depend on current behavior in production workflows.
Installation
One-shot setup - installs the CLI globally, configures your API key, and adds skills across all detected coding agents:-yruns setup non-interactively--browseropens dashboard.zerion.io so you can grab an API key and paste it back- Skills install globally to every detected AI coding agent
Authentication
Three options. The CLI auto-detects which is active.API key (recommended)
Get a free key at dashboard.zerion.io. Keys begin withzk_.
x402 pay-per-call
No API key needed. Pays $0.01 USDC per request via the x402 protocol. Supports EVM (Base) and Solana.Pay-per-call applies to analytics commands only (
portfolio, positions, history, pnl, analyze). Trading commands always use an API key.MPP pay-per-call
No API key needed. Pays $0.01 USDC per request via the MPP protocol on Tempo. EVM only.Skills
The CLI ships with six agent skills that install into AI coding agents. Each skill is self-contained - your agent loads the relevant one based on the user’s intent.
Install or reinstall skills:
setup skills):
Manual setup, agent execution
The CLI splits cleanly into two surfaces, by design.- Wallet management and agent token setup are manual.
wallet create,import,backup, anddeleteprompt for a passphrase.wallet syncemits a QR code you scan with the Zerion app.agent create-tokenmints a scoped trading credential bound to a specific wallet, andagent create-policyattaches the rules it must obey - allowed chains, expiry, transfer/approval gates, contract allowlists. No key material moves and no spending credential widens without you in the loop. - Analysis, signing, trading, and discovery are for agents.
analyze,portfolio,positions,history,pnl,sign-message,sign-typed-data,swap,bridge,send,search,chains, and read-only listings emit JSON to stdout, structured errors to stderr, and skip confirmation dialogs. Once an agent token is configured, signing and trading fire immediately.
Commands
Every command supports--help for full flag documentation. Run zerion --help for the top-level command list.
Analyze
Read-only wallet insights. Supports--x402 and --mpp for pay-per-call.
Analyze options
Trade
Requires an API key plus an agent token for unattended use. Chain is the first positional argument.Trade options
--fast and --cheapest are mutually exclusive. When used, the strategy flag must come last on the command line so flag parsing doesn’t consume the next positional as its value. Single-offer routes auto-execute even without a strategy flag.Sign
Off-chain signatures (EIP-191, EIP-712, Solana raw) - no broadcast. Requires an agent token.Sign options
Wallet
Encrypted local wallets. EVM + Solana supported. Passphrase required for destructive ops.Wallet options
Agent
Scoped API tokens for unattended trading. Tokens auto-save to config and are required forswap, bridge, send.
Agent token options
Agent policy options
Policy flags
Watch
Track wallets by name without exposing addresses in commands.Watch options
Setup
Config
Global options
Environment variables
Supported chains
ethereum, base, arbitrum, optimism, polygon, binance-smart-chain, avalanche, gnosis, scroll, linea, zksync-era, zora, blast, monad, solana.
Solana supports same-chain swaps and bidirectional bridging to/from EVM chains. Cross-format bridges (Solana ↔ EVM) require an explicit destination via --to-wallet <name> or --to-address <addr> matching the target chain’s format, unless the source wallet is mnemonic-derived and already has an account on the destination chain.
Run zerion chains for the live catalog with metadata.
Output handling
All commands emit JSON to stdout (default) for agent compatibility. Errors emit JSON to stderr with acode field for programmatic handling.
Examples
Quick wallet check
DeFi-only positions on a single chain
Stage an autonomous trading bot
Cross-chain bridge with provider choice
SIWE login for a dapp
Pay-per-call without an API key
Compose with jq
Open source
The CLI and skills are MIT-licensed and open to contribution.- CLI + skills: github.com/zeriontech/zerion-ai
- API docs: developers.zerion.io
- Get an API key: dashboard.zerion.io