Hello all, I have been messing around a little with Cursor free tier and just upgraded to Cursor pro. I am wanting to connect Cursor to Github, my issue is that I first went to connect it to an old Github but cancelled the integration part way through so that I could make a new Github solely for my AI assisted coding projects. However, now the integration keeps signing in automatically to the original Github account, even after I sign out of that account and into the new one. Even more weird, it does not show the connection on the old Github account when it shows it is connected in Cursor. Can anyone help me out here?
Hey, thanks for the report. This isn’t a GitHub.com issue. Cursor is keeping the old account’s OAuth token locally, so signing out in the browser won’t affect the integration. You need to sign out inside Cursor.
Try this:
- Open the Command Palette
Cmd+Shift+PorCtrl+Shift+P, type Sign Out, then sign out of the old GitHub account. - Sign in again with the new account.
- Restart Cursor after switching accounts. Sometimes it keeps showing old data until you restart.
If it still pulls the old account, revoke the token on GitHub: github.com > Settings > Applications > Authorized OAuth Apps > find Cursor > click Revoke. After that, the next sign-in in Cursor should be clean.
The fact that the old GitHub account doesn’t show the connection also fits. The OAuth flow likely stopped halfway, the local token got saved, but the GitHub App install didn’t finish.
A couple clarifications:
- Cursor Settings > General > Logout signs you out of your Cursor account entirely, not just GitHub. To switch GitHub accounts, use Sign Out from the Command Palette.
- If you also mean the dashboard integration at cursor.com > Settings > Integrations for Cloud Agents, click Disconnect GitHub there, wait a couple minutes, then connect the new account.
Let me know if the old account still shows up after revoke and a restart.