Connect a Codex or ChatGPT subscription¶
Use this connection with a ChatGPT plan that includes Codex access. Colossus delegates sign-in to the official Codex CLI and uses its file-backed credential. A ChatGPT subscription does not provide OpenAI API credit; use OpenAI API for API-key authentication and separate API billing.
You need the official Codex CLI on PATH and a current configuration created by
colossus config init (schema version 3).
Sign in through Codex¶
On a headless machine, use colossus codex login --device-code. If Codex is not on
PATH, put --codex-bin /absolute/path/to/codex before login, status, or logout.
If you set CODEX_HOME, use an absolute path.
A successful status check confirms that the official CLI completed and Colossus can safely load its credential. The token never belongs in YAML. Colossus rejects an existing unsafe auth file before starting an account operation.
To remove the sign-in, run colossus codex logout. It reports completion only after
the credential is unavailable; an unsafe remaining store fails verification.
Configure the subscription route¶
Run colossus -w . config effective and edit the reported resolution.configPath.
Keep storage and your other settings. Merge the provider and model profiles below
into the existing maps, set models.roles.primary to codex, and retain any other
model roles and sandbox destinations.
Replace YOUR_CODEX_MODEL_ID with an exact model ID available to your account. The
token limits are examples; use the selected model's actual limits.
schemaVersion: 3
providers:
profiles:
codex-provider:
kind: open_ai_codex
credentialReference: codex:default
models:
profiles:
codex:
providerProfile: codex-provider
model: YOUR_CODEX_MODEL_ID
contextWindowTokens: 128000
maxOutputTokens: 16000
reasoningEffort: high
capabilities:
toolCalls: true
streaming: true
roles:
primary: codex
sandbox:
networkDestinations:
- https://chatgpt.com
- https://auth.openai.com
The subscription adapter owns its backend URL, so do not add baseUrl. It sends the
credential only to its fixed service and refresh endpoints. Under isolation, retain
both sandbox origins so an expiring token can refresh. Acknowledged full access
already supplies authority for both endpoints.
Set reasoningEffort only to a level the selected model supports, or omit it to use
the backend default.
Check the connection¶
colossus -w . models route primary
colossus -w . provider doctor codex-provider
colossus -w . provider models codex-provider
colossus -w . models doctor codex
The primary route should resolve to codex. After both diagnostics succeed, send
a small test request:
Check colossus -w . config show: it should contain
credentialReference: codex:default, without a token or ChatGPT account identifier.
Troubleshoot sign-in and model access¶
- Missing or expired sign-in: run
colossus codex status, then sign in again. The Codex auth file must be a regular, owner-private file. - The backend requires a newer Codex version: check
colossus --versionand upgrade Colossus, then rerunprovider doctor. The adapter's reviewed wire contract changes with Colossus; updating the login CLI alone does not change it. - A model is missing from the catalog: upgrade Colossus, then run
provider models codex-provideror choose Load models in Desktop. Availability also depends on the account rollout, sign-in method, and workspace permissions. Use exact returned IDs; see OpenAI's model availability guidance. - A catalog model is missing from Desktop's composer: open Settings → Global → Models → Add model, select the Codex provider, choose the model with Load models, and save with Add model. Then select the saved model in Workspace → Models and choose Apply Workspace changes. Loading the catalog alone does not save a model or select it for the workspace.
- The account flow fails: check
codex --version, update the official CLI, and retry login or the device-code flow. - A model or reasoning level is rejected: use an exact catalog model ID and
correct or omit
reasoningEffort, then rerunmodels doctor codex. - Refresh is blocked under isolation: retain both sandbox destinations shown
above and rerun
provider doctor codex-provider.
For field details, see Providers and models. For deployment policy, see Providers and routing. Once connected, continue with First repository task.