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

# Integrations

> Choose a RedPill integration by what you want to build or run.

Start with the job you want to do. Most integrations need a RedPill API key, the correct protocol
base URL, and an exact model ID from the live catalog.

## Choose your path

<CardGroup cols={2}>
  <Card title="Pi" icon="terminal" href="/guides/integrations/coding-tools/pi">
    Native provider with automatic ACI verification.
  </Card>

  <Card title="OpenCode" icon="code" href="/guides/integrations/coding-tools/opencode">
    Native plugin with `/connect`, `/models`, and automatic ACI verification.
  </Card>

  <Card title="Other coding agents" icon="terminal" href="/guides/integrations/coding-agents">
    Configure Claude Code, Codex CLI, or Cline through their official provider paths.
  </Card>

  <Card title="Run a long-lived agent" icon="robot" href="/guides/integrations/agent-runtimes">
    Use RedPill as the main model provider for OpenClaw or Hermes.
  </Card>

  <Card title="Build an agent workflow" icon="diagram-project" href="/guides/integrations/agent-frameworks">
    Use LangChain, CrewAI, PydanticAI, or the OpenAI Agents SDK.
  </Card>

  <Card title="Build a web app" icon="browser" href="/guides/integrations/vercel-ai-sdk">
    Stream model output in a TypeScript or React application.
  </Card>

  <Card title="Use a desktop app" icon="desktop" href="/guides/integrations/cherry-studio">
    Chat with RedPill models in Cherry Studio.
  </Card>

  <Card title="Migrate an app" icon="arrow-right-arrow-left" href="/guides/migration-from-openai">
    Switch an OpenAI or OpenRouter integration to RedPill.
  </Card>
</CardGroup>

## Choose the protocol

| Client or task                     | Protocol         | RedPill endpoint                             | Guide                                                 |
| ---------------------------------- | ---------------- | -------------------------------------------- | ----------------------------------------------------- |
| Most OpenAI clients and frameworks | Chat Completions | `https://api.redpill.ai/v1/chat/completions` | [OpenAI SDK](/guides/integrations/openai-sdk)         |
| Codex CLI and Responses clients    | Responses        | `https://api.redpill.ai/v1/responses`        | [Coding agents](/guides/integrations/coding-agents)   |
| Claude Code and Anthropic clients  | Messages         | `https://api.redpill.ai/v1/messages`         | [Anthropic SDK](/guides/integrations/anthropic-sdk)   |
| OpenClaw and Hermes                | Chat Completions | `https://api.redpill.ai/v1/chat/completions` | [Agent runtimes](/guides/integrations/agent-runtimes) |
| Retrieval clients                  | Embeddings       | `https://api.redpill.ai/v1/embeddings`       | [Embeddings](/api-reference/embeddings)               |

<Info>
  Most SDKs accept `https://api.redpill.ai/v1` as their base URL. Claude Code expects
  `ANTHROPIC_BASE_URL=https://api.redpill.ai` because it appends `/v1/messages`.
</Info>

## Connect a client

<Steps>
  <Step title="Set the key">
    ```bash theme={null}
    export REDPILL_AI_API_KEY="YOUR_API_KEY"
    ```
  </Step>

  <Step title="Choose a live model">
    ```bash theme={null}
    curl -s https://api.redpill.ai/v1/models \
      | jq -r '.data[] | select((.supported_features // []) | index("tools")) | .id'
    ```
  </Step>

  <Step title="Set the base URL">
    Use the URL required by the client's protocol. Follow its guide when it expects a host instead
    of a `/v1` base URL.
  </Step>

  <Step title="Run a small request">
    Test authentication, the model ID, and required capabilities before unattended use.
  </Step>
</Steps>

## Verification boundary

Pi and OpenCode use native providers that verify ACI automatically. Generic SDK and coding-agent
configurations are API-compatible only: a base URL cannot inject attested TLS or local receipt
verification. Node and Bun applications with a custom `fetch` hook can use the
[verified runtime](/guides/integrations/openai-sdk#verified-node-and-bun-transport).

`https://api.redpill.ai` serves standard and confidential models. Use `https://tee.redpill.ai` only
when every request must use an `is_tee: true` model and reject standard upstreams.
