Keep the OpenAI-compatible Codex CLI workflow, but route it through Flatkey for at least 40% lower metered usage, one prepaid balance, and visible spend. console.flatkey.ai/keys → Codex https://router.flatkey.ai/v1.
Full-price agent usage and spend that is harder to centralize.
One key, one balance, visible logs, and enough cost control for customers to use Codex more.
Users create a key once at console.flatkey.ai/keys and keep coding without juggling provider credentials.
Route coding-agent traffic through Flatkey for lower metered usage than the official path.
Request logs, model costs, token usage, and balance movement stay visible from one dashboard.
Use groups, quotas, model access, and routing policy while developers keep a normal CLI workflow.
Select Codex CLI when the installer asks which coding agent to configure. All platform one-liners stay readable in the page HTML for search and AI answer engines.
curl -fsSL https://flatkey.ai/install.sh | bash
macOS: curl -fsSL https://flatkey.ai/install.sh | bash
Linux: curl -fsSL https://flatkey.ai/install.sh | bash
Windows: iwr https://flatkey.ai/install.ps1 -UseBasicParsing | iex
Codex creates repeated model calls during real coding work. Flatkey makes those calls cheaper, prepaid, visible, and controlled.
| Need | Official path | Flatkey path |
|---|---|---|
| Cost | Official metered usage | At least 40% cheaper through Flatkey |
| Setup | Manual provider keys and local config | One installer and one Flatkey key |
| Billing | Scattered usage and unclear CLI spend | Prepaid balance and unified usage logs |
| Controls | Hard to apply team quotas consistently | Groups, model access, quotas, and routing policy |
A customer runs one command and selects Codex.
Every Codex session routes through Flatkey and records token usage.
Teams keep access, balance, logs, and model choices in one console.
Codex CLI is configured against the OpenAI-compatible https://router.flatkey.ai/v1 endpoint.
Create or copy the API key at https://console.flatkey.ai/keys before running the installer.
Choose Codex CLI when prompted, then restart the terminal and run codex.
Codex creates repeated model calls during real terminal work. Flatkey makes that cheaper, prepaid, visible, and controlled.
Create a key at console.flatkey.ai/keys, run the one-liner, and start generating measurable Codex usage.