Loading...
Loading...
Execute on-chain trading actions via the Zerion CLI: swap, bridge, and send tokens across 14 EVM chains and Solana. Use whenever the user asks to swap / trade / convert tokens, bridge across chains, or transfer tokens to an address. Always uses an API key + agent token (no pay-per-call). Pair with `zerion-agent-management` to set up tokens/policies first, and `zerion-analyze` to check positions before trading.
npx skill4agent add zeriontech/zerion-ai zerion-tradingzerioncommand not foundnpm install -g zerion-clizerion--x402--mppzerion-analyzezerion-agent-managementzerion-signzerion wallet list # confirm wallet exists, see active policies
zerion agent list-tokens # confirm agent token is setzerion-agent-managementbridge# zerion swap <chain> <amount> <from-token> <to-token>
zerion swap base 1 USDC ETH
zerion swap ethereum 0.1 ETH USDC
zerion swap arbitrum 100 USDC DAI
# Solana same-chain swap
zerion swap solana 0.1 SOL USDC
# Specific wallet (overrides defaultWallet)
zerion swap base 1 USDC ETH --wallet <name>
# Custom slippage (default 2%, max 3%)
zerion swap base 1 USDC ETH --slippage 3
# Confirmation timeout (default 120s)
zerion swap base 1 USDC ETH --timeout 300ETHUSDCSOL# List swap-available tokens for a chain
zerion swap tokens # all chains
zerion swap tokens base # filter to Base
zerion swap tokens solana # filter to Solanato-token# zerion bridge <from-chain> <from-token> <amount> <to-chain> <to-token>
# Same-token bridge between EVM chains
zerion bridge base USDC 5 arbitrum USDC
zerion bridge ethereum USDC 100 polygon USDC
# Bridge + swap on destination
zerion bridge base USDC 5 arbitrum ETH
# Native token bridge
zerion bridge base ETH 0.001 optimism ETH
# Bridge EVM → Solana (mnemonic wallet has both accounts → no extra flag needed)
zerion bridge ethereum USDC 50 solana USDC
# Bridge Solana → EVM
zerion bridge solana USDC 50 ethereum USDC
# Cross-format bridge to a different local wallet
zerion bridge ethereum USDC 50 solana USDC --to-wallet <sol-wallet>
zerion bridge solana USDC 50 ethereum USDC --to-wallet <evm-wallet>
# Bridge to a raw destination address (must match the target chain's format)
zerion bridge ethereum USDC 50 solana USDC --to-address <solana-pubkey>
zerion bridge solana USDC 50 ethereum USDC --to-address 0x...
# Slippage / timeout flags work the same as swap
zerion bridge base USDC 5 arbitrum ETH --slippage 3 --timeout 300--to-address <addr>0x…--to-wallet <name>solanaIf the API returns, the route doesn't currently exist for the requested pair. Verify the token has implementations on both chains (swap cannot be performed with the given parameters), try a different amount, and confirm both chains support bridging (zerion search <symbol>).zerion chains
--chain0x…# EVM: native + ERC-20
zerion send ETH 0.01 --to 0x... --chain base
zerion send USDC 10 --to vitalik.eth --chain ethereum
# Solana: native SOL (chain auto-detected from base58 recipient)
zerion send SOL 0.1 --to 2Nsnn…
zerion send SOL 0.1 --to 2Nsnn… --chain solana # explicit formzerion swap solana <amount> <token> SOLzerion search <query> # by name, symbol, or address
zerion search PEPE --chain ethereum
zerion search "uniswap" --limit 5zerion chains # full chain catalog--chain--to-chain--from-chain| Flag | Description |
|---|---|
| Source wallet (default: from config) |
| Destination wallet for |
| Destination address for |
| Recipient address for |
| Slippage tolerance (default 2%, max 3%) |
| Confirmation timeout (default 120s) |
| Output mode (JSON default) |
zerion agent list-tokenszerion agent list-policies--deny-transferssend--chains base--timeout 300| Code | Cause | Fix |
|---|---|---|
| Trading needs an agent token | |
| Action blocked by an active policy | Check |
| Invalid chain | |
| Not enough of | |
| No route between tokens / chains | Try a different pair or chain |
| Price moved beyond | Increase slippage or retry |
| Confirmation didn't land within | Bump timeout, check tx hash on explorer |
| Cross-chain destination missing or wrong format | Pass |