Sourcegraph Cody Sign-In Error: Authentication Failed or Signed Out on Restart
Workaround available VS Code, JetBrains Updated November 14, 2026Based on 2 user reportsHow we research
Quick answer
Sign-in failures are usually a keychain problem, a TLS or SSL block on Linux and Windows, or being logged in to the wrong account.
Most likely fix: Reset stored credentials
How to fix it
Try these in order — the most common fix is first.
1. Reset stored credentials
- Close the editor
- On macOS delete the vscodesourcegraph.cody-ai entry in Keychain Access
- Reopen and sign in; for repeated sign-outs see VS Code's keychain troubleshooting docs
Did this fix it?2. Sign-in hangs on Linux or Windows
- Temporary workaround from Sourcegraph's docs: set NODE_TLS_REJECT_UNAUTHORIZED to 0 and restart VS Code
- This disables certificate checks, so use it only briefly and ask your admin first
Did this fix it?3. Check the account
- Sign out and back in with the correct account or instance URL
- Confirm Cody is enabled for your account and your email is verified
Did this fix it?
Symptoms
Authentication failed, sign-in hangs, a 403 or upgrade prompt, or Cody signs you out every time the editor restarts.
Why it happens
- Keychain issue in VS Code
- TLS certificate problems behind corporate proxies
- Wrong account (free vs company instance)
- Account not enabled for Cody or email not verified
This guide also covers
- sourcegraph cody authentication failed
- cody sign in not working
- cody signed out every restart
Still not working?
If Sourcegraph keeps failing, you're not alone. See every Sourcegraph problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
All login, account & activation guides →
GitHub Copilot Sign-In Loop or Authorization Failed (GitHub Copilot)
Tabnine Sign-In Timed Out After 5 Minutes (Tabnine)
Other Sourcegraph errors
- Sourcegraph Cody Free and Pro Discontinued: What Happened and What to Do
- Sourcegraph Cody Not Working in VS Code
- Sourcegraph Cody Not Working in JetBrains (IntelliJ, Android Studio)
- Sourcegraph Cody Rate Limit or Usage Limit Reached
- Sourcegraph Search Not Finding Results
- Sourcegraph Repository Not Cloning or Not Updating
- Sourcegraph Search Slow or Timing Out (Zoekt Crash Loop)
- Sourcegraph Upgrade Failed: Dirty Database Migration Error