You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 18, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 18, 2025. It is now read-only.
setting ENV variables helped. It wasn't obvious because README says "you can" set ENV variables, like it's an optional or alternative configuration method. I was expecting it to read the config
I think there is a bug, if I try to start opencode when the var is in the config but not set as environment variable I get this:
opencode --debug
Error: model not supported
Usage:
OpenCode [flags]
Flags:
-c, --cwd string Current working directory
-d, --debug Debug
-h, --help Help
-v, --version Version
Activity
kujtimiihoxha commentedon Apr 25, 2025
Hi, so by default you should not need any config, the issue you have might be related to #62 (comment)
Basically we need to handle messaging better but if there are no env variables that configure a provider it will respond with that message
nixoid commentedon Apr 26, 2025
setting ENV variables helped. It wasn't obvious because README says "you can" set ENV variables, like it's an optional or alternative configuration method. I was expecting it to read the config
kujtimiihoxha commentedon Apr 26, 2025
Yeah I need to rewrite the readme, its not the best.
kujtimiihoxha commentedon Apr 26, 2025
Also if you setup the apiKey in the local config it should actually work without the env variable so if that does not work it is a bug.
rekram1-node commentedon Apr 28, 2025
I think there is a bug, if I try to start opencode when the var is in the config but not set as environment variable I get this: