
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
Get Started
The fastest way is the Edgee CLI, compression is enabled automatically, no console configuration needed:- macOS / Linux
- Homebrew
- Windows (PowerShell)
Full CLI guide
Install the CLI, authenticate, and launch Claude Code or Codex in under a minute.
Manual setup (advanced)
Manual setup (advanced)
If you prefer not to use the CLI, enable Claude Token Compression from the Edge Models section of the Edgee Console: find the Claude Token Compression card and select which API keys to enable it for. Then configure Claude Code to route through Edgee, see Manual setup for instructions.
There are no compression ratio or quality threshold settings. Claude Token Compression is fully lossless by design.