mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
parent
44b1acd385
commit
2b6c0dfb4f
2 changed files with 11 additions and 0 deletions
|
@ -47,6 +47,10 @@ You can also set those API keys via special entries in the
|
||||||
```yaml
|
```yaml
|
||||||
openai-api-key: <key>
|
openai-api-key: <key>
|
||||||
anthropic-api-key: <key>
|
anthropic-api-key: <key>
|
||||||
|
api-key:
|
||||||
|
- openrouter=<key>
|
||||||
|
- deepseek=<key>
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,13 @@ aider --model openrouter/<provider>/<model>
|
||||||
aider --list-models openrouter/
|
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:
|
In particular, many aider users access Sonnet via OpenRouter:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue