Edgee CLI setup (recommended)
The fastest way to connect Codex to Edgee is through the CLI, no config files to edit manually.
After the session ends, the CLI prints a link to view token usage, compression savings, and cost breakdown in the Edgee Console.
Manual setup (advanced)
If you prefer to configure Codex without the CLI, update your Codex configuration file at~/.codex/config.toml:
Replace
<YOUR_EDGEE_API_KEY> with your actual Edgee API key from the Edgee Console. You’ll also need to enable Codex Token Compression on that key from the Edge Models section.Usage
Once launched, use Codex normally, compression is transparent:Benefits
Automatic Cost Reduction
If you are using API billing, you will see a significant reduction in your token costs by up to 30%.
More Work Per Session
Compression makes the effective context window stretch further, so Codex can tackle larger tasks before hitting limits.