improvement: initial setup #70

Closed
opened 2026-02-16 17:25:04 -05:00 by yindo · 5 comments
Owner

Originally created by @l0gicgate on GitHub (Jun 15, 2025).

Originally assigned to: @thdxr on GitHub.

I understand that on the README there are some special steps to configure OpenRouter.

However, a lot of people don't read READMEs and you can just end up bricking the whole app if you do this:

  1. Open opencode auth login for the first time
  2. Select Other as a provider
  3. Enter openrouter (obviously this is wrong)

Then you'll end up in this state:

Image

Suggested improvements:

  1. Make an option in the wizard for OpenRouter that sets things up for you like the instructions in the README
  2. If the app can't start, we should at least display a user friendly message to the user telling them to delete .opencode and restart or at least state that their configuration is wrong and they need to fix it.
Originally created by @l0gicgate on GitHub (Jun 15, 2025). Originally assigned to: @thdxr on GitHub. I understand that on the README there are some special steps to configure OpenRouter. However, a lot of people don't read READMEs and you can just end up bricking the whole app if you do this: 1. Open `opencode auth login` for the first time 2. Select `Other` as a provider 3. Enter `openrouter` (obviously this is wrong) Then you'll end up in this state: ![Image](https://github.com/user-attachments/assets/3dc48adb-597f-45ac-b1cc-22967e95b76f) **Suggested improvements:** 1. Make an option in the wizard for OpenRouter that sets things up for you like the instructions in the README 2. If the app can't start, we should at least display a user friendly message to the user telling them to delete `.opencode` and restart or at least state that their configuration is wrong and they need to fix it.
yindo closed this issue 2026-02-16 17:25:04 -05:00
Author
Owner

@thdxr commented on GitHub (Jun 15, 2025):

@adamdottv there's a case here where if the tui config has a provider and model that no longer exist it crashes

@thdxr commented on GitHub (Jun 15, 2025): @adamdottv there's a case here where if the tui config has a provider and model that no longer exist it crashes
Author
Owner

@adamdotdevin commented on GitHub (Jun 16, 2025):

@adamdottv there's a case here where if the tui config has a provider and model that no longer exist it crashes

i fixed this case, @thdxr, closing this as the remaining work is tracked in #123

@adamdotdevin commented on GitHub (Jun 16, 2025): > [@adamdottv](https://github.com/adamdottv) there's a case here where if the tui config has a provider and model that no longer exist it crashes i fixed this case, @thdxr, closing this as the remaining work is tracked in #123
Author
Owner

@adamdotdevin commented on GitHub (Jun 16, 2025):

LOL this is #123

@adamdotdevin commented on GitHub (Jun 16, 2025): LOL this is #123
Author
Owner

@thdxr commented on GitHub (Jun 16, 2025):

added some validation and clearer copy for the auth part. provider config for openrouter is going to be handled separately, likely going to define the details in models.dev

@thdxr commented on GitHub (Jun 16, 2025): added some validation and clearer copy for the auth part. provider config for openrouter is going to be handled separately, likely going to define the details in models.dev
Author
Owner

@facelezzzz commented on GitHub (Jun 16, 2025):

It does not work.

Image
(base) under@underMacBook-Air ~ % opencode --version
0.1.63
@facelezzzz commented on GitHub (Jun 16, 2025): It does not work. <img width="1063" alt="Image" src="https://github.com/user-attachments/assets/709b07fd-af44-4d32-9aee-31e47b4251fc" /> ``` (base) under@underMacBook-Air ~ % opencode --version 0.1.63 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#70