Quick Install — One command to get started:
Why Use the CLI?
AI Agent Tool-Use
Structured JSON output that AI agents can parse and act on — no SDK or HTTP client needed
Terminal Workflows
Pipe portfolio data into jq, scripts, cron jobs, or monitoring systems
Fast & Lightweight
Written in Rust — single binary, no runtime dependencies, instant startup
x402 Agent Payments
Built-in support for the x402 payment protocol — AI agents can pay per request without API keys
Installation
- Shell Script (Recommended)
- Cargo
- From Source
Works on macOS and Linux:
Authentication
Store your API key once and it’s used automatically for all commands.--api-keyflag (highest precedence)OCTAV_API_KEYenvironment variable~/.octav/config.jsonconfig file
Commands
Portfolio
octav portfolio get
octav portfolio get
Full portfolio including DeFi positions across all chains.Cost: 1 credit per address
octav portfolio wallet
octav portfolio wallet
Wallet token balances only (excludes DeFi protocol positions).Cost: 1 credit per address
octav portfolio nav
octav portfolio nav
octav portfolio token-overview
octav portfolio token-overview
Aggregated token distribution across all chains for a specific date.Cost: 1 credit per address
Transactions
octav transactions get
octav transactions get
Query transaction history with filtering and pagination.
Cost: 1 credit per address
| Flag | Description | Default |
|---|---|---|
--chain | Filter by chain | all |
--type | Filter by transaction type | all |
--start-date | Start date (YYYY-MM-DD) | — |
--end-date | End date (YYYY-MM-DD) | — |
--offset | Pagination offset | 0 |
--limit | Results per page (max 250) | 50 |
octav transactions sync
octav transactions sync
Trigger manual transaction synchronization.Cost: 1 credit per address
Historical
octav historical get
octav historical get
Portfolio snapshot for a specific date.Cost: 1 credit per address
octav historical subscribe-snapshot
octav historical subscribe-snapshot
Subscribe to automatic daily portfolio snapshots.Cost: 1 credit per address
Metadata & Specialized
octav status
octav status
Check sync status for addresses.Cost: Free
octav credits
octav credits
Check API credit balance.Cost: Free
octav airdrop
octav airdrop
Check Solana airdrop eligibility.Cost: 1 credit
octav polymarket
octav polymarket
Get Polymarket prediction market positions.Cost: 1 credit
Agent Commands (x402)
For AI agents that pay per request using the x402 payment protocol — no API key required.octav agent wallet
octav agent wallet
Wallet holdings via x402 payment.
octav agent portfolio
octav agent portfolio
Full portfolio via x402 payment.
Using with AI Agents
The CLI outputs structured JSON, making it a natural fit for AI agent tool-use. Agents can invokeoctav commands via shell execution and parse the JSON response directly.
Example: Claude Code / Cursor Agent
Example: Autonomous Monitoring Script
Output Format
All commands return JSON. Pretty-printed by default, compact with--raw:
--raw flag also disables field stripping, returning the full API response.
Multiple Addresses
Most commands accept multiple addresses as a comma-separated list:Error Handling
Errors are returned as JSON on stdout with a non-zero exit code:| Error | Cause | Solution |
|---|---|---|
| Invalid address format | Address doesn’t match EVM or Solana format | Use 0x... (40 hex chars) for EVM or base58 for Solana |
| Authentication failure | Missing or invalid API key | Run octav auth set-key or set OCTAV_API_KEY |
| Insufficient credits | Not enough credits for the request | Purchase more at data.octav.fi |