[BUG] Unable to use Claude Code in VS code using API key

Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Feb 8, 2026 · closed Feb 8, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When I try to login to Claude code in VS code via an API key, it is asking for an authorization in the browser. After successfully authorizing the connection, in the chat pannel, the screen goes blank showing Signed in to the vs code. But, when i reload the developer window it is asking foir login again. This happens repeatedly

What Should Happen?

It should open a chat window with my API key logged in

<img width="1152" height="1355" alt="Image" src="https://github.com/user-attachments/assets/4c739163-ac3c-4536-8a25-4b4cf1a6870d" />

Error Messages/Logs

No error. It just goes blank saying signed in

Steps to Reproduce

Open VS code.
Install Claude for VS code extension
Sign in with API key
Authorize in the browser
Then you see the error

<img width="1152" height="1355" alt="Image" src="https://github.com/user-attachments/assets/c1a309ec-461b-4562-866a-1805d4169d0d" />

screenshot I attached

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

vs code extension

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Please help me to use claude code in vs code

View original on GitHub ↗

4 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/14023
  2. https://github.com/anthropics/claude-code/issues/12204
  3. https://github.com/anthropics/claude-code/issues/9364

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

ghost · 8 months ago

it worked. i asked claude on how to esolve it. it helped itself lol

CyanideX · 8 months ago

Mine is just hanging on the grey screen after entering the 6 digit key. I've reinstalled VSC and all extensions to no avail.

github-actions[bot] · 8 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.