opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Where is the opencode auth.json stored when installed by brew on Linux?

Open nagyv opened this issue 1 month ago • 2 comments

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.

nagyv avatar Dec 08 '25 14:12 nagyv

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.

github-actions[bot] avatar Dec 08 '25 14:12 github-actions[bot]

hm can u run: opencode auth list

and: opencode debug paths

rekram1-node avatar Dec 08 '25 17:12 rekram1-node