Sourcegraph Cody Sign-In Error: Authentication Failed or Signed Out on Restart

Share
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. 1. Reset stored credentials

    1. Close the editor
    2. On macOS delete the vscodesourcegraph.cody-ai entry in Keychain Access
    3. Reopen and sign in; for repeated sign-outs see VS Code's keychain troubleshooting docs
    Did this fix it?
  2. 2. Sign-in hangs on Linux or Windows

    1. Temporary workaround from Sourcegraph's docs: set NODE_TLS_REJECT_UNAUTHORIZED to 0 and restart VS Code
    2. This disables certificate checks, so use it only briefly and ask your admin first
    Did this fix it?
  3. 3. Check the account

    1. Sign out and back in with the correct account or instance URL
    2. 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 us
Fixed it? Share this guide

The same problem in other apps

All login, account & activation guides →

Other Sourcegraph errors

All 11 Sourcegraph errors and fixes →