Skip to content

[FEATURE]: Move the node_modules folder out of ~/.config on Mac #43107

Closed

Description

@justauserid

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

It's a config folder.
Not a folder for installing Node dependencies.
So node_modules folder ought not to be there, along with package.json file.

Activity

  1. github-actions commented on Aug 17, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. neriousy commented on Oct 19, 2026

    @neriousy
    Member

    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.

  3. justauserid commented on Oct 20, 2026

    @justauserid
    Author

    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:

    1. What is "its cache directory"?
    2. 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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions