opencode icon indicating copy to clipboard operation
opencode copied to clipboard

permission denied, open /.claude

Open michabbb opened this issue 2 weeks ago • 2 comments

Description

i installed opencode (via npm and curl, same problem) on a new host (as none-root user) - but i don´t really understad why opencode is trying to read /.claude - i would understand if opencode tries to read .claude in the same directory, but /.claude is strange....

i verfied with strace, althoug i am running opencode as user micha, it tries to read /.claude.

you can argue: .claude should exist only in /root/.claude but not in /.claude. but the point is: opencode is not usable because of this directory that belongs to root.

opencode should still work even if a none relevant folder is not accessable 😏

Image

Plugins

none, fresh install (as none-root user)

OpenCode version

1.0.223

Steps to reproduce

create a folder /.claude that belongs to root that is only readable by root run opencode (on linux)

Screenshot and/or share link

No response

Operating System

arch linux (omarchy)

Terminal

ghostty

michabbb avatar Jan 03 '26 18:01 michabbb