To use Codex here, create a Codex account and connect to github

Open 💬 24 comments Opened Feb 16, 2026 by nicoloceneda

What issue are you seeing?

When I invoke @codex to review a PR I get this message:

To use Codex here, create a Codex account and connect to github.

I have enabled the connector:

<img width="224" height="179" alt="Image" src="https://github.com/user-attachments/assets/410bc5eb-4c56-46c2-97d5-6e4351f34936" />

and I verified that it is active on GitHub:

<img width="953" height="343" alt="Image" src="https://github.com/user-attachments/assets/b9a3d016-d2b9-4c66-867f-e3a7f900f2f9" />

I have also made sure that it was active on all repos:

<img width="965" height="656" alt="Image" src="https://github.com/user-attachments/assets/e5b0e85e-366b-4300-8b6c-e2ba47d54ddc" />

It was working fine one month ago.

What steps can reproduce the bug?

Enable codex github connector and ask to review a PR.

What is the expected behavior?

To review the PR.

Additional information

I have tried disconnecting and reconnecting but it does not work.

View original on GitHub ↗

24 Comments

EDM115 · 6 months ago

try to disconnect & reconnect the GitHub connector in chatgpt.com, not in codex. This ended up working for me

llj0824 · 5 months ago

had the same issue, reconnecting did work for me however.

Just a sanity check, check if repo exists in the selection?
<img width="1015" height="306" alt="Image" src="https://github.com/user-attachments/assets/f069ba30-bc96-417c-a0b3-52f45ab6a865" />

felipelincoln · 5 months ago

I have tried everything, even a new ChatGPT account, nothing works

alexander-schneider · 5 months ago

Also not working for me :/ tried everything

debugtheworldbot · 5 months ago

same here

thinkasany · 5 months ago

same here

toddfraser · 5 months ago

I just managed to get this to work! I was disconnecting and reconnecting everything over and over with no avail. Then I saw a sync setting I've never seen before. I enabled it for my repo and now @codex review works 🤷‍♂️

<img width="702" height="488" alt="Image" src="https://github.com/user-attachments/assets/27bb3311-6a76-4f73-833b-fcd8fd5b9190" />

OrF8 · 4 months ago
I just managed to get this to work! I was disconnecting and reconnecting everything over and over with no avail. Then I saw a sync setting I've never seen before. I enabled it for my repo and now @codex review works 🤷‍♂️ <img alt="Image" width="702" height="488" src="https://private-user-images.githubusercontent.com/311078/570630685-27bb3311-6a76-4f73-833b-fcd8fd5b9190.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU2MDMxNzIsIm5iZiI6MTc3NTYwMjg3MiwicGF0aCI6Ii8zMTEwNzgvNTcwNjMwNjg1LTI3YmIzMzExLTZhNzYtNGY3My04MzNiLWZjZDhmZDViOTE5MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwN1QyMzAxMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMDhkZTI4N2UxNWVjYWUyMzQxMTdjY2QzMWNiNzAzMzY3MWZmNGVkYzI5YjFkZjE5YWJhYTk1YWEyZGZhMGE4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.FHUoS4mEruwtuR4hSmbCD6UlzlONbJ7ggb1cLinO_UI">

Thanks for this tip! Helped me a lot!

AnyTng · 4 months ago

having the same issue here :(

simonsickle · 4 months ago

also experiencing this same issue, no matter what I do I can not get github re-paired with code reviews. the local app and web apps can pull from github and use it but tagging codex will result in no code review. Even security reviews work...

t4sj4n · 4 months ago

I managed to fix it. Disconnect via Codex (Cloud) in ChatGPT, not Github App in ChatGPT und reconnect again:

<img width="498" height="360" alt="Image" src="https://github.com/user-attachments/assets/3ed8a6de-dcb1-4cf7-8e6f-48dbf4ed92ad" />

makoMakoGo · 3 months ago

the same , tried all of the above methods still failed

I can reproduce this on my own repository, not just collaborator-owned repositories.

Repo: makoMakoGo/fish-claude
GitHub actor: makoMakoGo
Repo owner: makoMakoGo
My permission: admin and owner
The repository is visible to the ChatGPT GitHub connector and indexed.
The Codex connector bot receives the PR comment and replies, so GitHub webhooks and bot permissions are working.

When I comment:
@codex review

chatgpt-codex-connector[bot] replies:
"To use Codex here, create a Codex account and connect to github."

This means the failure is not repository permission or GitHub App installation. It appears to be an OpenAI Codex code review auth / entitlement / GitHub identity mapping bug, similar to openai/codex#11881.

randyy179 · 3 months ago

I am seeing the same issue.

GitHub username: randyy179
ChatGPT plan: Plus
Repository type: private repo under my personal GitHub account
Trigger used in PR comment: @codex review

What works:

  • ChatGPT Codex Connector is installed on my personal GitHub account, Shanren / randyy179.
  • The GitHub App has access to the target private repository.
  • Codex Web can see the repository.
  • I created a Codex environment for randyy179/kronos-research-private.
  • Codex → Settings → Code review shows randyy179/kronos-research-private.
  • Code review is enabled for the repository.
  • A Codex Web task can run against the repo/branch.

What fails:

  • In the GitHub PR, commenting @codex review still returns:

“To use Codex here, create a Codex account and connect to github.”

I have already tried:

  • disconnecting and reconnecting GitHub in Codex
  • reinstalling / reconfiguring the GitHub App
  • limiting repository access to the specific repo
  • creating the Codex environment
  • explicitly enabling code review for the repository

This looks like the GitHub comment trigger is not mapping my GitHub commenter identity to my connected Codex account, even though Codex Web is connected and the repo is enabled.

dang0705 · 3 months ago

same here, I've tried everything and spent almost whole afternoon, but still no work

habibitcoin · 3 months ago

same issue, tried everything in this thread, no-go for the whole week

digitaljc · 2 months ago

On ChatGPT Plus, Codex code review fails on every @codex review with: “To use Codex here, create a Codex account and connect to github” — even though the GitHub connection shows as connected.

Background: the connector was first set up under a different account whose workspace later deactivated. The error started as “This workspace is deactivated. Select an active workspace.”

After switching to my active account, it changed to the “connect to GitHub” message above and persists.

Tried, all self-serve: disconnect/reconnect in Codex; revoke the OAuth grant (Authorized GitHub Apps) + reconnect; fully uninstall the GitHub App + reconnect granting all repos; waited between attempts. The connector replies in ~10s but only ever returns the “connect to GitHub” message above — never a review.

Looks like a server-side auth desync tied to the old (deactivated) account’s binding.

Has anyone discovered another way to clear this without waiting on support? Any way to fully reset the connector’s account binding?

Also discussion 9277

alexx-ftw · 2 months ago

Same thing happening to me. Tried all the self-service methods

juliangav · 1 month ago
Looks like a server-side auth desync tied to the old (deactivated) account’s binding.

Yup this seems to be it. Same issue on my end after trying everything else.

AlexVPopov · 1 month ago

Guys, I'm in the same situation. Here's my story:

  • initially had Codex review working on my personal account;
  • then created a business workspace and added my personal account to that workspace;
  • then I deactivated the workspace and started seeing "You have reached your Codex usage limits for code reviews." despite being on a pro personal account. More info here: https://github.com/openai/codex/discussions/8503
  • then I reactivated the business workspace, transferred it to another owner and left it with my personal account;
  • uninstalled the Codex connector from everywhere (personal GitHub account and organization);
  • tried to reinstall it, but then starting seeing a OAuth state invalid or not found error. The odd thing is, that after a page refresh, the connector does appear installed.
  • now, when requesting a review, I get the To use Codex here, create a Codex account and connect to github. error...

I don't know when OpenAI will fix this, really.

ppsecuk · 1 month ago

same issue, tried everything, nothing works

greenheadHQ · 26 days ago

Same symptom here, with a fairly exhaustive client-side elimination — sharing in case the binding details help the team narrow it down.

Setup: personal ChatGPT Pro account, GitHub personal account greenheadHQ, public repo greenheadHQ/nixos-config. The PR author, the @codex review commenter, and the GitHub account connected to the Codex workspace are all the same account. No business workspace was ever created on this ChatGPT account (so this looks like a different variant from the deactivated-workspace stories above).

Symptom: the bot reacts fast (~30s) to both PR-open events and @codex review mentions, but only ever posts "To use Codex here, create a Codex account and connect to github." — 6 times across two PRs.

Everything I verified/enabled, in order, with no change in behavior:

  1. Review trigger switched from "Smart trigger (experimental)" to "On every PR" (per-repo setting shows "Review my PRs", last-updated timestamp confirms saves work)
  2. Code review master switch ("Enable for me" on the Codex cloud → Code review tab) — was OFF, turned ON
  3. Codex cloud environment for the repo — did not exist, created it (defaults)
  4. GitHub App ChatGPT Codex Connector installed (6 months ago), repository access = All repositories, permissions look normal
  5. Disconnected and reconnected the GitHub connector (fresh OAuth grant; settings survived)
  6. Ran a cloud task against the same repo/environment — works perfectly (clones the repo, runs read-only commands, answers in ~1 min)
  7. Retried mentions after each step, waited for propagation, and also tried close/reopen on the PR (reopen does not count as an open event, FWIW)

So the environment/clone/task pipeline is fully healthy for this exact repo and account; only the GitHub review path fails to resolve the account binding and falls back to the onboarding reply. This smells like a server-side mapping issue between the GitHub identity and the Codex workspace that none of the user-facing knobs can reset.

Happy to provide timestamps or run further experiments if useful.

fijimunkii · 16 days ago

Same issue here. To add, I performed a deep cache purge for github.com and chatgpt.com/openai.com, fully revoked the app permissions on both platforms, re-installed the GitHub App directly, and re-authenticated. The symptom persists despite the repository showing as healthy and mapped on the ChatGPT dashboard.

mramezani · 11 days ago

What worked for me after a lot of frustration was to explicitly set the code review settings for each repo instead of the default "Follow personal" (at https://chatgpt.com/codex/cloud/settings/code-review)
<img width="858" height="215" alt="Image" src="https://github.com/user-attachments/assets/e2be5486-4587-48ad-8649-ecc6f0c54115" />

AlexVPopov · 9 days ago

Since yesterday, without doing any changes on my side whatsoever, Codex suddenly starting reviewing my PRs. I hope this starts working for everyone.