Documentation Index
Fetch the complete documentation index at: https://docs.compasslabs.ai/llms.txt
Use this file to discover all available pages before exploring further.
What is the Compass CLI?
compass is a single binary that wraps the Compass DeFi API. Every endpoint is available as a subcommand, output can be rendered as JSON / YAML / table / TOON, and an --agent-mode flag tunes the experience for AI agents calling tools.
Use it for:
- Inspecting positions, balances, and vaults from the terminal
- Scripting workflows in shell or CI
- Giving an autonomous AI agent a typed tool surface for Compass
Install
- macOS / Linux
- Windows
- Go
- Manual
Authenticate
Run the interactive configure command — it stores your API key in the OS keychain (macOS Keychain, GNOME Keyring/KWallet on Linux, Windows Credential Locker):Quickstart
List the top 5 vaults by TVL:Agent mode
The CLI ships with an--agent-mode flag that:
- Switches default output to TOON (a compact, token-efficient format ideal for LLM context)
- Emits structured errors that agents can parse and react to
CLAUDE_CODE, CURSOR_AGENT, etc.) — so when an AI assistant shells out to compass …, it already gets agent-friendly output.
Output formats
-q '<jq expression>' to filter / reshape on the way out.
Command groups
| Group | What it does |
|---|---|
compass auth | Manage authentication credentials |
compass configure | Interactive credential + preference setup |
compass earn | Vault discovery, positions, balances, deposits, withdrawals, swaps |
compass credit | Credit lines: balances, borrow, repay, positions |
compass gas-sponsorship | Prepare gas-sponsored transactions |
compass tokenized-assets | Tokenized equities operations |
compass global-markets-perps | Perpetuals on global markets |
compass explore | Interactively browse and run any command |
compass <group> --help for the full subcommand list, or compass explore to browse interactively.
Shell completion
Full command reference
Per-command documentation (every flag, every subcommand) lives in the CLI source tree:Browse the full command reference
Auto-generated docs for every
compass subcommand.Coding Assistant
Want an AI assistant to write the integration for you? Point it at Compass’s LLM-optimized docs.
API Reference
The REST endpoints the CLI wraps. Useful for understanding what each subcommand does on the wire.