All examples assume you’ve already authenticated with
octav auth set-key YOUR_API_KEY. See Authentication for setup.1. Quick Portfolio Check
Start with simple one-liners to explore a wallet.2. Daily Portfolio Monitor
A cron-ready script that logs NAV to a CSV and alerts on drops.3. Multi-Wallet Aggregation
Aggregate NAV across multiple wallets into a summary.4. Transaction Export to CSV
Fetch a year of transactions and convert to a spreadsheet-ready CSV.5. Whale Alert Script
Monitor a wallet for large transactions and log alerts.6. AI Agent Tool-Use
See how an AI agent like Claude Code uses the CLI as a tool.7. Airdrop Checker
Quick check for Solana airdrop eligibility with formatted output.Tips & Patterns
Use --raw for scripting
Use --raw for scripting
The
--raw flag outputs compact JSON and includes the full API response — ideal for piping to jq or feeding to AI agents.Live monitoring with watch
Live monitoring with watch
Use
watch for a live-updating dashboard in your terminal.Error handling in scripts
Error handling in scripts
Always check the exit code and handle errors gracefully.
Credit budgeting
Credit budgeting
Most commands cost 1 credit per address. Plan your scripts accordingly.