opencode
opencode copied to clipboard
Where is the opencode auth.json stored when installed by brew on Linux?
Question
According to the docs, it should be under ~/.local/share/opencode/auth.json, but even after running /connect and using a paying model there is no ~/.local/share/opencode directory.
This issue might be a duplicate of existing issues. Please check:
- #4170: Reorganize and document dirs for config, agents, auth credentials, sessions - comprehensively covers the issue of auth.json location and directory organization
- #5176: Install script should use XDG_DATA_HOME for binary location - addresses the XDG standard compliance issue that may be related to your auth.json path problem
- #2417: EACCES: permission denied, mkdir '/Users/user/.local/share/opencode' - similar issue with .local/share/opencode directory creation
Feel free to ignore if none of these address your specific case.
hm can u run: opencode auth list
and:
opencode debug paths