Claude Code full-access mode

Run Claude Code without permission prompts with claude --dangerously-skip-permissions. What it changes, what it still blocks, and the machines where it is safe.

Updated November 23, 2026 · Checked against Claude Code 2.1.308 in EnvHaven v1.9.0

In EnvHaven: The image writes defaultMode: "bypassPermissions" into the workspace user’s own settings, so claude starts without prompts, as an unprivileged user. 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:

claude --dangerously-skip-permissions

Or by permission mode:

claude --permission-mode bypassPermissions

As the default, in ~/.claude/settings.json:

{
  "permissions": { "defaultMode": "bypassPermissions" }
}

What it does

Bypass mode runs every tool without asking, with two exceptions worth knowing. Claude Code refuses it as root or under sudo (“--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons”) unless it detects a recognized sandbox, and it ignores the setting in a project’s .claude/settings.json. rm on critical paths still asks, with a two-minute countdown before it denies.

Milder settings

The other permission modes are acceptEdits, auto, dontAsk, manual and plan, set with --permission-mode or cycled with Shift+Tab.

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. The image writes defaultMode: "bypassPermissions" into the workspace user’s own settings, so claude starts without prompts, as an unprivileged user. 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 Claude Code’s own defaults back.

How this was checked

From the help text of Claude Code 2.1.308, as shipped in EnvHaven v1.9.0:

--dangerously-skip-permissions Bypass all permission checks.
--permission-mode <mode> Permission mode to use for the session