Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hyperknot opened this issue Nov 20, 2024 · 2 comments
Open

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

hyperknot opened this issue Nov 20, 2024 · 2 comments
Labels
question Further information is requested

Comments

@hyperknot
Copy link

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
Copy link
Collaborator

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

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

@hyperknot
Copy link
Author

anthropic and openai works like that. openrouter does not.

@paul-gauthier paul-gauthier added the question Further information is requested label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants