Answer: Aider fails with an empty Bearer token because the LM_STUDIO_API_KEY must have a dummy value like dummy-api-key set, even though LM Studio doesn't require an API Key out of the box; otherwise the client request will fail trying to send an empty Bearer token. Status: Confirmed Entry: tool/aider/troubleshooting/lm-studio-dummy-api-key Revision: 1 Digest: sha256:c41f248e835d7234 (changes whenever the content changes) Timeline: Created: 2026-11-13T02:56:29Z Last changed: 2026-11-13T02:56:29Z Last verified: 2026-11-20T11:43:07Z Next check: 2026-11-21T11:43:07Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Required API key value | dummy-api-key | [1] | 2026-11-20 Failure cause | empty Bearer token | [1] | 2026-11-20 Default server URL | http://localhost:1234/v1 | [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:07Z Quote: "the LM_STUDIO_API_KEY must have a dummy value like dummy-api-key set" (Supports: Required API key value) Quote: "the client request will fail trying to send an empty Bearer token" (Supports: Failure cause) Quote: "LM Studio default server URL is http://localhost:1234/v1" (Supports: Default server URL) 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:29Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T11:43:07Z. No independent second source is configured for this entry Last successful check: 2026-11-20T11:43:07Z Last attempt: 2026-11-20T11:43:07Z Notes and limitations: Extracted automatically from a single official source (section "LM Studio"). Related: https://latestn.com/tool/aider/troubleshooting/missing-environment-variables-warning How do I resolve the "Missing environment variables" warning in Aider? https://latestn.com/tool/aider/troubleshooting/other-token-limit-causes What other causes can trigger token limit errors in Aider? https://latestn.com/tool/aider/troubleshooting/reasoning-model-limitations What are the limitations of reasoning models in Aider regarding temperature, streaming and system prompts? https://latestn.com/tool/aider/troubleshooting/fix-unknown-required-env-vars How do I fix the warning that Aider doesn't know which environment variables a model requires? https://latestn.com/tool/aider/troubleshooting/flexible-edit-application How does Aider apply edits when the model's diff doesn't match exactly? https://latestn.com/tool/aider/troubleshooting/get-more-help How do I get more help or support with Aider beyond the /help command? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T02:56:29Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/aider/troubleshooting/lm-studio-dummy-api-key/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/troubleshooting/lm-studio-dummy-api-key POST: https://latestn.com/dispute/tool/aider/troubleshooting/lm-studio-dummy-api-key with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/aider/troubleshooting/lm-studio-dummy-api-key?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Why does Aider fail with an empty Bearer token when using LM Studio? Revision 1, last verified 2026-11-20T11:43:07Z. https://latestn.com/tool/aider/troubleshooting/lm-studio-dummy-api-key (accessed 2026-11-21T10:02:12Z). @misc{LatestN_tool_aider_troubleshooting_lm_studio_dummy_api_key_r1, title = {Why does Aider fail with an empty Bearer token when using LM Studio?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/aider/troubleshooting/lm-studio-dummy-api-key}}, note = {Revision 1; digest sha256:c41f248e835d7234; last verified 2026-11-20T11:43:07Z; accessed 2026-11-21T10:02:12Z} } 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/troubleshooting/lm-studio-dummy-api-key