Agent CLI 的 cli-config.json 配置参考
cli-config.json
文件来配置 Agent CLI。
类型 | 平台 | 路径 |
---|---|---|
全局 | macOS/Linux | ~/.cursor/cli-config.json |
全局 | Windows | $env:USERPROFILE\.cursor\cli-config.json |
项目 | 所有平台 | <project>/.cursor/cli.json |
CURSOR_CONFIG_DIR
:自定义目录路径XDG_CONFIG_HOME
(Linux/BSD):使用 $XDG_CONFIG_HOME/cursor/cli-config.json
字段 | 类型 | 描述 |
---|---|---|
version | number | 配置架构版本(当前:1 ) |
editor.vimMode | boolean | 启用 Vim 按键绑定(默认:false ) |
permissions.allow | string[] | 允许的操作(参见 Permissions) |
permissions.deny | string[] | 禁止的操作(参见 Permissions) |
字段 | 类型 | 描述 |
---|---|---|
model | object | 已选模型配置 |
hasChangedDefaultModel | boolean | 由 CLI 管理的默认模型覆盖标记 |
.bad
并重新生成