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

用户级配置文件默认位于：

```Plain Text
~/.trae/traecli.toml
```

日常使用通常不需要手动修改配置文件；模型、权限、登录等操作优先通过 TUI 内的 `/model`、`/permissions`、`/login` 完成。以下内容仅保留自定义域、默认权限策略、MCP 和项目信任的最小示例。

```TOML
# 默认模型；可在 TUI 中用 /model 临时切换
model = "your-model-name"

# 默认权限策略：untrusted / on-failure / on-request / never
approval_policy = "on-request"

# 默认沙箱：read-only / workspace-write / danger-full-access
sandbox_mode = "workspace-write"

# 可选：自定义登录域名，TUI /login 会使用
trae_login_base_url = "https://console.example.com"
```

项目级信任配置示例：

```TOML
[projects."/path/to/project"]
trust_level = "trusted"
```

如需配置 MCP 服务，只保留实际需要的服务：

```TOML
[mcp_servers.docs]
command = "node"
args = ["/path/to/server.js"]
```
