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

# Integrations

> Connect Phaseo to popular SDKs, frameworks, agents, and observability tools.

Most integrations work by pointing an OpenAI-compatible or Anthropic-compatible client at Phaseo and using A Phaseo API key. Start with the guide for the tool you already use.

## Base URLs

| Client style                 | Base URL                   |
| ---------------------------- | -------------------------- |
| OpenAI-compatible clients    | `https://api.phaseo.ai/v1` |
| Anthropic-compatible clients | `https://api.phaseo.ai`    |

Use model ids from the [Models endpoint](../../api-reference/endpoint/models.mdx). For new OpenAI-style apps, prefer [Responses](../../api-reference/endpoint/responses.mdx). For older libraries, [Chat Completions](../../api-reference/endpoint/chat-completions.mdx) is usually the safest path.

## SDKs and direct clients

<Columns cols={2}>
  <Card title="OpenAI SDK" icon="code" href="./openai-sdk">
    Use official OpenAI clients with the Phaseo base URL.
  </Card>

  <Card title="Anthropic SDK" icon="message-square" href="./anthropic-sdk">
    Use Anthropic-compatible clients through `/v1/messages`.
  </Card>

  <Card title="AI SDK" icon="bolt" href="./ai-sdk">
    Use the first-party Phaseo provider for the Vercel AI SDK.
  </Card>

  <Card title="LiteLLM" icon="route" href="./litellm">
    Route LiteLLM traffic through Phaseo or expose Phaseo behind a LiteLLM proxy.
  </Card>
</Columns>

## App and agent frameworks

<Columns cols={2}>
  <Card title="LangChain" icon="link" href="./langchain">
    Use LangChain Python with `ChatOpenAI` and the Phaseo base URL.
  </Card>

  <Card title="LlamaIndex" icon="database" href="./llamaindex">
    Use Phaseo for RAG and indexing workflows.
  </Card>

  <Card title="PydanticAI" icon="braces" href="./pydanticai">
    Build typed Python agents against Phaseo.
  </Card>

  <Card title="Mastra" icon="workflow" href="./mastra">
    Use Phaseo inside Mastra agents and workflows.
  </Card>

  <Card title="TanStack AI" icon="layers" href="./tanstack-ai">
    Connect TanStack AI's OpenAI-compatible adapter.
  </Card>

  <Card title="Effect AI SDK" icon="function-square" href="./effect-ai">
    Use Phaseo from Effect TypeScript applications.
  </Card>
</Columns>

## Coding assistants and observability

<Columns cols={2}>
  <Card title="Coding Assistants" icon="terminal" href="./coding-assistants">
    Add Phaseo as a model provider in Cursor, VS Code, Continue, Aider, Cline, Roo Code, Kilo Code, and related tools.
  </Card>

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

  <Card title="Codex" icon="code" href="./codex">
    Use Phaseo as a Codex provider.
  </Card>

  <Card title="OpenCode" icon="git-branch" href="./opencode">
    Configure OpenCode with a custom Phaseo provider.
  </Card>

  <Card title="Observability" icon="activity" href="./observability">
    Send Phaseo traffic through Langfuse, LangSmith, OpenTelemetry, or similar tooling.
  </Card>

  <Card title="Docs MCP" icon="plug-zap" href="./docs-mcp">
    Add live Phaseo documentation to coding agents and assistants.
  </Card>
</Columns>

## Useful defaults

* Set `PHASEO_API_KEY` once and map it to the environment variable expected by the client.
* Keep the model id unchanged, for example `openai/gpt-5-nano`.
* Use `https://api.phaseo.ai/v1` for OpenAI-compatible libraries unless the tool explicitly asks for the root host.
* Use `https://api.phaseo.ai` for Anthropic-compatible SDKs and tools that append `/v1/messages`.
* Test streaming and tool calling in staging before moving agent traffic over.
