Supported Tools
Claude Code
Anthropic’s official CLI for interactive coding with AI.
Codex
OpenAI’s CLI agent for software engineering tasks.
Installation
- macOS / Linux
- Homebrew
Quick Start
Get up and running in under a minute:Initialize
Commands
edgee init
Interactive setup wizard. Prompts you to select a provider (Claude Code or Codex), opens a browser for authentication,
and saves your credentials locally.
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.
edgee auth status
Display the current authentication status for all configured providers, including the logged-in email and connection mode.
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
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 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