Agent failed before reply

why do i get this if I'm using claude subscription?
โš ๏ธ Agent failed before reply: No API key found for provider "openai". You are authenticated with OpenAI Codex OAuth. Use openai-codex/gpt-5.2 (ChatGPT OAuth) or set OPENAI_API_KEY for openai/gpt-5.2.. Check gateway logs for details.
Was this page helpful?