Not sure about Codex but Claude Code works with Github Copilot and can even work with open source models like Kimi/Deep Seek.