Skip to content

Codex App

Point OpenAI's Codex desktop app at HopBase to use GPT models.

Codex App is OpenAI's Codex desktop app. It reads the same user config as Codex CLI, ~/.codex/config.toml. Set up that config and a key, reopen the app, and it runs on HopBase.

ItemValue
Config files~/.codex/config.toml and ~/.codex/auth.json
Base URLhttps://api.hop-base.com/v1
Protocolwire_api = "responses"
KeyA key from the Codex Plus or Codex Pro group

Both write config.toml and auth.json for you, and Codex App picks them up as is.

Write the config

On the console's API Keys page, find a Codex group key and pick one route: click One-click setup, choose Codex CLI, and run the command in a terminal; or follow the CC Switch guide, click Import CCS, and also choose Codex CLI.

Quit Codex App completely and reopen it

Quit the whole app, then open it again; on macOS press Cmd+Q. Closing only the window does not make the app reload its config.

Start a task to verify

Start a new task and ask for a one-word reply. When it succeeds, the request shows up in the console's Usage page.

Manual setup

Codex App starts from the desktop, so it may not see environment variables set in your terminal. For manual setup, store the key in auth.json instead of using env_key.

SystemConfig directory
macOS / Linux~/.codex/
WindowsC:\Users\<your-username>\.codex\

Create the files if they do not exist.

config.toml:

model_provider = "hopbase"
model = "gpt-6-astra"
model_reasoning_effort = "high"

[model_providers.hopbase]
name = "HopBase"
base_url = "https://api.hop-base.com/v1"
wire_api = "responses"
requires_openai_auth = true

auth.json:

{
  "OPENAI_API_KEY": "sk-your-key"
}
Do not mix the two key styles.

Use either requires_openai_auth = true with auth.json, or env_key with an environment variable. With both in one config, Codex 0.153 was observed sending no key, and the gateway returns 401 missing_api_key.

Switch models

Edit model and model_reasoning_effort in config.toml, quit and reopen Codex App, then start a new task. Existing tasks may keep the model they were created with.

For the model IDs and reasoning levels in the Codex groups, see Codex CLI. The list returned by GET /v1/models for your key is authoritative.

More details

Next steps