This commit is contained in:
jrouquie 2025-05-17 13:09:47 +02:00 committed by GitHub
commit 1b99390cfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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

@ -32,6 +32,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:
{: .tip }