# DeepSeek

> Aider can connect to the DeepSeek.com API. To work with DeepSeek's models, you need to set the DEEPSEEKAPIKEY environmen…

- 网址：https://funcoding.ai/agents/aider/llms/deepseek/
- 来源：Aider 官方文档原文（英文），Apache-2.0 许可，同步于 2026-10-11
- 官方原文：https://aider.chat/docs/llms/deepseek.html

---
Aider can connect to the DeepSeek.com API.
To work with DeepSeek's models, you need to set the `DEEPSEEK_API_KEY` environment variable with your [DeepSeek API key](https://platform.deepseek.com/api_keys).  
The DeepSeek Chat V3 model has a top score on aider's code editing benchmark.

First, install aider:

```bash
python -m pip install aider-install
aider-install
```

Then configure your API keys:

```
export DEEPSEEK_API_KEY=<key> # Mac/Linux
setx   DEEPSEEK_API_KEY <key> # Windows, restart shell after setx
```

Start working with aider and DeepSeek on your codebase:

```bash
# Change directory into your codebase
cd /to/your/project

# Use DeepSeek Chat v3
aider --model deepseek/deepseek-chat
```
