#Facing issues with changing models in OC
1 messages ยท Page 1 of 1 (latest)
That error is coming from OpenAIโs side (not really an OpenClaw bug): Codex authenticated via a โChatGPT accountโ login only supports a limited subset of models, and gpt-5.3-codex isnโt in that subset.
Two ways out:
-
If you want to use
gpt-5.3-codex: switch the provider auth to an OpenAI Platform API key (paid API / billing enabled), update whatever your gateway/service is using for env/auth, then restart the gateway so it picks up the new creds. -
If you want to keep ChatGPT-account auth: change your OpenClaw model selection to one that Codex allows under that auth method (the allowed list is determined by OpenAI and can change).
To pinpoint which path youโre on, can you paste:
openclaw --version- and where you set the model (e.g.
agents.defaults.model/ agent-specific override / Control UI), plus whether your OpenAI/Codex auth is API key or ChatGPT login?
I can send pictures. But this is this issue -->
Error: State mismatch
โ
โ OAuth help โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Trouble with OAuth? See https://docs.openclaw.ai/start/faq โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Default model
โ โ Keep current (openai-codex/gpt-5.3-codex)
โ โ Enter model manually
โ โ openai-codex/gpt-5.1
โ โ openai-codex/gpt-5.1-codex-max
โ โ openai-codex/gpt-5.1-codex-mini
โ โ openai-codex/gpt-5.2
โ โ openai-codex/gpt-5.2-codex
โ โ openai-codex/gpt-5.3-codex
โ โ openai-codex/gpt-5.3-codex-spark
โ โ openai-codex/gpt-5.4
Youโve actually got two separate problems in that screenshot:
1) The model error (gpt-5.3-codex not supported with ChatGPT/Codex OAuth)
Even though the wizard lists openai-codex/gpt-5.3-codex, your specific Codex (ChatGPT) account isnโt entitled to it, so OpenAI rejects requests with exactly the error you pasted.
Fix: in that โDefault modelโ picker, do not โKeep current (openai-codex/gpt-5.3-codex)โ โ pick openai-codex/gpt-5.4 (or another one from the list that works for your account).
2) OAuth โState mismatchโ
Thatโs an OAuth safety check: it usually happens when you have multiple login attempts/tabs, or you pasted a redirect URL from an earlier attempt.
Fix (cleanest):
- Abort the current wizard run (Ctrl+C).
- Run a fresh login:
openclaw models auth login --provider openai-codex
- Complete the browser login from the single URL that command just generated (close old tabs).