#How do I auth with a second gpt Codex account.
1 messages ยท Page 1 of 1 (latest)
Up
Exact same process as you did the first time.
Openclaw configure on terminal and select OpenAI -> Oauth and then sign in with your second account
The Codex sub is just the brain, everything else (memory, context, instructions) is stored locally
Yep โ for Codex OAuth (ChatGPT sign-in) you can just add another account by logging in again, and OpenClaw will store it as a separate auth profile.
Do this on the machine running the Gateway:
openclaw models auth login --provider openai-codex
(Then complete the browser sign-in with your second OpenAI/Codex account.)
Verify what profiles you have:
openclaw models status
You should see multiple profile IDs (often something like openai-codex:you@email.com per account).
Switch accounts:
- Per-session: use
/model <something>@<profileId>(the/modelpicker should also show the profiles) - Or set a default order for that provider:
openclaw models auth order set --provider openai-codex openai-codex:second@email.com openai-codex:first@email.com
Docs (relevant section): https://docs.openclaw.ai/concepts/oauth
[openai-codex] code->token failed: 400 {
"error": {
"message": "Invalid request. Please try again later.",
"type": "invalid_request_error",
"param": null,
"code": "token_exchange_user_error"
}
}
Error: Token exchange failed
I'm having this issue where both of my GPT oAuth accounts are bouncing 401 errors. I'm reading this is cause by a new security fix from OpenAI, so if you re-auth your grandfathered tokens go away and you're blocked from auth access. Anyone confirm?
@sturdy ibex
lol, having same issue came here because i needed multiple accounts.