Version: OpenClaw 2026.3.2
Problem:
After completing the OAuth flow for openai-codex (Codex / ChatGPT Pro account), the agent still shows "No API key found for provider openai-codex" when trying to use any Codex model.
What I did:
- Ran openclaw onboard --auth-choice openai-codex
- Completed OAuth flow (login with Google/Microsoft account)
- Verified auth-profiles.json contains valid OAuth tokens:
{
"openai-codex:default": {
"type": "oauth",
"provider": "openai-codex",
"access_token": "...",
"refresh_token": "...",
"expires_at": ...
}
}
- Added to openclaw.json:
"auth": {
"profiles": {
"openai-codex:default": {
"provider": "openai-codex",
"mode": "oauth"
}
}
}
Expected behavior:
Using /model openai-codex/gpt-5.3-codex should work with the OAuth credentials.
Actual behavior:
No API key found for provider "openai-codex". Auth store: /data/.openclaw/agents/main/agent/auth-profiles.json
The error message references the correct auth-profiles.json file, and the OAuth tokens ARE present in that file. It seems like the openai-codex provider is not reading/accepting OAuth credentials from auth-profiles.json.
Environment:
• Docker container on Hostinger VPS
• Tried both as root and UID 1000
• Tokens have correct permissions (600, owner node)