Skip to main content
The Zerion CLI is an open-source tool that wraps the Zerion API and a local encrypted wallet vault. The same binary powers both humans and AI agents - any agent that can run shell commands can analyze wallets, sign messages, and execute swaps without writing API integration code. Wallet management is built on the Open Wallet Standard. Six agent skills ship alongside the CLI for AI coding agents (Claude Code, Cursor, Windsurf, Codex, Gemini, OpenCode, and any agentskills.io host). Repository: github.com/zeriontech/zerion-ai - CLI and skills ship from the same repo.
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:
  • -y runs setup non-interactively
  • --browser opens dashboard.zerion.io so you can grab an API key and paste it back
  • Skills install globally to every detected AI coding agent
Or install the CLI binary on its own:
Requires Node.js 20 or later.

Authentication

Three options. The CLI auto-detects which is active. Get a free key at dashboard.zerion.io. Keys begin with zk_.
Or persist it via config:
Required for analysis and trading. Analysis can also use x402 / MPP pay-per-call.

x402 pay-per-call

No API key needed. Pays $0.01 USDC per request via the x402 protocol. Supports EVM (Base) and Solana.
Enable globally:
Both chains simultaneously:
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.
Enable globally:

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:
Per-host plugin installs (alternative to 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, and delete prompt for a passphrase. wallet sync emits a QR code you scan with the Zerion app. agent create-token mints a scoped trading credential bound to a specific wallet, and agent create-policy attaches 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.
You stage by hand once - create or import a wallet, set a passphrase, mint an agent token, attach a policy - then hand the agent token to an automation that can only do what the policy allows. Treat agent tokens like API keys with spending power.

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 for swap, 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 a code field for programmatic handling.
The CLI surfaces structured error codes for: missing or invalid API key, invalid address or ENS resolution failure, unsupported chain, empty wallets, rate limits (HTTP 429), upstream timeouts, slippage exceeded, and bridge route unavailable.

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.