Answer: The Cursor Agent CLI configuration file is located at `~/.cursor/cli-config.json` globally on macOS/Linux, `$env:USERPROFILE\.cursor\cli-config.json` globally on Windows, and `/.cursor/cli.json` at the project level. Status: Confirmed Entry: tool/cursor/settings/cli-config-file-location Revision: 1 Digest: sha256:f7205b1ec29bde94 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:09:40Z Last changed: 2026-11-13T03:09:40Z Last verified: 2026-11-20T12:35:44Z Next check: 2026-11-21T12:35:44Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Global macOS/Linux path | ~/.cursor/cli-config.json | [1] | 2026-11-20 Global Windows path | $env:USERPROFILE\.cursor\cli-config.json | [1] | 2026-11-20 Project path | /.cursor/cli.json | [1] | 2026-11-20 Override environment variable | CURSOR_CONFIG_DIR | [1] | 2026-11-20 Linux/BSD override path | $XDG_CONFIG_HOME/cursor/cli-config.json | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/cli/reference/configuration.md". https://cursor.com/docs/cli/reference/configuration.md Role: primary. Accessed: 2026-11-20T12:35:44Z Quote: "| Global | macOS/Linux | `~/.cursor/cli-config.json` |" (Supports: Global macOS/Linux path) Quote: "| Global | Windows | `$env:USERPROFILE\.cursor\cli-config.json` |" (Supports: Global Windows path) Quote: "| Project | All | `/.cursor/cli.json` |" (Supports: Project path) Quote: "- **`CURSOR_CONFIG_DIR`**: custom directory path" (Supports: Override environment variable) Quote: "- **`XDG_CONFIG_HOME`** (Linux/BSD): uses `$XDG_CONFIG_HOME/cursor/cli-config.json`" (Supports: Linux/BSD override path) Snapshot SHA-256: aab79ccc8949c23f30c45e0928ea80cefb5ee4ee6ff1723a3864ac61851f2a87 (captured 2026-11-13T03:09:40Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:09:40Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:35:44Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:35:44Z Last attempt: 2026-11-20T12:35:44Z Notes and limitations: Extracted automatically from a single official source (section "File location"). Related: https://latestn.com/tool/cursor/settings/cli-custom-headers How do I add custom headers to Cursor CLI agent requests? https://latestn.com/tool/cursor/settings/cli-proxy-configuration How do I configure a proxy for the Cursor Agent CLI? https://latestn.com/tool/cursor/settings/cloud-agents-default-model How do I configure the default model for Cursor Cloud Agents? https://latestn.com/tool/cursor/settings/change-optimization-mode How do I change the optimization mode for Cursor Router? https://latestn.com/tool/cursor/settings/change-run-mode How do I change the Run Mode for the Cursor agent in the desktop app? https://latestn.com/tool/cursor/settings/choose-watched-repositories How do I choose which repositories a Cursor GitHub agent watches? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:09:40Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/settings/cli-config-file-location/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/settings/cli-config-file-location POST: https://latestn.com/dispute/tool/cursor/settings/cli-config-file-location with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/settings/cli-config-file-location?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Where is the Cursor Agent CLI configuration file located? Revision 1, last verified 2026-11-20T12:35:44Z. https://latestn.com/tool/cursor/settings/cli-config-file-location (accessed 2026-11-21T09:54:21Z). @misc{LatestN_tool_cursor_settings_cli_config_file_location_r1, title = {Where is the Cursor Agent CLI configuration file located?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/settings/cli-config-file-location}}, note = {Revision 1; digest sha256:f7205b1ec29bde94; last verified 2026-11-20T12:35:44Z; accessed 2026-11-21T09:54:21Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/settings/cli-config-file-location