Agent CLI configuration reference for cli-config.json
cli-config.json
file.
Type | Platform | Path |
---|---|---|
Global | macOS/Linux | ~/.cursor/cli-config.json |
Global | Windows | $env:USERPROFILE\.cursor\cli-config.json |
Project | All | <project>/.cursor/cli.json |
CURSOR_CONFIG_DIR
: custom directory pathXDG_CONFIG_HOME
(Linux/BSD): uses $XDG_CONFIG_HOME/cursor/cli-config.json
Field | Type | Description |
---|---|---|
version | number | Config schema version (current: 1 ) |
editor.vimMode | boolean | Enable Vim keybindings (default: false ) |
permissions.allow | string[] | Permitted operations (see Permissions) |
permissions.deny | string[] | Forbidden operations (see Permissions) |
Field | Type | Description |
---|---|---|
model | object | Selected model configuration |
hasChangedDefaultModel | boolean | CLI-managed model override flag |
.bad
and recreated