Chat GPT : Unable to connect GitHub Auth to OpenAI Codex (stucvk at Configuration Page)
Fixing the Infinite GitHub Configuration Redirect Loop in ChatGPT
If you’re trying to connect GitHub to OpenAI Codex inside ChatGPT and it keeps redirecting you back to the GitHub configuration page, you’re not alone.
Many users report the same frustrating loop:
Click the Codex button in ChatGPT
Go through onboarding
Authorize GitHub
Get redirected to GitHub App configuration
Select account and repositories
Redirect again
Repeat endlessly
Codex never recognizes the authorization, even though GitHub shows it as installed.
This guide explains why it happens and the working fixes.
What’s Happening with GitHub to OpenAI Codex ?
The issue typically looks like this:
GitHub authentication succeeds
GitHub App appears installed
Codex doesn’t detect connection
You’re sent back to configure repositories again
Sometimes you see: “Error with connector connection.”
In some cases, users are even prompted for a PIN they never set.
This is usually caused by:
Broken OAuth session
Cached authorization data
Mismatch between GitHub App install and ChatGPT connector
Corrupted cookies
Empty repository (rare but confirmed issue)
Fix 1: Disconnect GitHub from ChatGPT and Reconnect
This is the most commonly successful solution.
Step-by-step:
Go to ChatGPT
Open Settings
Navigate to Connectors
Disconnect GitHub
Refresh the page
Go back to Settings → Connectors
Click GitHub and reconnect manually
Then retry connecting Codex
After reconnecting properly from the Connectors menu, Codex should recognize your repositories.
Fix 2: Revoke OpenAI from GitHub Directly
If reconnecting from ChatGPT doesn’t work, you need to reset from GitHub’s side.
Do this:
Go to GitHub
Open Settings
Navigate to Applications
Find the OpenAI / Codex App
Revoke access or uninstall it
Then:
Return to ChatGPT
Go to Settings → Connectors
Remove GitHub connector
Reconnect from scratch
This forces a clean OAuth handshake.
Fix 3: Clear Cookies and Log Out of Both Platforms
If the loop continues:
Log out of ChatGPT
Log out of GitHub
Clear browser cookies
Close browser completely
Reopen browser
Log into GitHub first
Then log into ChatGPT
Reconnect GitHub via Connectors
Many users report this fixes the redirect loop permanently.
Fix 4: Delete Codex Installation and Environments
Some users were only able to disconnect after:
Deleting Codex installation from GitHub
Removing Codex environments
Logging out everywhere
Clearing cookies
After a full reset, reconnecting worked.
Fix 5: Make Sure Your Repository Is Not Empty
This is a lesser-known issue.
If your GitHub repository is empty, Codex may fail during setup.
To fix:
Commit at least one file to the repository
Push it to GitHub
Then try reconnecting Codex
Codex does not clearly state this requirement during onboarding.
Fix 6: Try a Different Browser
If authentication keeps redirecting:
Try Chrome if using Firefox
Try Firefox if using Chrome
Disable browser extensions temporarily
Avoid ad blockers during setup
Some extensions interfere with OAuth callbacks.
Why This Happens
The most likely causes are:
OAuth token mismatch
GitHub App installation tied to wrong organization
Browser caching stale auth data
Connector session not refreshing
Incomplete GitHub permissions
When the handshake fails, GitHub keeps returning you to the configuration page because it thinks setup is incomplete.
If You See “Error with Connector Connection”
This error typically appears before authentication completes.
Possible reasons:
GitHub already partially authorized
Conflicting installations
Expired token
Organization permission mismatch
In most cases, a full revoke + reconnect resolves it.
When to Escalate
If none of the above works:
Confirm your GitHub account is verified
Ensure you have admin permissions on repositories
Check if organization policies restrict third-party apps
Contact OpenAI support
Summary of Working Fix
The most reliable solution is:
Revoke OpenAI/Codex from GitHub
Remove GitHub connector from ChatGPT
Clear cookies
Log out of both services
Reconnect via ChatGPT → Settings → Connectors
Ensure repository contains at least one committed file
After this, Codex should recognize your repositories properly.
Newsletter Updates
Enter your email address below and subscribe to our newsletter