You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: YOLO Mode — Auto-Approve All Permission Prompts #11831
Add a YOLO mode that automatically approves all tool permission prompts (while still respecting explicit deny rules in config).
Motivation
Power users who fully trust OpenCode's actions often find permission prompts disruptive to their workflow. YOLO mode lets them skip all "ask" prompts while maintaining safety through explicit deny rules.
This is useful for:
Automated/CI workflows where no human is available to approve
Experienced users who want uninterrupted coding sessions
Quick prototyping where speed matters more than review
Changes
Backend (packages/opencode)
Yolo namespace (yolo/index.ts): Enable/disable/toggle with bus events
Flag (flag/flag.ts): OPENCODE_YOLO env var support
Permission (permission/next.ts): Auto-approve "ask" rules when YOLO is active (explicit "deny" rules are always respected)
Bootstrap (project/bootstrap.ts): Initialize YOLO on startup from config
Config (config/config.ts): yolo: boolean field
Server routes (server/routes/config.ts): GET/POST /config/yolo endpoints
Activity
mguttmann commentedon Feb 2, 2026
siscia commentedon Mar 13, 2026
I think it would be a great addition.
refactor: switch OpenCode to --prompt flag with OPENCODE_PERMISSION a…
LAP87 commentedon Apr 19, 2026
Please add
robertpro commentedon Apr 20, 2026
I would love this for subagents, is this considered?
mamalubitlal commentedon Apr 25, 2026
i would very like this,i sometimes have to go to some places so i leave opencode running and when i come back its a permission prompt
appleflyerv3 commentedon Apr 28, 2026
+1 good addition
kyboi commentedon May 14, 2026
Isn't this the same as configuring an agent in your opencode.jsonc and settings all perms to approve?
entrptaher commentedon Jun 11, 2026
Damn mimo forked opencode and added this. https://github.com/XiaomiMiMo/MiMo-Code/blob/4ef01a4c9fa8674ba03e4efc6b8424c6e800a936/packages/opencode/src/cli/cmd/tui/thread.ts#L104
feat(tui): add /yolo toggle for auto-approving permissions
feat(tui): add /yolo toggle for auto-approving permissions