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 }}
[FEATURE]: Move the node_modules folder out of ~/.config on Mac #43107
V2 installs managed plugin and provider dependencies under its cache directory, not inside ~/.config/opencode. This removes the automatic node_modules and package manifest creation from the configuration folder. To get v2: npm i -g @opencode/cli@latest or curl -fsSL https://opencode.ai/v2/install | bash (desktop: update the app). If you still see this on v2, please open a new issue with the details.
6. V2 installs managed plugin and provider dependencies under its cache directory
Would you like to share where that is? What should remain and what could be deleted?
Because there's node_modules in ~/.opencode now and one still at ~/.config/opencode. While the ~/.cache/opencode only has bin/rg and a models.json.
Then there's ~/.local/share/opencode and no node_modules there. And there is also ~/.local/state/opencode.
To get v2
Already upgrade to v2 via the prompt indide v1.
So again:
What is "its cache directory"?
I followed the migration path – do you folks now what should have been deleted or moved to a backup/archive folder but wasn't done? Of if not can you please find out at least share that?
Activity
github-actions commentedon Aug 17, 2026
This issue might be a duplicate of existing issues. Please check:
node_modules,package.json, and related files are placed in~/.config/opencodeinstead of a more appropriate directory (XDG~/.local/share). That issue covers Linux as well, but the underlying problem and request are the same.neriousy commentedon Oct 19, 2026
V2 installs managed plugin and provider dependencies under its cache directory, not inside ~/.config/opencode. This removes the automatic node_modules and package manifest creation from the configuration folder. To get v2:
npm i -g @opencode/cli@latestorcurl -fsSL https://opencode.ai/v2/install | bash(desktop: update the app). If you still see this on v2, please open a new issue with the details.justauserid commentedon Oct 20, 2026
Would you like to share where that is? What should remain and what could be deleted?
Because there's
node_modulesin~/.opencodenow and one still at~/.config/opencode. While the~/.cache/opencodeonly hasbin/rgand a models.json.Then there's
~/.local/share/opencodeand nonode_modulesthere. And there is also~/.local/state/opencode.Already upgrade to v2 via the prompt indide v1.
So again: