> ## 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.

# Connect your tool

> Point the tool you already use — Claude Code, Codex, Cursor, or any OpenAI/Anthropic SDK — at the AI Reserve gateway.

The fastest way to see the gateway work: point the agent harness you already run at
AI Reserve. Both take your `aireserve_api_…` key with no code changes —
every request they make is metered and billed through your organization's wallet.

Keep your existing code. The gateway speaks the provider-native wire formats directly, so
**stock OpenAI and Anthropic SDKs and framework providers work unmodified**
(and so do the Claude Code and Codex harnesses above) — change the
base URL, use your AI Reserve API key, keep everything else. Cross-provider calls are
bridged for you:
Claude models answer OpenAI-SDK calls and GPT models answer Anthropic-SDK calls, all
metered against the same key. (Teams on AWS Bedrock have an equally seamless path — see
[Migrating from Bedrock](/migrate/from-bedrock) and the
[official AI Reserve SDKs](/getting-started/quickstart).) Runnable versions of every snippet
in these guides live in `examples/gateway/` in the repository.

<Note>
  **The one gotcha — base URL suffix.** OpenAI-flavored clients expect the
  `/v1` suffix on the base URL (they append `/chat/completions`).
  Anthropic-flavored clients expect the **host root without `/v1`**
  (they append `/v1/messages` themselves). Each snippet shows the right form.
</Note>

<Columns cols={2}>
  <Card title="Claude Code" icon="terminal" href="/connect/claude-code">
    Terminal harness on your key — environment variables only, plus the full 1M-token context.
  </Card>

  <Card title="Codex" icon="square-terminal" href="/connect/codex">
    Codex SDK and CLI over the OpenAI Responses format.
  </Card>

  <Card title="Cursor" icon="mouse-pointer-2" href="/connect/cursor">
    Run the entire IDE — chat, agent mode, inline edits — through the gateway.
  </Card>

  <Card title="OpenAI SDK" icon="code" href="/connect/openai-sdk">
    The official `openai` package, Vercel AI SDK, and any OpenAI-compatible framework.
  </Card>

  <Card title="Anthropic SDK" icon="code-xml" href="/connect/anthropic-sdk">
    The official `anthropic` package with a base-URL swap.
  </Card>

  <Card title="AI Reserve Code CLI" icon="square-chevron-right" href="/connect/code-cli">
    A local, Claude-Code-style coding agent whose brain is your API key.
  </Card>

  <Card title="AWS SDK (boto3)" icon="cloud" href="/connect/aws-sdk">
    Unmodified `bedrock-runtime` clients — override the endpoint and keep your code.
  </Card>

  <Card title="AI Reserve SDKs" icon="package" href="/getting-started/quickstart">
    Five official SDKs — Python, TypeScript, Go, Java, Rust — with the exact Converse surface.
  </Card>
</Columns>

Prefer to stay on one dependency? The [official AI Reserve SDKs
(Python & TypeScript) expose these same two wire formats natively](/api-reference/sdk-wire-formats) —
`client.chat.completions.create(...)` and
`client.messages.create(...)` on the AI Reserve client.

## Model discovery

`GET /v1/models` returns the OpenAI-shaped model list, so SDK and framework
discovery calls (`client.models.list()`, LangChain provider probes) work out of
the box. Anthropic-native clients can also call
`POST /v1/messages/count_tokens` for free token counting.

## Guides for end users

Not writing code? These walkthroughs set up desktop apps on your organization's key.

<Columns cols={2}>
  <Card title="Getting Started with Claude Desktop" icon="monitor" href="https://aireserve.com/developers/claude-desktop">
    Install and sign in to Claude Desktop through AI Reserve.
  </Card>

  <Card title="Getting Started with ChatGPT Work" icon="monitor-smartphone" href="https://aireserve.com/developers/chatgpt-work">
    Set up ChatGPT with your organization's workspace.
  </Card>
</Columns>
