Anthropic
Register Anthropic as an LLM provider on SonarQube Server 2026.5, using your own Anthropic API key.
Use the Anthropic provider type to reach Anthropic's own API directly, authenticated with your Anthropic API key.
To select this provider and choose a model for an AI agent, see Selecting a provider and model for an agent; for the steps that apply to every provider type, see LLM providers.
Prerequisites
An Anthropic API key with access to the models you want to use.
Fields
API key
Yes
Your Anthropic API key.
SonarQube Server already knows Anthropic's endpoint (https://api.anthropic.com/v1) and sends the required anthropic-version header for you, so neither is exposed as a field.
To reach Anthropic through a gateway or proxy instead of its own API, register a Custom provider instead; see Custom. If that gateway forwards to Anthropic's own endpoint rather than translating the request itself, add the anthropic-version header yourself under Custom headers; see Authenticating with a header.
What happens when you save
SonarQube Server tests the connection when you save, the same as for Custom and Azure AI Foundry. If the test fails, SonarQube Server does not add the provider, and the form reports the problem.
Entering the model identifier
Find the model in Anthropic's model catalog.
Copy the identifier exactly as Anthropic names it, for example
claude-opus-4-6.Go to the agent's page under Administration > Configuration > AI capabilities, paste the identifier into the model field, and select Save.
If adding the provider fails, see Troubleshooting.
Last updated
Was this helpful?

