Skip to main content
Codex works best with gpt-6-sol through Floodgate, with support for gpt-6-astra, gpt-6-luna, and gpt-5.6-sol.

1. Install Codex

Check the installation:

2. Set your API key

3. Configure Floodgate

Open ~/.codex/config.toml. On Windows, use %USERPROFILE%\.codex\config.toml.
Put the provider configuration in your user-level config (~/.codex/config.toml). Codex ignores custom provider and credential settings in project-level .codex/config.toml files.

4. Run Codex

Switch to another Floodgate model for a specific session:
gpt-6-sol is the recommended default for Codex, offering frontier coding accuracy and seamless tool calling through Floodgate’s /v1/responses wire API.
Inside Codex, run /status to confirm the selected model and provider.