Uh oh!
There was an error while loading. Please reload this page.
feat: add --dangerously-skip-permissions flag - #7137
Conversation
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
# Conflicts: # packages/opencode/src/cli/cmd/tui/routes/home.tsx # packages/opencode/src/cli/cmd/tui/thread.ts
9b84229 to
e6ed117CompareHey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
--dangerously-skip-permissions aka YOLO modef1ae801 to
08fa7f7Comparemguttmann
commented
Feb 2, 2026
For reference — I've implemented a more comprehensive YOLO mode in PR #11833 that builds on this concept with additional safety and UX:
Tracking issue: #11831 |
phillmorgan28
commented
Feb 19, 2026
any progress on this? |
Winter-Dry
commented
Feb 24, 2026
I really need this feature, when can ths feature get merged! |
dingkwang
commented
Mar 3, 2026
Looks good! |
fiesh
commented
Mar 25, 2026
Any news on this? It's quite annoying that there is no way to disable rather pointless security mechanism. Running the server in a podman container should be the default anyway, and there it's basically superfluous. |
Actually, it seems I have found a way around this: specify |
fiesh
commented
Mar 26, 2026
Actually, that also doesn't seem to work... sigh. |
fiesh
commented
Mar 26, 2026
Ok so it works out of the box with a fresh config, without any |
mystery4f
commented
Apr 23, 2026
When will this be available for use? I really want it. |
surma
commented
May 17, 2026
This PR is prob wildly outdated now. I am sure one of the many other ones can land :) |
I don't know if you all have any interest in this, but I whipped this up because I really enjoy the simplicity of this flag in Claude Code.
So this adds a CLI flag and environment variable to bypass all permission prompts, similar to Claude Code's implementation.
Happy to take feedback or just throw this away if you don't think this is the right approach.
Usage
Behavior
askpermission prompts (auto-allows)denyrules still apply (explicit denies are respected)Changes
flag.ts: AddOPENCODE_DANGEROUSLY_SKIP_PERMISSIONSenv varpermission/next.ts: AddskipPermissionsstate and bypass logic inask()run.ts: Add--dangerously-skip-permissionsoptionthread.ts: Add--dangerously-skip-permissionsoption, propagate to TUI via argsargs.tsx: AdddangerouslySkipPermissionsto Args interfacehome.tsx,footer.tsx,sidebar.tsx: Show warning indicator when enabledFixes#8463