I don't use Codex CLI myself, but you can configure it to point to OpenRouter instead. OpenRouter has some instructions for Codex CLI and Claude Code here (though they mention Claude Code is not guaranteed to work!):
https://openrouter.ai/docs/cookbook/coding-agents/codex-cli
https://openrouter.ai/docs/cookbook/coding-agents/claude-cod...