solves #873
This commit is contained in:
Jean-Baptiste Rouquier 2025-02-13 15:08:14 +01:00
parent 44b1acd385
commit 2b6c0dfb4f
2 changed files with 11 additions and 0 deletions

View file

@ -47,6 +47,10 @@ You can also set those API keys via special entries in the
```yaml
openai-api-key: <key>
anthropic-api-key: <key>
api-key:
- openrouter=<key>
- deepseek=<key>
```

View file

@ -21,6 +21,13 @@ aider --model openrouter/<provider>/<model>
aider --list-models openrouter/
```
Alternatively, you may set the API key in the config file ~/.aider.conf.yml , just add the line:
```
api-key: openrouter=sk-...
```
In particular, many aider users access Sonnet via OpenRouter:
```