DeepSeekDSH
Independent community guideNot affiliated with DeepSeek.Download versions and guide references

Configure DeepSeek API in Aider, Continue & Cursor

DeepSeek provides an OpenAI-compatible API endpoint. Connect DeepSeek models to Aider, Continue, and Cursor with standard Base URL and key settings.

On this page
OpenAI-compatible parameters
  • Base URL: https://api.deepseek.com or https://api.deepseek.com/v1
  • Chat and coding model: deepseek-chat (DeepSeek-V3 for fast generation and autocompletion)
  • Reasoning model: deepseek-reasoner (DeepSeek-R1 for complex problem solving)
  • API key: Generated in your DeepSeek Platform dashboard.
TOOL 1

Continue extension setup (VS Code & JetBrains)

Click the Settings ⚙️ (gear icon) in the Continue sidebar to open its config file directly—you do not need to hunt for ~/.continue/config.yaml (on Windows: %USERPROFILE%\.continue\config.yaml) manually. Add DeepSeek models:

models: - name: "DeepSeek Chat" provider: "openai" model: "deepseek-chat" apiKey: "sk-your_deepseek_api_key" apiBase: "https://api.deepseek.com/v1" - name: "DeepSeek Reasoner (R1)" provider: "openai" model: "deepseek-reasoner" apiKey: "sk-your_deepseek_api_key" apiBase: "https://api.deepseek.com/v1" tabAutocompleteModel: name: "DeepSeek Coder Autocomplete" provider: "openai" model: "deepseek-chat" apiKey: "sk-your_deepseek_api_key" apiBase: "https://api.deepseek.com/v1"
TOOL 2

Aider CLI pair programming setup

Aider has built-in DeepSeek support. Set your key and launch (on Windows PowerShell, use $env:DEEPSEEK_API_KEY="sk-your_deepseek_api_key" before running aider):

# Native DeepSeek provider (macOS / Linux) export DEEPSEEK_API_KEY="sk-your_deepseek_api_key" aider --model deepseek/deepseek-chat # Windows PowerShell: # $env:DEEPSEEK_API_KEY="sk-your_deepseek_api_key" # aider --model deepseek/deepseek-chat

Or launch with the reasoning model:

aider --model deepseek/deepseek-reasoner
TOOL 3

Cursor editor setup

In Cursor Settings → Models:

  1. Enable OpenAI API Key and paste your key.
  2. Check Override OpenAI Base URL and enter https://api.deepseek.com/v1.
  3. Add and enable deepseek-chat in the model list.
Tip (Tab & custom keys): Overriding the OpenAI Base URL powers Cursor Chat/Composer, not Cursor Tab inline autocomplete (which uses Cursor's own service). If streaming reasoning tokens cause syntax glitches, use deepseek-chat for edits.

Prompt caching and latency efficiency

DeepSeek API automatically caches prompt prefixes on the server. In multi-turn coding sessions, cached tokens cost significantly less and return responses faster.

Troubleshooting

404 Model Not Found

Ensure the model ID matches deepseek-chat or deepseek-reasoner.

401 Invalid API Key

Check that the key begins with sk- with no extra spaces.

References