For AI agents: the complete documentation index is available at https://aioproxy.dev/llms.txt, the full documentation bundle is available at https://aioproxy.dev/llms-full.txt, and this page is available as Markdown at https://aioproxy.dev/guide/providers/api/anthropic.md.
  • English
  • Anthropic Messages Protocol (anthropic)

    The anthropic protocol connects to Anthropic's native /v1/messages endpoint.

    config.jsonc
    {
      "providers": {
        "anthropic-direct": {
          "kind": "api",
          "protocol": "anthropic",
          "baseURL": "https://api.anthropic.com/v1",
          "apiKey": "{{env.ANTHROPIC_API_KEY}}",
          "models": ["claude-3-7-sonnet-20250219", "claude-3-5-haiku-20241022"],
        },
      },
    }

    Features

    • Native support for Anthropic headers (anthropic-version, anthropic-beta).
    • Seamless translation for tools, thought blocks, and cache markers (cache_control).