Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Setup guide - From DeepSeek and Aider docs

Use DeepSeek in Aider

Aider's DeepSeek page still uses the discontinued deepseek/deepseek-chat id. To use current models, use Aider's documented OpenAI-compatible path: set OPENAI_API_BASE to DeepSeek's base URL and run aider --model openai/deepseek-flash.

Last verified 4 steps4 official sources

Steps

  1. Step 1.

    Install aider.

    Terminal
    python -m pip install aider-install
    aider-install
  2. Step 2.

    Point aider's OpenAI-compatible client at DeepSeek (Mac/Linux).

    Terminal
    export OPENAI_API_BASE=https://api.deepseek.com
    export OPENAI_API_KEY=<your DeepSeek API key>
  3. Step 3.

    Windows (restart the shell after setx).

    Terminal
    setx OPENAI_API_BASE https://api.deepseek.com
    setx OPENAI_API_KEY <your DeepSeek API key>
  4. Step 4.

    Start aider in your project, prefixing the model name with openai/.

    Terminal
    cd /to/your/project
    aider --model openai/deepseek-flash

Caveats

  • This combines Aider's documented OpenAI compatible API mechanism (export OPENAI_API_BASE=<endpoint>, aider --model openai/<model-name>) with DeepSeek's documented OpenAI base URL and model ids.
  • Aider's DeepSeek page shows export DEEPSEEK_API_KEY=<key> and aider --model deepseek/deepseek-chat. DeepSeek's change log announced deepseek-chat would be discontinued on 2026-07-24, so that example is out of date.
  • Aider warns when it is used with models it does not recognise (see https://aider.chat/docs/llms/warnings.html). Expect that warning for openai/deepseek-flash.
  • DeepSeek thinking mode is on by default. Requests that include tools must pass reasoning_content back, or the API returns a 400 error.

FAQ

How do I use DeepSeek in Aider?

Aider's DeepSeek page still uses the discontinued deepseek/deepseek-chat id. To use current models, use Aider's documented OpenAI-compatible path: set OPENAI_API_BASE to DeepSeek's base URL and run aider --model openai/deepseek-flash.

Which DeepSeek model ids work in Aider?

The official docs read for this guide list deepseek-flash and deepseek-v4-pro. Requests go to https://api.deepseek.com.

Is this an official DeepSeek and Aider setup?

The steps draw on both DeepSeek's and Aider's docs. It was last checked against 4 official pages on October 17, 2026.

Sources

Last verified against 4 official pages.

Newsletter

New models, set up the day they ship

One email per week. New model releases, the coding tools that support them and how to wire them up.