Anthropic
Adapter key anthropic. Credentials, transport, and reasoning kinds.
{ "publicModel": "claude", "adapterKey": "anthropic", "upstreamModel": "claude-sonnet-5", "credentials": { "apiKey": "sk-ant-..." } }- Credentials:
apiKey.version(theanthropic-versionheader) defaults to2023-06-01and rarely needs overriding. - Default transport: Messages API for text.
- Reasoning: either
anthropic_adaptive(the model picks its own depth; the request only carries anoutput_config.effortlabel) oranthropic_budget(thinking: { budget_tokens }, with a provider-side default budget per canonical level if the catalog doesn't override it) — see Reasoning. Models that expose bothxhighandmaxpreserve them as distinct tiers; models such as Opus/Sonnet 4.6 declaremaxwithout inventingxhighsupport. - Claude Opus 5 enables adaptive thinking upstream when
thinkingis omitted. The adapter sendsthinking: { "type": "disabled" }when canonical reasoning resolves tonone, preserving the gateway's provider-independent off semantics. claude-opus-5-fastandclaude-opus-4-8-fastare gateway aliases for Anthropic's research-preview fast mode. The adapter selects the base model, sendsspeed: "fast", and adds the required beta header. Anthropic account access is still required.- Native
/v1/messagesrequests pass through with minimal translation;/v1/chat/completionsand/v1/responsesrequests are rendered onto the same canonical reasoning/tool/format machinery as every other provider. - Catalog:
src/adapters/anthropic/catalog.json.