Skip to content

feat: YOLO Mode - Skip Permission Prompts #9070

@mguttmann

Description

@mguttmann

Summary

Add a "YOLO Mode" that allows users to skip all permission prompts, similar to Claude Code's --dangerously-skip-permissions flag.

Use Case: Power users who trust OpenCode and want faster workflow without constant permission confirmations.

Proposed Implementation

Backend

  • Add OPENCODE_YOLO environment variable flag
  • Add yolo: boolean config option in opencode.json
  • Modify PermissionNext.ask() to auto-approve when YOLO mode is enabled
  • Add runtime state that can be toggled without restart

Server API

  • GET /config/yolo - Check current YOLO mode status
  • POST /config/yolo - Toggle YOLO mode at runtime

CLI

  • Add --yolo or --dangerously-skip-permissions flag
  • Add opencode yolo status/enable/disable commands
  • Example: opencode --yolo or OPENCODE_YOLO=true opencode

Desktop App

  • Add "Danger Zone" tab in Settings dialog
  • Toggle switches for:
    • This Session Only - Resets on restart
    • Always Enabled - Persists to config
  • Prominent warning messaging about the risks

Safety Considerations

  • Clear warning messaging in both CLI and Desktop
  • Not enabled by default
  • Session-based option available (does not persist across restarts)
  • Still respects explicit deny rules in config

Dependencies

Acceptance Criteria

  • OPENCODE_YOLO=true env var enables YOLO mode
  • opencode --yolo CLI flag works
  • opencode yolo status/enable/disable commands work
  • Config option "yolo": true in opencode.json works
  • Desktop Settings shows Danger Zone tab with toggle
  • Toggle updates server state immediately
  • All permission prompts are auto-approved in YOLO mode
  • Clear warning messaging is displayed
  • Session vs Permanent mode options available

Implementation

PR #9073 implements all features described above.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions