Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
22.39k stars 2.08k forks source link

unrecognized arguments: --openrouter-api-key #2407

Open hyperknot opened 2 days ago

hyperknot commented 2 days ago

Issue

I have aider 0.63.2. I'm entering

openrouter-api-key: sk-or-...

into my .aider.conf.yml

This happens when I start the app.

aider: error: unrecognized arguments: --openrouter-api-key=sk-or-...

anthropic-api-key is next to it and it works correctly, it's only openrouter which isn't. I think the yml parsing might have been missed for openrouter?

it works with .env file

Version and model info

aider 0.63.2

paul-gauthier commented 2 days ago

Thanks for trying aider and filing this issue. This doc may be helpful:

https://aider.chat/docs/config/dotenv.html#storing-llm-keys

hyperknot commented 2 days ago

anthropic and openai works like that. openrouter does not.