opencode icon indicating copy to clipboard operation
opencode copied to clipboard

EACCES: permission denied, mkdir '/Users/user/.local/share/opencode'

Open xboxfanj opened this issue 1 week ago • 3 comments

Description

Same as #2417, installed on macOS using brew. I believe this may be because .local/share already existed since I had PowerShell and uv installed, which use the same path. I used the commands posted at #2417 to fix it and that worked (had to run chown with sudo), but this is likely to happen for others as well, so perhaps it can be fixed, worked around, or documented better. A different path such as ~/.opencode may be better since it won't conflict with anything else. Otherwise, it could be added to the troubleshooting section of the site or fixed in a different way.

opencode EACCES: permission denied, mkdir '/Users/jake/.local/share/opencode' path: "/Users/jake/.local/share/opencode", syscall: "mkdir", errno: -13, code: "EACCES"

OpenCode version

1.0.207

Steps to reproduce

  1. brew install opencode
  2. opencode

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

macOS Terminal

xboxfanj avatar Dec 29 '25 08:12 xboxfanj