Answer: Use the `-H, --header
` global option to add a custom header to agent requests, with the format `Name: Value`, and it can be used multiple times. Status: Confirmed Entry: tool/cursor/settings/cli-custom-headers Revision: 2 Digest: sha256:456dacad25df56e6 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:09:45Z Last changed: 2026-11-17T12:44:48Z (repeatable: — → can be used multiple times) Last verified: 2026-11-20T12:35:50Z Next check: 2026-11-21T12:35:50Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of option | -H, --header
| [1] | 2026-11-20 format | Name: Value | [1] | 2026-11-20 repeatable | can be used multiple times | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/cli/reference/parameters.md". https://cursor.com/docs/cli/reference/parameters.md Role: primary. Accessed: 2026-11-20T12:35:50Z Quote: "| `-H, --header
` | Add custom header to agent requests (format: `Name: Value`, can be used multiple times)" (Supports: option) Quote: "Add custom header to agent requests (format: `Name: Value`, can be used multiple times)" (Supports: format, repeatable) Snapshot SHA-256: 7bec5b26a529671386966c18becdb5da69e0b549e97c8a14e618448e6f0d7675 (captured 2026-11-17T12:44:46Z) 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-17T12:44:48Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:35:50Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:35:50Z Last attempt: 2026-11-20T12:35:50Z Notes and limitations: Extracted automatically from a single official source (section "Global options"). Related: 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/cloud-agents-environment-management How do I manage environments for Cursor Cloud Agents? 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/cursor/settings/cli-config-file-location Where is the Cursor Agent CLI configuration file located? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T12:44:48Z | changed | repeatable: — → can be used multiple times | [1] 2026-11-17T12:44:48Z | changed | format: — → Name: Value | [1] 2026-11-17T12:44:48Z | changed | option: — → -H, --header
| [1] 2026-11-17T12:44:48Z | changed | Repeatable: can be used multiple times → — | [1] 2026-11-17T12:44:48Z | changed | Header format: Name: Value → — | [1] 2026-11-17T12:44:48Z | changed | Option: -H, --header
→ — | [1] 2026-11-13T03:09:45Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/settings/cli-custom-headers/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-custom-headers POST: https://latestn.com/dispute/tool/cursor/settings/cli-custom-headers with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/settings/cli-custom-headers?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I add custom headers to Cursor CLI agent requests? Revision 2, last verified 2026-11-20T12:35:50Z. https://latestn.com/tool/cursor/settings/cli-custom-headers (accessed 2026-11-21T09:50:45Z). @misc{LatestN_tool_cursor_settings_cli_custom_headers_r2, title = {How do I add custom headers to Cursor CLI agent requests?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/settings/cli-custom-headers}}, note = {Revision 2; digest sha256:456dacad25df56e6; last verified 2026-11-20T12:35:50Z; accessed 2026-11-21T09:50:45Z} } 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-custom-headers