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
- Base URL:
https://api.deepseek.comorhttps://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.
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"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-chatOr launch with the reasoning model:
aider --model deepseek/deepseek-reasonerCursor editor setup
In Cursor Settings → Models:
- Enable OpenAI API Key and paste your key.
- Check Override OpenAI Base URL and enter
https://api.deepseek.com/v1. - Add and enable
deepseek-chatin the model list.
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.