Install
Install Node.js, then run:Set the key in your current terminal
PowerShell:Configure the provider
Edit%USERPROFILE%\.codex\config.toml on Windows or ~/.codex/config.toml on macOS/Linux. Replace the placeholder model with an exact Responses-compatible model ID available to your key:
codex; setting it in one shell does not automatically persist it in a new shell.
Verify
Runcodex in your project directory. For an initial configuration check, ask:
404, check the base URL includes /v1 exactly once. For model errors, copy the current exact ID from Model Square. Review proposed actions and diffs before permitting edits.
Provider fields follow the official Codex configuration reference.