Prerequisites
- Node.js 18 or higher
- A Cavos account with an active session (from the Dashboard)
Installation
From Source
Clone and build the CLI from the repository:Verify Installation
Configuration
The Cavos CLI requires a session token exported from your dashboard. There are two ways to provide it:Option 1: Environment Variable (Recommended)
Set theCAVOS_TOKEN environment variable:
[!TIP] Addexport CAVOS_TOKEN="..."to your~/.bashrcor~/.zshrcfor persistence.
Option 2: Import Session File
Import the session token once, and it will be saved locally:Getting a Session Token
- Go to the Cavos Dashboard
- Navigate to Settings → Sessions
- Click “Export Session for CLI”
- Copy the base64 token
- Set it as
CAVOS_TOKENor import it usingcavos session import
[!IMPORTANT] The session token contains your session private key. Never share it publicly or commit it to version control.
Network Configuration
The CLI operates exclusively on Starknet Mainnet. All transactions and queries are executed against the public Mainnet RPC.Next Steps
Commands
View all available CLI commands
Session Management
Learn about session lifecycle and policies
AI Agents
Integrate the CLI with AI agents
Examples
Common usage patterns and workflows

