Supported Tools
Claude Code
Anthropic’s official CLI for interactive coding with AI.
Codex
OpenAI’s CLI agent for software engineering tasks.
OpenCode
Open-source AI coding agent with multi-model support.
Cursor
Coming soon.
Installation
- macOS / Linux
- Homebrew
- Windows (PowerShell)
Quick Start
Launch your coding agent- Claude Code
- Codex
- OpenCode
Commands
Anthentication commands
edgee auth login
Authenticate with Edgee for a specific provider. Opens a browser window for OAuth-based login. Your API key and credentials
are saved to ~/.config/edgee/credentials.toml.
If you want to use multiple Edgee profiles, you can add --profile <profile-name> to this command to declare the profile you want to use.
edgee auth status
Display the current authentication status for all configured providers, including the logged-in email and connection mode.
edgee auth list
List all configured profiles. Yes, because you can have multiple Edgee profiles, using --profile <profile-name> when you log in.
edgee auth switch
Switch to a different profile.
Launch commands
Launch your coding agent.edgee launch claude
Launch Claude Code with all Edgee configuration automatically injected. The CLI sets the required environment variables
(ANTHROPIC_BASE_URL, authentication headers, session ID) and starts Claude Code.
- Claude Pro/Max: uses your Anthropic subscription, Edgee compresses traffic to extend session duration
- API Billing: uses Edgee API keys for direct billing, reducing token costs
edgee launch codex
Launch Codex with Edgee routing automatically configured. The CLI passes the required provider configuration to Codex
and starts a new session.
- ChatGPT Plus/Pro: uses your OpenAI subscription with Edgee compression
- API Billing: uses Edgee API keys for direct billing
Other commands
edgee stats
Show the stats of your latest sessions.
edgee alias
Install shell aliases for Edgee launch commands, so you won’t need to launch edgee launch <tool> every time.
edgee reset
Reset your credentials and connection mode for a provider. Useful if you need to switch accounts, change your connection mode,
or re-authenticate.
edgee self-update
Check for updates and install the latest version of the Edgee CLI.
Configuration
The CLI stores credentials in~/.config/edgee/credentials.toml with restricted file permissions (600).
You don’t need to edit this file manually. The CLI manages it through
edgee init, edgee auth login, and edgee reset.Session Tracking
Everyedgee launch session is assigned a unique session ID. After your session ends, the CLI prints a link to view
detailed analytics for that session in the Edgee Console, including:
- Token usage and compression savings
- Request count and latency
- Cost breakdown
How It Works
When you runedgee launch claude or edgee launch codex, the CLI:
- Verifies your authentication (prompts login if needed)
- Generates a unique session ID
- Configures the appropriate environment variables and headers
- Launches the AI tool as a child process with Edgee routing enabled
- Prints a session analytics URL when the session ends
Next Steps
- Learn about Claude Token Compression and how it extends your sessions
- Set up alerts to monitor your AI spending
- Explore observability to track usage across all your sessions