Answer: To connect Aider to OpenRouter, you need an OpenRouter API key, install aider, and configure your API key by exporting OPENROUTER_API_KEY, then run aider with the model flag openrouter//. Status: Confirmed Entry: tool/aider/models/connect-aider-to-openrouter Revision: 1 Digest: sha256:fb37ba01cd25847a (changes whenever the content changes) Timeline: Created: 2026-11-13T02:56:30Z Last changed: 2026-11-13T02:56:30Z Last verified: 2026-11-20T11:43:14Z Next check: 2026-11-21T11:43:14Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of API key environment variable | OPENROUTER_API_KEY | [1] | 2026-11-20 install command | python -m pip install aider-install | [1] | 2026-11-20 model flag format | openrouter// | [1] | 2026-11-20 list models command | aider --list-models openrouter/ | [1] | 2026-11-20 Sources: [1] Aider. "aider.chat/docs/llms/openrouter.html". https://aider.chat/docs/llms/openrouter.html Role: primary. Accessed: 2026-11-20T11:43:14Z Quote: "export OPENROUTER_API_KEY=" (Supports: API key environment variable) Quote: "python -m pip install aider-install" (Supports: install command) Quote: "aider --model openrouter//" (Supports: model flag format) Quote: "aider --list-models openrouter/" (Supports: list models command) Published: 2026-04-25T16:45:23Z Snapshot SHA-256: 79b67f6b105af4de59157b5b4c079fef704e279a633bb51817f20239c0879f82 (captured 2026-11-13T02:56:30Z) 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-13T02:56:30Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T11:43:14Z. No independent second source is configured for this entry Last successful check: 2026-11-20T11:43:14Z Last attempt: 2026-11-20T11:43:14Z Notes and limitations: Extracted automatically from a single official source (section "OpenRouter"). Related: https://latestn.com/tool/aider/models/connect-local-models How do I connect Aider to a local model? https://latestn.com/tool/aider/models/connect-openai-compatible-api How do I connect Aider to an OpenAI-compatible API? https://latestn.com/tool/aider/models/context-window-size-token-costs How do I set the context window size and token costs for an Aider model? https://latestn.com/tool/aider/models/configure-vertex-ai How do I configure Aider to use Google Vertex AI models? https://latestn.com/tool/aider/models/connect-aider-to-azure How do I connect Aider to Azure OpenAI models? https://latestn.com/tool/aider/models/connect-aider-to-openai How do I connect Aider to OpenAI models? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T02:56:30Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/aider/models/connect-aider-to-openrouter/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/aider/models/connect-aider-to-openrouter POST: https://latestn.com/dispute/tool/aider/models/connect-aider-to-openrouter with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/aider/models/connect-aider-to-openrouter?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I connect Aider to OpenRouter? Revision 1, last verified 2026-11-20T11:43:14Z. https://latestn.com/tool/aider/models/connect-aider-to-openrouter (accessed 2026-11-21T10:04:13Z). @misc{LatestN_tool_aider_models_connect_aider_to_openrouter_r1, title = {How do I connect Aider to OpenRouter?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/aider/models/connect-aider-to-openrouter}}, note = {Revision 1; digest sha256:fb37ba01cd25847a; last verified 2026-11-20T11:43:14Z; accessed 2026-11-21T10:04:13Z} } 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/aider/models/connect-aider-to-openrouter