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

> ## Agent Instructions
> JieKou AI model APIs are OpenAI-compatible. Base URL for users in mainland China (direct, no VPN): https://api.highwayapi.ai/openai; elsewhere: https://api.jiekou.ai/openai. Anthropic-compatible base URL: https://api.highwayapi.ai/anthropic or https://api.jiekou.ai/anthropic.
> Authenticate with `Authorization: Bearer <API_KEY>`; with Anthropic SDKs or Claude Code, pass the same key as `ANTHROPIC_AUTH_TOKEN`. Users create keys at https://jiekou.ai/settings/key-management. Never print or hardcode a real key.
> Get current model IDs from GET https://api.jiekou.ai/openai/v1/models instead of reusing model names from memory.

# TRAE

## 什么是TRAE？

TRAE（The Real AI Engineer）是字节跳动推出的 AI 原生开发平台，2025 年 1 月上线国际版，同年 3 月发布中国版。它同时提供两种工作范式：IDE 模式保留完整编辑器、终端、调试与 Git 工作流，适合深度编码和精确调试；Agent 模式则由 AI 主导，自主完成需求理解、代码生成、测试到成果预览的全流程，并能在同一工作区内跨项目编排多个智能体并行推进。

产品形态已覆盖桌面 IDE、Web、移动端，以及 VS Code、JetBrains、Android Studio 插件和终端 CLI。平台内置 Agent 智能体、CUE 代码补全、代码库索引、`#` 上下文引用、Rules、Memories、Skills，并通过 MCP、自定义智能体和 Hooks 扩展能力，还支持 Figma 转代码、浏览器与电脑操作、云端任务和定时任务。

官网：[https://www.trae.ai/](https://www.trae.ai/)

Github：[https://github.com/bytedance/trae-agent](https://github.com/bytedance/trae-agent)

## 如何将接口AI接入TRAE？

### 获取 API Key

1. 登录官网 jiekou.ai 注册。

2. 进入管理后台，点击右上方“我的”，在下拉列表中选择“API 密钥管理”。

   ![](https://mintcdn.com/jiekou/woskTYHkYOH0CRpH/images/trae-01.png?fit=max\&auto=format\&n=woskTYHkYOH0CRpH\&q=85\&s=7b119737d94e5faec2a13b8d7b35da52)

3. 点击“创建”，输入密钥名称。建议填写便于识别的名称，方便后续在控制台区分不同用途的密钥。

   ![](https://mintcdn.com/jiekou/woskTYHkYOH0CRpH/images/trae-02.png?fit=max\&auto=format\&n=woskTYHkYOH0CRpH\&q=85\&s=a99d7ae552889861534b03509baaed57)

4. 点击复制并记录生成的 Key。控制台不可再次查看，请妥善保存Key以便后续使用。

### 将接口AI接入TRAE

1. 在TRAE右侧对话框下方找到选择模型列表，点击“添加模型”

   ![](https://mintcdn.com/jiekou/TQxWIVZT1BEyadAo/images/trae-03.png?fit=max\&auto=format\&n=TQxWIVZT1BEyadAo\&q=85\&s=37524398fee16ecad188354df355af22)

![](https://mintcdn.com/jiekou/TQxWIVZT1BEyadAo/images/trae-04.png?fit=max\&auto=format\&n=TQxWIVZT1BEyadAo\&q=85\&s=c81b8a8668a6d0347bfb138a75bdde5d)

2. 点击“自定义模型”

   ![](https://mintcdn.com/jiekou/TQxWIVZT1BEyadAo/images/trae-05.png?fit=max\&auto=format\&n=TQxWIVZT1BEyadAo\&q=85\&s=baea8b9ec5686e902160562af5af04cf)

3. 填入刚刚复制的API Key，填入URL，根据需求填写模型ID并选择模型支持的API格式

* 国内直连URL：[https://api.highwayapi.ai/openai](https://api.highwayapi.ai/openai)
* 海外URL：[https://api.jiekou.ai/openai](https://api.jiekou.ai/openai)

  ![](https://mintcdn.com/jiekou/TQxWIVZT1BEyadAo/images/trae-06.png?fit=max\&auto=format\&n=TQxWIVZT1BEyadAo\&q=85\&s=8d62c5ca6c115689fb92956a1efb85e8)

4. 点击“添加模型”即可测试模型连通性（测试连通消耗少量额度），弹出如下提示即连接成功

   ![](https://mintcdn.com/jiekou/TQxWIVZT1BEyadAo/images/trae-07.png?fit=max\&auto=format\&n=TQxWIVZT1BEyadAo\&q=85\&s=1c2be6984b6a360288ae1c481da5bf5b)

5. 可在对话中选择接口AI提供的模型服务进行调用

   ![](https://mintcdn.com/jiekou/TQxWIVZT1BEyadAo/images/trae-08.png?fit=max\&auto=format\&n=TQxWIVZT1BEyadAo\&q=85\&s=33aab1d17c50e06440dc41569e36ba81)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.