# 工具兼容性与接入总览

来源: https://platform.lyrouter.com/ai_gateway/docs/tools
更新日期: 2026-10-14

工具接入 LYRouter 的关键是协议、接入地址、网关 API Key 和模型标识。各工具页面都从安装前提和安装步骤开始，已安装用户可以直接跳到配置部分。

## 选择接入指南

| 工具 | 主要接入方式 |
| --- | --- |
| [Claude Code](https://platform.lyrouter.com/ai_gateway/docs/claude-code) | Anthropic Messages，Base URL 为网关根地址 |
| [Codex CLI](https://platform.lyrouter.com/ai_gateway/docs/codex) | Responses，Base URL 为网关地址加 /v1 |
| [ChatGPT](https://platform.lyrouter.com/ai_gateway/docs/chatgpt) | 桌面应用本地工作，配置 Responses 模型服务与 API Key |
| [OpenCode](https://platform.lyrouter.com/ai_gateway/docs/opencode) | 自定义提供商，按所选适配包匹配协议 |
| [TRAE](https://platform.lyrouter.com/ai_gateway/docs/trae) | 自定义 OpenAI 兼容模型 |
| [WorkBuddy](https://platform.lyrouter.com/ai_gateway/docs/workbuddy) | 自定义模型，区分 Base URL 与完整端点 |
| [CC Switch](https://platform.lyrouter.com/ai_gateway/docs/ccswitch) | 管理工具配置，地址随目标工具协议变化 |
| [其他 OpenAI 兼容客户端](https://platform.lyrouter.com/ai_gateway/docs/openai-clients) | Cherry Studio、Chatbox、Cline 等，添加 OpenAI 类型服务商，Base URL 为网关地址加 /v1 |

## 安装与调用的前提

安装工具可能要求操作系统、运行环境、权限和工具账号；调用 LYRouter 则需要已启用的网关 API Key、可用模型与有效服务来源。两类条件应分别确认。

## 验证方式

先运行最小文本请求，再尝试工具调用。客户端生成请求应出现在 LYRouter 请求日志中；仅拉取模型列表或只测试连接不代表生成能力已验证。
