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

# Integrations Overview

> Connect the AI Stats Gateway to popular tools and runtimes.

Most tools can connect to the Gateway by pointing their base URL to the AI Stats API and using an AI Stats API key. The guides below cover common integration patterns and caveats.

## General setup checklist

* Use your AI Stats API key as a Bearer token.
* Set the base URL to `https://api.phaseo.app/v1`.
* Pass model ids exactly as listed in the [Models endpoint](../../api-reference/endpoint/models.mdx).
* Use `/messages` for Anthropic-compatible clients and `/chat/completions` or `/responses` for OpenAI-compatible clients.

## Integration guides

<Columns cols={2}>
  <Card title="AI SDK" icon="bolt" href="./ai-sdk.mdx">
    Use the AI SDK provider wrapper for AI Stats.
  </Card>

  <Card title="Claude Code" icon="terminal" href="./claude-code.mdx">
    Route Claude-compatible workflows through the Gateway.
  </Card>

  <Card title="Codex" icon="code" href="./codex.mdx">
    Connect coding agents to the Gateway.
  </Card>

  <Card title="OpenCode" icon="git-branch" href="./opencode.mdx">
    Use OpenCode with AI Stats routing and analytics.
  </Card>

  <Card title="Examples" icon="play" href="../examples.mdx">
    Ready-to-run request examples and payloads.
  </Card>
</Columns>
