Answer: To configure Zed to use OpenRouter as a gateway, create an OpenRouter account, generate an API key, open Settings → AI → LLM Providers, and enter your OpenRouter API key. Then explicitly select a model in your settings, such as provider "openrouter" with model "openrouter/auto". Status: Overdue (check was due 2026-11-20T13:39:03Z and has not succeeded) Entry: tool/zed/integrations/configure-openrouter-gateway Revision: 1 Digest: sha256:4f09ab6bf23c0e0b (changes whenever the content changes) Timeline: Created: 2026-11-13T04:00:38Z Last changed: 2026-11-13T04:00:38Z Last verified: 2026-11-19T13:39:03Z Next check: 2026-11-20T13:39:03Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of settings path | Settings → AI → LLM Providers | [1] | 2026-11-19 environment variable | OPENROUTER_API_KEY | [1] | 2026-11-19 default provider | openrouter | [1] | 2026-11-19 default model | openrouter/auto | [1] | 2026-11-19 custom API URL | https://openrouter.ai/api/v1 | [1] | 2026-11-19 Sources: [1] Zed Industries. "zed.dev/docs/ai/use-a-gateway.md". https://zed.dev/docs/ai/use-a-gateway.md Role: primary. Accessed: 2026-11-19T13:39:03Z Quote: "Open **Settings → AI → LLM Providers** with agent: open settings and find the OpenRouter row." (Supports: settings path) Quote: "Zed also reads `OPENROUTER_API_KEY` from the local Zed process environment." (Supports: environment variable) Quote: ""provider": "openrouter"," (Supports: default provider) Quote: ""model": "openrouter/auto"" (Supports: default model) Quote: ""api_url": "https://openrouter.ai/api/v1"," (Supports: custom API URL) Snapshot SHA-256: 05215294ccd53f421b4e2257d00571b93c27199b37761ce115d4b76c8ec8a50c (captured 2026-11-13T04:00:38Z) 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:38Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:39:03Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:39:03Z Last attempt: 2026-11-19T13:39:03Z Notes and limitations: Extracted automatically from a single official source (section "OpenRouter {#openrouter}"). Human-readable page: https://zed.dev/docs/ai/use-a-gateway.html Related: https://latestn.com/tool/zed/integrations/configure-other-edit-prediction-providers How do I configure Zed to use GitHub Copilot or another provider for edit prediction? https://latestn.com/tool/zed/integrations/define-debug-locator How do I define a debug locator in a Zed debugger extension? https://latestn.com/tool/zed/integrations/define-extension-snippets How do I define snippets in a Zed extension? https://latestn.com/tool/zed/integrations/configure-github-copilot How do I configure GitHub Copilot in Zed? https://latestn.com/tool/zed/integrations/configure-language-server How do I configure a language server for a language in a Zed extension? https://latestn.com/tool/zed/integrations/configure-mcp-servers How do I set up MCP servers in Zed? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T04:00:38Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/zed/integrations/configure-openrouter-gateway/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/integrations/configure-openrouter-gateway POST: https://latestn.com/dispute/tool/zed/integrations/configure-openrouter-gateway with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/zed/integrations/configure-openrouter-gateway?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure Zed to use OpenRouter as a gateway? Revision 1, last verified 2026-11-19T13:39:03Z. https://latestn.com/tool/zed/integrations/configure-openrouter-gateway (accessed 2026-11-21T10:02:27Z). @misc{LatestN_tool_zed_integrations_configure_openrouter_gateway_r1, title = {How do I configure Zed to use OpenRouter as a gateway?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/zed/integrations/configure-openrouter-gateway}}, note = {Revision 1; digest sha256:4f09ab6bf23c0e0b; last verified 2026-11-19T13:39:03Z; accessed 2026-11-21T10:02:27Z} } 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/integrations/configure-openrouter-gateway