---
title: "Fix: 'gpt-6.1-sol' is not supported when using Codex with a ChatGPT account"
description: "How to fix The 'gpt-6.1-sol' model is not supported when using Codex with a ChatGPT account: switch config.toml to gpt-6.2-sol, update @openai/codex, refresh OAuth login, check workspace admin toggles, or switch to API key mode."
url: https://codingpass.ai/blog/codex-gpt-6-1-sol-not-supported-chatgpt-account
language: en
updated: 2026-11-27
---
# Fixing gpt-6.1-sol is not supported in Codex

Signing into the Codex CLI or IDE extension with a ChatGPT account and immediately hitting a 400 model error rarely means your account is broken. In most cases it comes down to a stale model pin, an outdated client, or a workspace admin toggle.

[CodingPass team](https://codingpass.ai/about) Published Nov 27, 2026 Updated Nov 27, 2026 5 min read

If you sign into the Codex CLI, IDE extension, or Codex inside the ChatGPT desktop app with a ChatGPT account and hit a 400 right away, you will see this exact message:

```
The 'gpt-6.1-sol' model is not supported when using Codex with a ChatGPT account.
```

**Fastest fixes first:** Open `~/.codex/config.toml` and change any pinned `model = "gpt-6.1-sol"` to `model = "gpt-6.2-sol"` (or delete the line to use the catalog default), then upgrade `@openai/codex` and sign in again. On a Business, Enterprise, or Edu account, ask your workspace admin to enable the model. If you want to bypass ChatGPT account model gates altogether, switch Codex to API key mode.

## Why Codex throws this error

Codex supports two authentication paths: OAuth sign-in with a ChatGPT account, or direct API key authentication. When you use a ChatGPT account, the backend validates every request against the active model catalog for your subscription tier and workspace policy. Any retired, gated, or mismatched model ID comes back as a 400.

Nearly every report of this error maps to one of five scenarios:

| Scenario | Root cause | Exact fix |
| --- | --- | --- |
| Pinned model in config.toml or scripts | Local config still pins `gpt-6.1-sol` or a retired slug after the ChatGPT catalog moved on (`gpt-6.2-sol` is the default from Codex 0.171.0) | Set `model = "gpt-6.2-sol"` in `~/.codex/config.toml` or remove the line |
| Works in web chat, fails in CLI or IDE extension | Outdated `@openai/codex` binary, stale background daemon, or an IDE extension bundling an older binary | Upgrade `@openai/codex`, update the IDE extension, and restart the daemon/editor |
| Business, Enterprise, or Edu workspace | Workspace admins control Codex and model access; newer or specific models are often off by default | Have a workspace admin enable the model in the Admin Console, then re-login |
| Recent plan upgrade or multiple accounts | `~/.codex/auth.json` still holds a stale OAuth token or a personal free-tier session | Run `codex logout` (or clear `auth.json`) and run `codex login` again |
| Need a model blocked on ChatGPT login | ChatGPT OAuth sessions expose a stricter subset of models than the developer API catalog | Authenticate with an OpenAI API key or point `config.toml` at CodingPass |

Work through the steps below in order; most setups are back up after the first two.

## 1. Migrate ~/.codex/config.toml to gpt-6.2-sol

The single most common culprit is a leftover model pin in `~/.codex/config.toml`. Starting in Codex 0.171.0, `gpt-6.2-sol` became the catalog default for everyday coding and agentic sessions. Once an older slug like `gpt-6.1-sol` is retired or restricted on the ChatGPT backend, any file or flag still pinning it will immediately fail.

Edit `~/.codex/config.toml` to point at `gpt-6.2-sol`, or remove the `model` line altogether so Codex tracks the current catalog default:

~/.codex/config.toml

```
model = "gpt-6.2-sol"
```

To test right away for a single run, pass `--model` on the command line, or switch inside an active session with `/model`:

```
codex --model gpt-6.2-sol
```

```
/model gpt-6.2-sol
```

Check two places that are easy to overlook:

- **Project configs and profiles**: Inspect any repo-local `.codex/config.toml` and any `[profiles.*]` blocks in `~/.codex/config.toml` for hardcoded `gpt-6.1-sol` lines
- **Shell aliases and CI scripts**: Run `grep -rn "gpt-6.1-sol" ~/.codex ~/.zshrc ~/.bashrc` to catch old `-m gpt-6.1-sol` or `--model gpt-6.1-sol` flags

## 2. Upgrade @openai/codex and restart the daemon

If your config does not pin an old model, or if the model works in ChatGPT on the web while failing in your terminal or editor, your local client is likely out of date. Older CLI binaries and lingering background daemons keep sending outdated routing profiles, and IDE extensions bundle their own binary independently of your global npm install.

Check your installed version and upgrade to the latest release:

```
codex --version
npm install -g @openai/codex@latest
```

If you installed Codex via Homebrew instead:

```
brew upgrade codex
```

After upgrading, finish both restarts before retrying:

- **Update and restart your IDE**: Install the latest Codex extension from the VS Code / Cursor marketplace, then quit and reopen the editor completely
- **Restart the desktop app or daemon**: If you use Codex inside the ChatGPT desktop app, quit the app completely so the background daemon reloads the updated binary and config

## 3. Refresh your ChatGPT OAuth session

If you recently upgraded from a free account to Plus or Pro, or switched between a personal account and a work workspace, `~/.codex/auth.json` can keep serving an old OAuth token whose permissions no longer match.

Check which auth mode Codex thinks is active:

```
codex login status
```

Then clear the local session and sign in again (use `--device-auth` on headless servers or over SSH):

```
codex logout
codex login
```

```
# Headless or SSH environments
codex login --device-auth
```

If `codex logout` does not clear a stuck session, delete `~/.codex/auth.json` (or `$CODEX_HOME/auth.json` if you set `CODEX_HOME`) and run `codex login` again, making sure you select the right paid account or workspace in the browser.

## 4. Check Business, Enterprise, and Edu admin settings

In ChatGPT Business, Enterprise, and Edu workspaces, model visibility in Codex is governed by organization policies. Even when a model is live for individual Plus and Pro users, workspace administrators often need to enable Codex access or specific models explicitly.

Local config edits cannot override a workspace block:

1. Ask your workspace administrator to open the ChatGPT / OpenAI Admin Console.
2. Confirm that Codex is enabled and that the active model (`gpt-6.2-sol` or `gpt-6.1-sol`, depending on policy) is turned on for your workspace or role.
3. Once the toggle is saved, run `codex logout && codex login` locally so your OAuth token picks up the updated workspace permissions.

## 5. Switch to API key mode (or CodingPass)

When you need a model that your ChatGPT subscription does not expose, or you want to avoid ChatGPT account catalog changes altogether, switch Codex from ChatGPT login to an API key.

To use an OpenAI API key directly:

```
printenv OPENAI_API_KEY | codex login --with-api-key
```

If you prefer a fixed monthly coding plan that runs `gpt-6.2-sol` and `gpt-6.1-terra` (alongside Claude models) under one key with no surprise charges, add CodingPass as a provider in `~/.codex/config.toml`. Go starts at $10/mo for `gpt-6.1-terra`, and Plus at $30/mo includes `gpt-6.2-sol`, all metered at official API rates against your monthly allowance:

~/.codex/config.toml

```
model = "gpt-6.2-sol"
model_provider = "codingpass"

[model_providers.codingpass]
name = "codingpass"
base_url = "https://codingpass.ai/v1"
env_key = "CODINGPASS_API_KEY"
wire_api = "responses"
```

Export your key in `~/.zshrc` or `~/.bashrc`, open a new shell, and run `codex`:

```
export CODINGPASS_API_KEY="cp-live-..."
codex
```

The Codex CLI, the IDE extension, and Codex in the ChatGPT desktop app all read the same `~/.codex/config.toml`. To keep your ChatGPT login alongside CodingPass, place the top two lines in a dedicated profile and launch with `codex --profile cp`. See the full [Codex setup guide](https://codingpass.ai/tools/codex), browse [all supported models](https://codingpass.ai/models), or compare plans on [pricing](https://codingpass.ai/pricing).

## FAQ

### Why does the model work in ChatGPT web, while Codex CLI says it is not supported?

ChatGPT web, the desktop app, and the Codex CLI check different backend catalogs and client versions. Staggered rollouts, workspace policies that restrict Codex separately from web chat, or an outdated CLI binary can all let web chat work while the CLI returns 400. Upgrade `@openai/codex` first and run `/model` to inspect the exact list exposed to your current session.

### Can I still resume older Codex sessions after switching from gpt-6.1-sol to gpt-6.2-sol?

Yes. `codex resume` loads your local session history regardless of the model change. Update `~/.codex/config.toml` or launch with `codex --model gpt-6.2-sol`, and if an old session restores with the retired model name, run `/model gpt-6.2-sol` inside the session.

### What if my error names a different model instead of gpt-6.1-sol?

The same fix applies to any variant of `The '<model>' model is not supported when using Codex with a ChatGPT account.` That message always means the requested slug is retired or unavailable on your ChatGPT-authenticated Codex backend. Replace the old slug with `gpt-6.2-sol` (or remove the hardcoded `model` line), update the CLI, and refresh your login.

Written by CodingPass team

We run CodingPass and test each guide against the latest stable release of the tool before we publish it. Spotted something out of date? Write to [support@codingpass.ai](mailto:support@codingpass.ai).

## Related reading.

Guide

### [Codex setup guide](https://codingpass.ai/tools/codex)

Add a custom provider in ~/.codex/config.toml, set your key, and share one config across the CLI and desktop app.

Models

### [All models](https://codingpass.ai/models)

Model IDs, required tiers, and monthly allowances across every supported model.

Rules

### [How allowances and caps work](https://codingpass.ai/usage-limits)

5-hour and weekly caps per plan, plus what the 429 response returns.
