mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 20:54:59 +00:00
docs: Add API key configuration methods for OpenRouter
This commit is contained in:
parent
6b90cd1277
commit
fe89ae13af
1 changed files with 8 additions and 0 deletions
|
@ -29,8 +29,16 @@ The benchmark results below show that several providers offer comparable or bett
|
||||||
For example, to use OpenRouter:
|
For example, to use OpenRouter:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# Set your API key using environment variables
|
||||||
export OPENROUTER_API_KEY=<your-key>
|
export OPENROUTER_API_KEY=<your-key>
|
||||||
aider --model openrouter/deepseek/deepseek-v3
|
aider --model openrouter/deepseek/deepseek-v3
|
||||||
|
|
||||||
|
# Or use the --api-key command line option
|
||||||
|
aider --model openrouter/deepseek/deepseek-v3 --api-key openrouter=<your-key>
|
||||||
|
|
||||||
|
# Or add it to .aider.conf.yml in your home directory or project root:
|
||||||
|
api-key:
|
||||||
|
- openrouter=<your-key>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuring model settings
|
## Configuring model settings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue