Skip to Content
kosemdocs
GuidesLLM GatewayProviders

Anthropic

Add Anthropic's Claude API as a provider, and call Claude models such as claude-opus-5-5 through the LLM Gateway.

Connect Anthropic's Claude API using your API key to serve Claude models such as claude-opus-5-5. Adding a provider requires Owner or LLM Gateway Admin on the organization, or on a project for a project-scoped provider.

Add Anthropic

  1. Create an API key in Anthropic's console.
  2. In your organization, click LLM Gateway, then Providers, then Add a provider, then Anthropic under Model providers.
  3. Paste the key into API key, select which projects can create models with this provider, click Test and click Add provider.

See Add a provider for adding a project provider, sharing and key rotation.

What kosem uses

  • API: Anthropic's Messages at https://api.anthropic.com, and its token counting. kosem translates calls with OpenAI's Chat Completions or Responses to it.
  • Type, for the API: providerTypes/anthropic.
  • Settings: Strict tools is on by default so agents send tools as strict and Claude calls only defined tools by their exact names.
  • Models to start with: claude-opus-5-5, claude-sonnet-5-5 and claude-haiku-5-5.
  • Prices: Anthropic's list prices, for usage and spend limits.

Calls kosem translates

Anthropic's API requires an output token limit on every request. When a call through OpenAI's SDK omits one, kosem sends the model's maximum (up to 32,000 tokens, or 16,384 for unrecognized models), and Claude's reasoning counts toward it. Set max_tokens or max_output_tokens to specify a different limit.

On this page