Hello,
I am experiencing an issue where the opencode CLI completely ignores the configuration file and always starts in the interactive "Add credential" setup mode.
My Environment:
- (Linux Mint Cinnamon 22`)
Troubleshooting Steps Performed:
We have systematically tried everything to fix this, but the issue persists:
- Confirmed
~/.opencode.json has the correct name, location, and read permissions.
- Confirmed the JSON content is valid and syntactically correct.
- Removed a potentially conflicting
~/.config/opencode directory.
- Tried moving the config file to the primary location at
~/.config/opencode/.opencode.json.
- Recreated the file cleanly using
cat << EOF to eliminate any hidden character issues.
None of these steps solved the problem. It seems to be a bug in the application that prevents it from reading any user-provided configuration on my system.
We also noticed the documentation at https://opencode.ai/docs/local is confusing, as it shows a configuration format for a web/JS context, not for the standalone CLI tool.
Thank you for looking into this.
Hello,
I am experiencing an issue where the
opencodeCLI completely ignores the configuration file and always starts in the interactive "Add credential" setup mode.My Environment:
Troubleshooting Steps Performed:
We have systematically tried everything to fix this, but the issue persists:
~/.opencode.jsonhas the correct name, location, and read permissions.~/.config/opencodedirectory.~/.config/opencode/.opencode.json.cat << EOFto eliminate any hidden character issues.None of these steps solved the problem. It seems to be a bug in the application that prevents it from reading any user-provided configuration on my system.
We also noticed the documentation at
https://opencode.ai/docs/localis confusing, as it shows a configuration format for a web/JS context, not for the standalone CLI tool.Thank you for looking into this.