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

Open
opened 2026-02-16 17:39:56 -05:00 by yindo · 2 comments
Owner

Originally created by @nagyv on GitHub (Dec 8, 2025).

Originally assigned to: @rekram1-node on GitHub.

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.

Originally created by @nagyv on GitHub (Dec 8, 2025). Originally assigned to: @rekram1-node on GitHub. ### Question According to [the docs](https://opencode.ai/docs/providers/#credentials), 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.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 8, 2025):

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] commented on GitHub (Dec 8, 2025): 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.
Author
Owner

@rekram1-node commented on GitHub (Dec 8, 2025):

hm can u run: opencode auth list

and:
opencode debug paths

@rekram1-node commented on GitHub (Dec 8, 2025): hm can u run: `opencode auth list` and: `opencode debug paths`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3400