Skip to content
← All guides

Claude Code --dangerously-skip-permissions: what it does

What claude --dangerously-skip-permissions does today, what still prompts, how to lock it out with a managed setting, and safer modes to use instead.

4 min read

claude --dangerously-skip-permissions starts Claude Code in bypassPermissions mode. Claude Code’s docs say this mode skips permission prompts, including for writes to protected paths such as .git and .claude, and that it offers no protection against prompt injection or unintended actions. The docs recommend it only for isolated environments like containers or VMs. The community nickname is “yolo mode.” The docs don’t use that name.

What the flag does

The docs list these two commands as equivalent.

claude --permission-mode bypassPermissions
claude --dangerously-skip-permissions

The installed help for Claude Code 2.1.322 describes the flag as “Bypass all permission checks” and recommends it only for sandboxes with no internet access. A second flag, --allow-dangerously-skip-permissions, adds the mode to the Shift+Tab cycle without activating it. The docs add that you can’t enter bypassPermissions from a session that was started without it enabled. On Linux and macOS, Claude Code refuses to run the mode as root or under sudo.

What still stops it

Bypass is not a total removal of checks. Per the permission modes page, these still prompt in every mode, including bypass.

  • Tools matched by an explicit ask rule.
  • Connector tools your organization set to ask.
  • AskUserQuestion and MCP tools marked requiresUserInteraction.
  • Recognized rm and rmdir removals of critical paths.
  • Cross-session messaging safeguards.

Deny rules block in every mode, including bypass. Allow rules have no effect in bypass, because everything is already allowed. That makes deny rules the main tool for keeping a bypass session on a short leash. They only match what the rule syntax can see, so a deny rule on Bash(rm *) does not match /bin/rm or bash -c 'rm …', per the permissions page. See Claude Code permissions.

Turn it off for everyone

Set permissions.disableBypassPermissionsMode to "disable". The docs say it is most useful in managed settings, where users can’t override it, and that it works from any scope, so you can also lock yourself out.

{
  "permissions": {
    "disableBypassPermissionsMode": "disable"
  }
}

On a Mac, the managed file is /Library/Application Support/ClaudeCode/managed-settings.json, or the com.anthropic.claudecode managed preferences domain for MDM. permissions.disableAutoMode does the same for auto mode.

Safer ways to get fewer prompts

OptionWhat it does
acceptEditsAccepts file edits and common filesystem commands such as mkdir, touch, mv and cp in the working directory or added directories.
autoA background classifier checks actions such as shell commands and network requests against your request. The docs say it reduces prompts but does not guarantee safety.
Allow rulesPre-approve exact commands, such as Bash(npm run test *), and keep everything else prompting.
dontAskDenies every call that would prompt. Pre-approved tools still run. Built for CI.
Native sandboxLimits what shell commands can write and reach, whatever the mode. See Claude Code sandbox.

Auto mode’s classifier blocks things like curl | bash, force pushes and git reset --hard by default, and the docs say auto mode pauses and prompts again after 3 blocks in a row or 20 in total.

When bypass is reasonable

Use it when the machine is the sandbox, such as a disposable VM or container with no credentials and no route to anything you care about. On your daily Mac, with your keys and repos in reach, speed is the risk. An unattended agent can run hundreds of commands before you look. If you must run unattended, combine bypass with deny rules, the sandbox and a branch protection rule on the Git host. Afterward, read what happened. Check what your AI agents did.

Checked against the vendor documentation on November 25, 2026. Permissions · Permission modes · Managed settings

Where Excellent fits

Excellent’s free scan reads supported logs on the Mac and reports findings for review. It reads the session logs of Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code. For a local report without installing an app, run the free scan. Its script uses Python 3.9 or later when your Mac has it and the shell when it doesn’t, reads the logs locally and makes no network requests. See a sample report.

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. Pro can also configure Claude Code’s native Mac sandbox from your file and folder rules, with a plan to review first. Pro is US-only for now. Sandbox setup · Pricing

Related guides

View all