How do I reset the Claude Code VS Code extension to use my Claude subscription instead of a deleted API key's deployment?
I use the Claude Code extension in Visual Studio Code in Windows 11 25H2 Pro x64.
I used to use it with an API key. I now switched to my Claude account. However, Claude still tries to connect to my old deployment name associated with my now deleted API key:

How can I reinitialize the Claude Code extension so that it stop trying to my old deployment name associated with my now deleted API key and instead really use my Claude account (i.e., my Claude subscription)?
Top Answer/Comment:
The issue was some environment variables were pointing to old Opus model:

(it shows HAIKU/SONNET but same for Opus)
PowerShell command to list such environment variables:
Get-ChildItem Env: | Where-Object Name -match '^(ANTHROPIC|CLAUDE_CODE|AWS)' | Select Name
After deleting the environment variables, it goes back to normal:

상단 광고의 [X] 버튼을 누르면 내용이 보입니다