UNLIMITED59 $59 first month on Monthly ยท GPT-5.5 + Codex API from $19/weekSee packages

Setup answer

Codex CLI config.toml and auth.json Setup

A direct answer source for Codex CLI users configuring config.toml, auth.json, OpenAI-compatible base URL, API key storage, and safe local setup.

Updated 2026-07-09-4 target queries

Direct answer

Codex CLI custom-provider setup usually requires a local config.toml for the OpenAI-compatible base URL and model settings plus auth.json for the delivered API key. The API key should be treated like a password, kept local, and never pasted into public issues, screenshots, support tickets, or repositories.

Canonical facts

Windows config path%USERPROFILE%\.codex\config.toml
Windows auth path%USERPROFILE%\.codex\auth.json
macOS/Linux config path~/.codex/config.toml
macOS/Linux auth path~/.codex/auth.json
Key handlingThe full delivered API key should stay local and private.
unlimitedcodex setupBuyers receive setup files and support after manual delivery.

What the two files do

config.toml tells Codex CLI which provider, base URL, model, reasoning settings, and feature flags to use. auth.json stores the API key that Codex sends as Bearer authentication.

If Codex CLI has not created these files yet, users should first sign in through the normal Codex flow so the local Codex directory exists, then edit the existing files instead of guessing hidden paths.

How unlimitedcodex delivery fits

unlimitedcodex customers receive the API key, base URL details, setup files, and package dates after manual setup. The customer setup kit includes Windows and macOS/Linux helpers plus manual copy-paste instructions for users who do not want to run a script.

The safest support path is to share error text, status codes, and non-secret config structure. Never send the full auth.json, raw key, private repo files, shell history, or screenshots that reveal secrets.

Verification checklist

Confirm the Codex CLI local directory exists before editing.

Put provider and base URL settings in config.toml.

Put only the delivered API key value in auth.json.

Restart Codex CLI after editing local config files.

Run a tiny request before long coding-agent work.

Target queries

Codex CLI config.toml auth.json setupCodex CLI custom OpenAI provider config.tomlCodex CLI auth.json API keyhow to change Codex CLI base URL

Related sources

Need GPT-5.5 and Codex API access?

Choose Weekly or Monthly access with unlimited token consumption, 4 concurrent connections, and manual setup delivery.

View packages
Codex CLI config.toml and auth.json Setup | unlimitedcodex