Skip to content
Docs

Codex setup

Configure Codex to use 0-0.pro as the model provider (wire_api = responses).

1) Install Codex

Install Codex in your editor (VS Code). After installation, Codex will read its configuration from ~/.codex.

2) Update ~/.codex/config.toml

Open ~/.codex/config.toml. Below is a complete example you can copy. Replace the paths under [projects.*] with your own.

toml
1model = "gpt-5.2"2model_reasoning_effort = "xhigh"3 4# Added for 0-0.pro (only 6 lines)5model_provider = "0-0"6 7[model_providers.0-0]8name = "0-0"9base_url = "https://0-0.pro/v1"10wire_api = "responses"11requires_openai_auth = true12# End added block13 14[projects."/Users/xxx/Downloads/GitHub/cerebr"]15trust_level = "trusted"16 17[projects."/Users/xxx"]18trust_level = "untrusted"19 20[projects."/Users/xxx/.codex/sessions/2026/01/24"]21trust_level = "untrusted"22 23[notice.model_migrations]24"gpt-5.2" = "gpt-5.2-codex"

If you already have a config, you only need to add the following 6 lines (plus an optional blank line) near the top:

toml
1model_provider = "0-0"2 3[model_providers.0-0]4name = "0-0"5base_url = "https://0-0.pro/v1"6wire_api = "responses"7requires_openai_auth = true
Note
Keep your existing model and model_reasoning_effort unchanged.

3) Update ~/.codex/auth.json

Set your Uni API key as OPENAI_API_KEY:

json
1{2  "OPENAI_API_KEY": "your-api-key"3}

4) Restart VS Code

Restart VS Code (or reload the window) so Codex picks up the updated configuration.

Why did my past chats disappear?

Codex conversations are associated with the model_provider. All session data is stored locally, but switching providers can make older sessions “invisible”.

To show older sessions under the new provider, find the JSONL files in ~/.codex/sessions and update the model_provider in the first line:

json
1{ "model_provider": "openai", "...": "..." }{ "model_provider": "0-0", "...": "..." }

Restart VS Code after the change to re-load the sessions.