Skip to main content
Codex CLI is OpenAI’s coding agent for the terminal. Install Node.js 18 or later before you begin. Install Codex CLI:
Open the local Codex configuration file to set up GeekAI as the model provider:
Add the following TOML configuration:
With model set to gpt-5.3-codex, you must set wire_api to responses: GPT-5.3-Codex only supports the Responses API.
Set env_key to GEEKAI_API_KEY, the name of the environment variable Codex will read. Do not put your actual API key in this field. Save the configuration file, then set the key in your shell:
export only affects the current shell session. To persist these settings, add the commands to ~/.bashrc or ~/.zshrc, then run source ~/.bashrc or source ~/.zshrc.
Replace <YOUR_GEEKAI_API_KEY> with your GeekAI API key. If you use the international base URL, obtain a key from GeekAI International. The default balanced route is suitable for individual developers. For larger projects or faster, more stable responses, edit your key on the API Keys page and select the high-availability route. Changing the API key route If cost matters more than availability, choose the low-cost route instead. Start Codex CLI in the terminal:
First launch of Codex CLI No further configuration is needed. Ask Codex for code suggestions or help with a programming problem: Coding with Codex CLI through GeekAI