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

# 工具与 SDK

> 把 Claude Code、Cursor、Codex、Cline、aider 和 SDK 接入 OmniaKey。

每个工具继续使用自己原本支持的协议。你只需要替换 base URL 和 API key。

| 工具          | 协议               | Base URL                      |
| ----------- | ---------------- | ----------------------------- |
| Claude Code | Anthropic        | `https://api.omniakey.com`    |
| Cursor      | OpenAI 兼容        | `https://api.omniakey.com/v1` |
| Codex       | OpenAI Responses | `https://api.omniakey.com/v1` |
| Cline       | OpenAI 兼容        | `https://api.omniakey.com/v1` |
| aider       | OpenAI 兼容        | `https://api.omniakey.com/v1` |

## Claude Code

```bash theme={null}
export ANTHROPIC_BASE_URL="https://api.omniakey.com"
export ANTHROPIC_AUTH_TOKEN="your-omniakey-api-key"
claude
```

## Cursor

在 **Settings → Models → API Keys** 中启用 OpenAI API Key，填入 OmniaKey key，并把 Override Base URL 设置为 `https://api.omniakey.com/v1`。

## Codex

`~/.codex/config.toml`：

```toml theme={null}
model = "gpt-5.5"
model_provider = "omniakey"

[model_providers.omniakey]
name = "OmniaKey"
wire_api = "responses"
requires_openai_auth = true
base_url = "https://api.omniakey.com/v1"
```

```bash theme={null}
export OPENAI_API_KEY="your-omniakey-api-key"
codex
```

## Cline

选择 **OpenAI Compatible** provider：

| 字段       | 值                             |
| -------- | ----------------------------- |
| Base URL | `https://api.omniakey.com/v1` |
| API Key  | 你的 OmniaKey API key           |
| Model ID | 例如 `claude-opus-4-8`          |

## aider

```bash theme={null}
export OPENAI_API_BASE="https://api.omniakey.com/v1"
export OPENAI_API_KEY="your-omniakey-api-key"

aider --model openai/claude-opus-4-8
```

## Gemini CLI

Gemini CLI 目前不提供稳定的第三方 base URL 配置。要通过 OmniaKey 使用 Gemini 模型，请在支持 OpenAI 兼容 provider 的工具里设置 `https://api.omniakey.com/v1`，并使用 Gemini 模型 ID。
