feat: Add model and API key validation with documentation link

This commit is contained in:
Paul Gauthier 2025-01-31 08:59:26 -08:00 committed by Paul Gauthier (aider)
parent b4b54d1796
commit 31d23bc9a7
4 changed files with 42 additions and 3 deletions

View file

@ -0,0 +1,28 @@
---
parent: Troubleshooting
nav_order: 28
---
# Models and API keys
You need to tell aider which LLM to use and provide an API key.
The easiest way is to use the `--model` and `--api-key`
command line arguments, like this:
```
# Work with DeepSeek via DeepSeek's API
aider --model deepseek --api-key deepseek=your-key-goes-here
# Work with Claude 3.5 Sonnet via Anthropic's API
aider --model sonnet --api-key anthropic=your-key-goes-here
# Work with GPT-4o via OpenAI's API
aider --model gpt-4o --api-key openai=your-key-goes-here
# Work with Sonnet via OpenRouter's API
aider --model openrouter/anthropic/claude-3.5-sonnet --api-key openrouter=your-key-goes-here
# Work with DeepSeek via OpenRouter's API
aider --model openrouter/deepseek/deepseek-chat --api-key openrouter=your-key-goes-here
```