> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aireserve.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Anthropic SDK

> Point the official anthropic package at the gateway — host root, no /v1 — and reach every gateway model.

Keep the official `anthropic` package: change the base URL to the **host root without
`/v1`** (the SDK appends `/v1/messages` itself), use your AI Reserve API key, and every
gateway model — not just Claude — answers the same call.

<CodeGroup>
  ```python Python theme={"dark"}
  import os
  from anthropic import Anthropic

  client = Anthropic(
      base_url="https://api.aireserve.com",  # host root — NO /v1
      api_key=os.environ["AUDACITY_API_KEY"],
  )

  # Works with Claude models — and with GPT model IDs too (bridged).
  res = client.messages.create(
      model="claude-haiku-4-5-20251001",
      max_tokens=256,
      messages=[{"role": "user", "content": "hello"}],
  )
  print(res.content[0].text)
  ```

  ```typescript TypeScript theme={"dark"}
  import Anthropic from "@anthropic-ai/sdk";

  const client = new Anthropic({
    baseURL: "https://api.aireserve.com", // host root — NO /v1
    apiKey: process.env.AUDACITY_API_KEY,
  });

  // Works with Claude models — and with GPT model IDs too (bridged).
  const res = await client.messages.create({
    model: "claude-haiku-4-5-20251001",
    max_tokens: 256,
    messages: [{ role: "user", content: "hello" }],
  });
  ```
</CodeGroup>

Migrating an existing Anthropic codebase? The [Migrating from Anthropic](/migrate/from-anthropic)
guide covers the full concept mapping. Using Claude Code or the Claude Agent SDK instead?
They are configured entirely through environment variables — see the
[Claude Code recipe](/connect/claude-code).
