EACCES: permission denied, mkdir /.opencode (errno -13) in Plan mode #5651

Open
opened 2026-02-16 17:55:11 -05:00 by yindo · 0 comments
Owner

Originally created by @DitherDude on GitHub (Jan 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Occurs only in planmode, whether using the experimental feature flag (as shown in the X post) or not.

EACCES: permission denied, mkdir `/.opencode`
path: "/.opencode",
scall: "mkdir",
errno: -13,
c{this part is cut off by the text "Plan {model} {provider}

Between you and me, I would really prefer if there wasn't an .opencode directory at the root of my OS

opencode called in /home/dither/{project} via opencode (do I need to opencode .?)

Plugins

None/Vanilla

OpenCode version

1.1.19 (released 5hrs ago)

Steps to reproduce

  1. Open opencode via opencode (with/-out export OPENCODE_EXPERIMENTAL_PLAN_MODE=1 in ~/.bashrc)
  2. Do anything in buildmode. All OK
  3. Try a prompt in Plan mode. Error above. Agent will not complete task

Screenshot and/or share link

https://github.com/user-attachments/assets/623c060e-bbc0-4190-9e64-e15689a002c5 (video shows with experimental plan mode enabled via ~/.bashrc)

Operating System

Ubuntu 24.04.3 LTS/Linux cascade 6.8.0-90-generic # 91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Terminal

bash via Kitty over ssh (also bash)

Originally created by @DitherDude on GitHub (Jan 14, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Occurs only in planmode, whether using the experimental feature flag (as shown in the X post) or not. ``` EACCES: permission denied, mkdir `/.opencode` path: "/.opencode", scall: "mkdir", errno: -13, c{this part is cut off by the text "Plan {model} {provider} ``` Between you and me, I would really prefer if there wasn't an `.opencode` directory at the root of my OS opencode called in `/home/dither/{project}` via `opencode` (do I need to `opencode .`?) ### Plugins None/Vanilla ### OpenCode version 1.1.19 (released 5hrs ago) ### Steps to reproduce 1. Open opencode via `opencode` (with/-out `export OPENCODE_EXPERIMENTAL_PLAN_MODE=1` in `~/.bashrc`) 2. Do anything in buildmode. All OK 3. Try a prompt in Plan mode. Error above. Agent will not complete task ### Screenshot and/or share link https://github.com/user-attachments/assets/623c060e-bbc0-4190-9e64-e15689a002c5 (video shows **with** experimental plan mode enabled via ~/.bashrc) ### Operating System Ubuntu 24.04.3 LTS/Linux cascade 6.8.0-90-generic # 91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux ### Terminal bash via Kitty over ssh (also bash)
yindo added the bug label 2026-02-16 17:55:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5651