
What Gets Compressed
Claude Token Compression targetstool_result messages in Claude API format. This includes:
- File contents: output from Read tool and file system operations
- Grep and search outputs: results from code search, ripgrep, and similar tools
- Shell command output: stdout/stderr from Bash and terminal commands
- API responses: large JSON or text payloads returned by tool calls
- Database query results: rows and records returned from tool-executed queries
How to Enable
In the Edge Models section of your console, find the Claude Token Compression card and simply select which API keys should use Claude compression.
There are no compression ratio or BERT threshold settings. Claude Token Compression is fully lossless by design. Just enable it and go.
Integration with Claude Code
Claude Code supports custom API endpoints through its settings. You can configure it to use Edgee as your AI provider in two ways:Option 1: Environment Variables
The configuration differs depending on whether you’re using Claude Pro/Max or API billing:For Claude Pro/Max Users
Set the following environment variables in your shell configuration (~/.bashrc, ~/.zshrc, etc.):
Replace
<YOUR_EDGEE_API_KEY> with your actual Edgee API key from the Edgee Console.For API Billing Users
Set the following environment variables in your shell configuration (~/.bashrc, ~/.zshrc, etc.):
Replace
<YOUR_EDGEE_API_KEY> with your actual Edgee API key from the Edgee Console.Option 2: Claude Code Settings
You can also configure Claude Code through its settings file. Create or edit~/.claude/settings.json:
For Claude Pro/Max Users
Replace
<YOUR_EDGEE_API_KEY> with your actual Edgee API key from the Edgee Console.For API Billing Users
Replace
<YOUR_EDGEE_API_KEY> with your actual Edgee API key from the Edgee Console.