Error: Claude Sonnet - 401
Error Details
Model: Claude Sonnet Provider: anthropic Status Code: 401
Error Output
{"type":"authentication_error","message":"invalid x-api-key"}
Additional Context Please add any additional context about the error here
Related Issues
Similar 401 Authentication Errors:
- #9358 - Error: GPT-5 - 401
- #9177 - Error: GPT-5 - 401
- #9378 - Deepseek 401 Authentication Fails
- #9316 - Error: Codestral - 401
Claude/Anthropic Authentication Issues:
- #4383 - Claude
- #4243 - HTTP 401 Unauthorized from https://api.anthropic.com/v1/messages (x-api-key header required)
- #9009 - Bug: Anthropic provider fails with Azure AI Foundry endpoints (incorrect auth header) [CLOSED]
General API Key Issues:
- #7710 - [Bug] API Key error (400/401) despite valid key, cannot resolve ${env:...} [CLOSED]
- #6191 - OpenRouter and Groq API keys return 401 despite working in curl [CLOSED]
- #5346 - It is NOT an error with my API key [CLOSED]
Hello, as far as I've seen this error only occurs when the api key is actually invalid. Could you verify it is still happening and share config?
Hello, this error usually means the Anthropic API key being used is not valid. You can verify your API key at https://console.anthropic.com/settings/keys and update your Continue configuration.
We receive a large volume of these issues, so closing for now. If you believe this is a bug on Continue's side (e.g. a valid key not being passed correctly), please open a new issue with more details about your setup.