Answer: You add custom headers by configuring them with `language_models..custom_headers`, specifying header names and values in a JSON object under your chosen provider. Status: Overdue (check was due 2026-11-20T13:39:14Z and has not succeeded) Entry: tool/zed/settings/custom-headers Revision: 1 Digest: sha256:a38b3d637fb0514a (changes whenever the content changes) Timeline: Created: 2026-11-13T04:00:48Z Last changed: 2026-11-13T04:00:48Z Last verified: 2026-11-19T13:39:14Z Next check: 2026-11-20T13:39:14Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Configuration key | language_models..custom_headers | [1] | 2026-11-19 Example header | Fancy-Auth | [1] | 2026-11-19 Supported providers | Amazon Bedrock, Anthropic, DeepSeek, Google AI, LM Studio, Mistral, Ollama, OpenAI, OpenAI-compatible providers, OpenCode, OpenRouter, [Vercel AI Gateway](./use-a-gateway.md), and xAI | [1] | 2026-11-19 Ignored headers | Authorization | [1] | 2026-11-19 Sources: [1] Zed Industries. "zed.dev/docs/ai/use-api-access.md". https://zed.dev/docs/ai/use-api-access.md Role: primary. Accessed: 2026-11-19T13:39:14Z Quote: "Configure them with `language_models..custom_headers`:" (Supports: Configuration key) Quote: ""Fancy-Auth": "Bearer "," (Supports: Example header) Quote: "`custom_headers` is supported by Amazon Bedrock, Anthropic, DeepSeek, Google AI, LM Studio, Mistral, Ollama, OpenAI, OpenAI-compatible providers, OpenCode, OpenRouter, [Vercel AI Gateway](./use-a-gateway.md), and xAI." (Supports: Supported providers) Quote: "Headers managed by Zed for each provider, such as `Authorization`, `Content-Type`, `Accept`, and provider-specific authentication headers, are ignored with a warning if you try to override them." (Supports: Ignored headers) Snapshot SHA-256: b164ec181d366233ab55bfef5968c6d0f4c068695e5ccd05b1680829108484b0 (captured 2026-11-13T04:00:48Z) 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-13T04:00:48Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:39:14Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:39:14Z Last attempt: 2026-11-19T13:39:14Z Notes and limitations: Extracted automatically from a single official source (section "Custom Headers {#custom-headers}"). Human-readable page: https://zed.dev/docs/ai/use-api-access.html Related: https://latestn.com/tool/zed/settings/custom-hls-binary How do I use a specific HLS binary or static-ls in Zed? https://latestn.com/tool/zed/settings/customize-debug-adapters How do I configure a debug adapter in Zed? https://latestn.com/tool/zed/settings/customize-semantic-token-styles How do I customize semantic token styles for syntax highlighting in Zed? https://latestn.com/tool/zed/settings/configure-terraform-language-server How do I configure the Terraform language server in Zed? https://latestn.com/tool/zed/settings/configure-yaml-language-server-settings How do I configure yaml-language-server settings in Zed? https://latestn.com/tool/zed/settings/create-edit-snippets-file How do I create or edit a snippets file in Zed? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T04:00:48Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/zed/settings/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/zed/settings/custom-headers POST: https://latestn.com/dispute/tool/zed/settings/custom-headers with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/zed/settings/custom-headers?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I add custom headers to Zed AI API requests? Revision 1, last verified 2026-11-19T13:39:14Z. https://latestn.com/tool/zed/settings/custom-headers (accessed 2026-11-21T09:52:25Z). @misc{LatestN_tool_zed_settings_custom_headers_r1, title = {How do I add custom headers to Zed AI API requests?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/zed/settings/custom-headers}}, note = {Revision 1; digest sha256:a38b3d637fb0514a; last verified 2026-11-19T13:39:14Z; accessed 2026-11-21T09:52:25Z} } 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/zed/settings/custom-headers