Skip to content

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

@xboxfanj

Description

@xboxfanj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions