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 }}
Repository navigation
Opencode writes user-specific non-essential data to XDG_CONFIG_HOME #21966
Opencode uses .config/opencode to write a package.json, package-lock.json, bun.lock and dump a whole node_modules straight into the config directory.
As per the XDG Specification(alternate), XDG_CONFIG_HOME (earlier mentioned as ".config") is used for "user-specific configurations". Please do not dump what is mostly akin to junk into said config directory.
I wish you to seek the proper alternative. Indeed, the XDG Specification defines "user-specific non-essential (cached) data" to be written to to XDG_CACHE_HOME (or .cache to make simple).
Please write to .cache instead of .config
Thank you for your patience!
Plugins
None
OpenCode version
1.4.0
Steps to reproduce
$ pwd
[~]/.config/opencode
$ ls
opencode.json
$ opencode
$ ls
node_modules opencode.json package-lock.json package.json
Activity
github-actions commentedon Apr 11, 2026
This issue might be a duplicate of existing issues. Please check:
sergentbne commentedon Apr 11, 2026
duplicate. did not search enough. that being said. please fix