Cannot sign in with BYO api key
Resolved 💬 6 comments Opened Feb 26, 2026 by smileBeda Closed Feb 27, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
codex-cli 0.105.0
What subscription do you have?
PRO
Which model were you using?
gpt-5.3-codex xhigh
What platform is your computer?
Darwin 25.3.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Terminal
What issue are you seeing?
I want to sign in with my own API key.
When I do so I am offered to input my api key I do that and the prompt window opens but when I send prompt then:
■ {
"error": {
"message": "The encrypted content gAAA...0A== could not be verified. Reason: Encrypted content organization_id did not match the target organization.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_encrypted_content"
}
}
The most crazy.. this is what it used for that failure:Token usage: total=235,912 input=201,455 (+ 1,319,424 cached) output=34,457 (reasoning 26,892)
Further - even if the footer says I am on 5.3 codex (it was a resumed session), the model is not actually available from /model selector.
What steps can reproduce the bug?
codex- option 3 "add your own api key"
- insert api key
- hit enter
- send prompt
What is the expected behavior?
No error and working codex
Additional information
_No response_
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Not a duplicate.
That ticket is for azure, and the error is intermittent, and the model is not even mentioned missing.
Further detail:
The error seems to happen only on
/resume'd chat (the actual error)The model is not available in any case, even if
responds with
gpt-5.3-codexIf you create a thread on one account, you cannot resume it using another account. The CoT state is encrypted based on an account-specific key.
Ok thanks.
And what about the missing model in the selector?
Is this being resolved in some or other ticket already?
I think https://github.com/openai/codex/pull/12808 solves that.
Thanks