Status: [UNTESTED] Endpoints found: http://127.0.0.1:8000/v1/chat/completions http://127.0.0.1:8000/v1/models http://127.0.0.1:8000/v1/models?availability=usable http://127.0.0.1:8000/v1/models?availability=all http://127.0.0.1:8000/v1/models/status Source: https://github.com/muskke/trae-api-proxy # ⚡ Trae API Proxy ![Trae API Proxy Banner](assets/banner.png) 一个轻量、单账号、零第三方 Go 运行依赖的 TRAE → OpenAI Chat Completions / Responses API 兼容代理。 **v0.5.1 在 v0.5.0 Responses / Codex 兼容层上补齐了代理侧 Hosted Web Search。** Codex 可以继续发送 `type: "web_search"`,代理会执行搜索/页面读取、把结果回喂 TRAE,再按 Responses 原生 `web_search_call` 事件返回;无需为了使用本代理而关闭 `web_search` 或 `tool_search`。 > 如果你使用的是 TRAE Global IDE,通常只需要保持 `TRAE_OAUTH_PLATFORM=global`,不要再手工指定旧的 `trae.cn`、SOLO client id 或 v0.4.0 登录 URL。 ## ✨ v0.5.1 重点 - **Responses API**:新增 `POST /v1/responses`,支持非流式与 SSE 流式输出、`instructions`、text input、usage、reasoning、function call 及 tool result 多轮回传。 - **Codex provider**:支持当前 Codex custom model provider 的 `wire_api = "responses"` HTTP 路径;建议配置 `supports_websockets = false`。 - **Codex custom/freeform tools**:`custom` 工具(例如 `apply_patch`)会在代理内部桥接成 TRAE function tool,模型调用后再还原为 `custom_tool_call`。 - **Namespace tools**:Responses `namespace` 下的 function/custom 工具会安全扁平化给 TRAE,并在返回时恢复 namespace,便于 Codex/MCP 的客户端调度。 - **Client-executed tool_search**:支持 Codex 当前用于延迟发现 MCP/插件工具的 `tool_search` → `tool_search_call` → `tool_search_output` 流程;搜索结果里的延迟加载工具会在下一轮重新注入 TRAE。 - **Responses 流事件**:输出 `response.created`、`response.in_progress`、`response.output_item.*`、`response.output_text.*`、function/custom tool delta/done 以及 `response.completed` / `response.failed`。 - **Hosted Web Search Runtime**:支持 Responses `web_search` / preview variants。TRAE 通过内部工具选择 `search`、`open_pa