Qwen Code full-access mode

Run Qwen Code without permission prompts with qwen --yolo. What it changes, what it still blocks, and the machines where it is safe.

Updated November 23, 2026 · Checked against Qwen Code 0.24.6 in EnvHaven v1.9.0

In EnvHaven: Runs with the default approval mode; add --yolo for unattended runs. Each workspace is its own Linux machine, so full access stays contained there. On any other machine, here is the switch, what it changes and where it is safe.

The switch

For one session:

qwen --yolo

Or by approval mode:

qwen --approval-mode yolo

What it does

--yolo approves every action automatically and adds no sandbox. Without it, trusted folders start in auto mode, where a model classifies each risky call and approves or blocks it.

Milder settings

--approval-mode also takes plan, default, auto-edit and auto, and Shift+Tab cycles through them in a session.

Where full access is safe

  • On your everyday computer: rarely. An agent with full access can delete files, read credentials and run anything a mistyped instruction or a malicious README suggests.
  • In a container or VM that holds nothing you would miss: yes. A mistake costs a rebuild.
  • In an EnvHaven workspace: by default. Runs with the default approval mode; add --yolo for unattended runs. The workspace is a separate Linux machine, so the worst case stays there.

Turning prompts back on

Leave out the flag, or reset the setting you changed. In a workspace, the setting EnvHaven applies is described above, and editing or removing it brings Qwen Code’s own defaults back.

How this was checked

From the help text of Qwen Code 0.24.6, as shipped in EnvHaven v1.9.0:

-y, --yolo Automatically accept all actions (aka YOLO mode, see https://www.youtube.com/watch?v=xvFZjo5PgG0 for more details)? [boolean] [default: false]
--approval-mode Set the approval mode: plan (Analyze only, do not modify files or execute commands), default (Require approval for file edits or shell commands), auto-edit (Automatically approve file edits), auto (LLM classifier auto-approves safe actions, blocks risky ones), yolo (Automatically approve all tools) [string] [choices: "plan", "default", "auto-edit", "auto", "yolo"]