Answer: Install aider, set a dummy LM_STUDIO_API_KEY and the LM_STUDIO_API_BASE endpoint (default http://localhost:1234/v1), then run aider with --model lm_studio/. Status: Confirmed Entry: tool/aider/integrations/connect-lm-studio Revision: 1 Digest: sha256:527db0ad00da9e04 (changes whenever the content changes) Timeline: Created: 2026-11-13T02:56:28Z Last changed: 2026-11-13T02:56:28Z Last verified: 2026-11-20T11:43:06Z Next check: 2026-11-21T11:43:06Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of API key | dummy-api-key | [1] | 2026-11-20 API base URL | http://localhost:1234/v1 | [1] | 2026-11-20 Model flag | lm_studio/ | [1] | 2026-11-20 Install command | python -m pip install aider-install | [1] | 2026-11-20 Sources: [1] Aider. "aider.chat/docs/llms/lm-studio.html". https://aider.chat/docs/llms/lm-studio.html Role: primary. Accessed: 2026-11-20T11:43:06Z Quote: "export LM_STUDIO_API_KEY=dummy-api-key" (Supports: API key) Quote: "export LM_STUDIO_API_BASE=http://localhost:1234/v1" (Supports: API base URL) Quote: "aider --model lm_studio/" (Supports: Model flag) Quote: "python -m pip install aider-install" (Supports: Install command) Published: 2026-04-25T16:45:23Z Snapshot SHA-256: 4760c6367a56b80343e4b305b8871e408291e24c71c53451a63e771908a148ca (captured 2026-11-13T02:56:28Z) 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:28Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T11:43:06Z. No independent second source is configured for this entry Last successful check: 2026-11-20T11:43:06Z Last attempt: 2026-11-20T11:43:06Z Notes and limitations: Extracted automatically from a single official source (section "LM Studio"). Related: https://latestn.com/tool/aider/integrations/disable-git-integration How do I disable git integration in Aider? https://latestn.com/tool/aider/memory-and-context/add-all-files-to-chat How do I add all the files to the chat in Aider? https://latestn.com/tool/aider/memory-and-context/code-context-problem What problem does Aider's repo map solve for code context? https://latestn.com/tool/aider/integrations/configure-openai-compatible-endpoint How do I configure Aider to use a local or self-hosted OpenAI-compatible endpoint? https://latestn.com/tool/aider/integrations/configure-openrouter How do I configure Aider to use OpenRouter? https://latestn.com/tool/aider/integrations/connect-deepseek-api How do I connect Aider to the DeepSeek API? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T02:56:28Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/aider/integrations/connect-lm-studio/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/integrations/connect-lm-studio POST: https://latestn.com/dispute/tool/aider/integrations/connect-lm-studio with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/aider/integrations/connect-lm-studio?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I connect Aider to a model served by LM Studio? Revision 1, last verified 2026-11-20T11:43:06Z. https://latestn.com/tool/aider/integrations/connect-lm-studio (accessed 2026-11-21T09:57:05Z). @misc{LatestN_tool_aider_integrations_connect_lm_studio_r1, title = {How do I connect Aider to a model served by LM Studio?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/aider/integrations/connect-lm-studio}}, note = {Revision 1; digest sha256:527db0ad00da9e04; last verified 2026-11-20T11:43:06Z; accessed 2026-11-21T09:57:05Z} } 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/integrations/connect-lm-studio