Skip to main content
Coding agents are uniquely token-hungry. Every file read, grep result, shell output, and API response lands in the context window as a tool_result, and those payloads add up fast. A single Claude Code session can consume tens of thousands of tokens just from tool calls. Edgee compresses these tool_result messages losslessly before they reach the model. The agent sees identical output. You pay for fewer tokens.

Up to 35% longer sessions for Pro/Max users

Up to 50% lower costs on API billing

Zero config, the CLI handles everything

How It Works

When you launch a coding agent through the Edgee CLI, all traffic is automatically routed through the Edgee gateway. Before each request reaches the LLM provider, Edgee compresses the tool_result content, file contents, grep outputs, bash responses, using lossless techniques that preserve every byte of meaning. The model receives the same information. You use fewer tokens.
1

Install the Edgee CLI

curl -fsSL https://install.edgee.ai | bash
2

Launch your coding agent

edgee launch claude
# or
edgee launch codex
# or
edgee launch opencode
That’s it. Your agent now runs with Edgee compression enabled.
After each session, the CLI prints a link to your session analytics, including tokens used, tokens saved, and cost breakdown. Edgee Coding Agent Session

Supported Tools

ToolCommandStatus
Claude Codeedgee launch claude✅ Available
Codexedgee launch codex✅ Available
OpenCodeedgee launch opencode✅ Available
Cursoredgee launch cursor🔜 Coming soon

What Gets Compressed

Edgee targets tool_result messages in Claude/Codex/OpenCode… API format:
  • File contents: output from Read and file system operations
  • Grep and search results: ripgrep, code search, similar tools
  • Shell output: stdout/stderr from Bash commands
  • API responses: large JSON or text payloads from tool calls
  • Database results: rows and records from tool-executed queries
User messages and assistant turns are not modified.
Compression is fully lossless for coding agent traffic. There are no quality thresholds or configuration options, just enable it and go.

Next Steps

CLI Quickstart

Install the CLI and launch your first compressed session in under a minute.
https://mintcdn.com/edgee/RmPUqoqJw-u0FxFP/images/icons/claude.svg?fit=max&auto=format&n=RmPUqoqJw-u0FxFP&q=85&s=d3154991b618d253ee22ffaf55a433fc

Claude Token Compression

Deep dive into the compression engine powering Claude Code support.
https://mintcdn.com/edgee/CrNen493EQpoYoa2/images/icons/codex.svg?fit=max&auto=format&n=CrNen493EQpoYoa2&q=85&s=0f19fa96ee1277109c66c3b411f868c0

Codex Token Compression

Learn more about how compression is optimized for Codex sessions.