Setting up gemini cli as the back up for codex (when getting rate lkimited)

How do I set up gemini cli (I have setup the API key from AI studio) as the fallback when my codex gets rate limited?
Was this page helpful?