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
The core issue appears to be related to opencode trying to create directories in ~/.local/share/opencode but lacking proper permissions. Issue #1856 was closed after a fix for directory creation, but your issue suggests the base directory creation might still have permission problems on macOS.
Feel free to ignore if none of these address your specific case.
Activity
github-actions commentedon Sep 4, 2025
This issue might be a duplicate of existing issues. Please check:
~/.local/share/opencode/bindirectory causes misleading ENOENT errors #1856: Similar directory creation issue in ~/.local/share/opencode (though that was specifically for the /bin subdirectory)Permission denied, open '/tmp/message.json' fatalwhen using multiple MacOS user accounts #359: Permission denied errors on macOS with multiple user accounts (different root cause but similar symptoms)The core issue appears to be related to opencode trying to create directories in ~/.local/share/opencode but lacking proper permissions. Issue #1856 was closed after a fix for directory creation, but your issue suggests the base directory creation might still have permission problems on macOS.
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Sep 4, 2025
@alexstyl what happens if you run:
mkdir -p ~/.local/share
chown -R $USER ~/.local
and then try again
alexstyl commentedon Oct 28, 2025
that did the trick. had to restart my terminal to be able to do do requests as it was giving me API call errors.
thanks
diptodesign commentedon Jul 10, 2026
Error: ENOENT: no such file or directory, mkdir 'C:\Users\user1.local\share\opencode'