eca icon indicating copy to clipboard operation
eca copied to clipboard

How can I add providers in the config file?

Open madorian opened this issue 1 year ago • 7 comments

I see that I can interactively use the /login command to give it API keys, but it says in the manual I could also do this in the config file.

I've added openrouter to my config file, but I don't see any command to switch to it.

If I try /login, it just asks me for the key which is already in the config file.

madorian avatar Nov 09 '25 23:11 madorian

Please check documentation, LMK if not clear

ericdallo avatar Nov 10 '25 12:11 ericdallo

Yes, sorry, this is not clear

Once I manually add this to my config.json file, how does eca pick it up?

I mean, when I start eca, I just see claude in the header. If I type /login and then openrouter, it asks me for the API Key, even though I just typed it into config.json.

I'm not sure how I can tell it to select the openrouter from my config file.

madorian avatar Nov 10 '25 12:11 madorian

/login is just an interactive way to configure the json for you, if you already configured it there it's done, you can:

  • set defaultModel: openrouter/your-model to the header starts with your model
  • click on the model to select the model or call eca-chat-select-model

ericdallo avatar Nov 10 '25 13:11 ericdallo

eca-chat-select-model was it;) Thanks. If I go back to the homepage and search for this command, I don't see it there

madorian avatar Nov 10 '25 13:11 madorian

@madorian the https://eca.dev is generic for eca server and its configuration, those specific emacs commands and variables live in eca-emacs README

ericdallo avatar Nov 10 '25 13:11 ericdallo

ok, but there is no reference to eca-chat-select-model on that page.

madorian avatar Nov 10 '25 13:11 madorian

Will add, thanks!

ericdallo avatar Nov 10 '25 13:11 ericdallo