How to logout from copilot? #161649
Select Topic AreaQuestion Copilot Feature AreaVS Code BodyI am trying to change the account associated to my GitHub Copilot and replace it with a different one. I can't seem to find a logout in the command panel or in the settings icon. How should I logout? |
Replies: 7 comments 3 replies
How to Log Out of GitHub Copilot in VS CodeTo switch your GitHub Copilot account in VS Code, follow these steps:
|
|
For me it was:
|
|
Yes, it is actually rather tricky and not that easy to find in Visual Studio Code. It does not work by logging out from Copilot per se but by signing out from the GitHub account within VS Code, and then you would be able to log into another account automatically. This is how it is supposed to be done: Use the Command Palette (Press Ctrl+Shift+P on your keyboard) By following this step, you would be logged out of your existing GitHub account and after that, you will have to sign in again with the new account, which Copilot will then attach to. As an alternative: Go to the Accounts button (bottom left or top right depending on the layout) Or, in case nothing else helps: Logout of VS code completely |
|
Hi 👋 This can be a bit confusing because GitHub Copilot doesn’t have a separate logout — it’s tied directly to your GitHub account in VS Code. ✅ How to logout from Copilot (VS Code) Try: Developer: Reload Window |
|
For anyone running into this same issue and tried the above with no success. Here's how I solved it: Via extensions panel
Via command palette
|


I think I figured it out. Click on the (screenshot ->) , in that you should be able to see the (screenshot below)
Delete the account you don't want, the one with
(github), I was also using GitKraken attached to my GitHub account, so ignore the second one. Logging out from the copilot chat does nothing because it is linked to the GitHub account.