Claude Code Bypass Permissions Mode Not Working or Disabled? Every Cause and Fix

Claude Code Bypass Permissions Mode Not Working or Disabled? Every Cause and Fix

Is Claude Code bypass permissions not working for you? The most common reason is simple: bypass mode can only be switched on when a session starts, and only from certain places. If you set "defaultMode": "bypassPermissions" in your project’s .claude/settings.json, Claude Code ignores it and starts in Manual mode, and bypass never shows up when you press Shift+Tab.

The quick fix: start Claude Code with claude --dangerously-skip-permissions (or --permission-mode bypassPermissions), or move the defaultMode line to your user file, ~/.claude/settings.json. If the status bar says “Bypass permissions mode was disabled by settings”, a disableBypassPermissionsMode setting is blocking it, and you need to remove it or ask your admin.

Other causes include the --restricted flag, running as root or with sudo, the IDE and desktop toggles, and cloud sessions that don’t offer the mode at all. We reproduced each cause we safely could in a real session below.

Browse all our Claude Code tutorials for more fixes and how-tos.

Tested with Claude Code v2.1.332 on macOS on November 30, 2026. We used a throwaway folder called recipe-box with two text files and no git remote, and we started Claude Code with project and local settings only, so nothing in our real setup changed.

We tested on macOS; the Windows and Linux steps follow Anthropic’s official instructions. The startup rules for bypass mode are the same on every system, except the root check, which applies to macOS and Linux.

Quick Summary

SymptomCauseFixTested by us?
Starts in Manual modedefaultMode set in project or local settingsUse ~/.claude/settings.json or a flagYes
Not in the Shift+Tab cycleSession started without a bypass flagRestart with --allow-dangerously-skip-permissionsYes
“was disabled by settings”disableBypassPermissionsMode is setRemove it, or ask your adminYes
not supported in restricted mode--restricted flagDrop one of the two flagsYes
Claude Code exits at startYou declined the warning dialogChoose “Yes, I accept”Yes
cannot be used with root/sudoRunning as root or with sudoRun as a normal user or in a dev containerFrom the docs
Missing in VS Code or the desktop appApp toggle is offTurn on the app’s bypass toggleFrom the docs
Bypass is on but a command is refusedA deny or ask rule still appliesExpected; edit the rule if neededYes

What Claude Code Bypass Permissions Mode Does

Bypass permissions mode, called bypassPermissions in settings, turns off permission prompts and most safety checks. Tool calls run right away, including file edits, shell commands and writes to protected folders like .git and .claude.

Because it is so risky, Anthropic made it hard to turn on by accident. The permission modes documentation says you can’t enter bypass mode from a session you started without it enabled. It also warns that the mode offers no protection against prompt injection and should only be used in containers or virtual machines you can throw away.

If you are new to modes in general, our guide to permission modes explains Manual, accept edits, plan and auto first.

Bypass mode is a startup choice. If the session didn’t start with it allowed, no key press will turn it on.

Decision ladder showing why Claude Code bypass permissions mode won't turn on: disable setting, restricted or root, project defaultMode, no flag, app toggles
Work down the list; the first match is usually the reason bypass mode won’t start.

Cause 1: defaultMode Is Set in the Project File

This is the cause we see most often. You add defaultMode to the project’s settings file, expecting every session in that folder to start in bypass mode.

Project .claude/settings.json with permissions defaultMode set to bypassPermissions in Claude Code v2.1.332
Our test project sets bypass as the default in .claude/settings.json.

We started a plain claude session in that folder. The status bar showed “manual mode on”, not bypass. No error or warning appeared, which is why this one feels like a bug.

Claude Code status bar shows manual mode on even though the project settings ask for bypassPermissions
The session starts in Manual mode; the project setting is silently ignored.

Then we pressed Shift+Tab five times. The cycle went from Manual to accept edits, plan, auto and back to Manual. Bypass never appeared.

It is by design: the settings documentation says the auto and bypassPermissions values for defaultMode don’t take effect from project or local settings. Before v2.1.257, bypass worked from any file, so older guides may tell you otherwise. The rule stops a cloned repository from switching off your prompts without you noticing.

The fix

Pick one of these:

  1. For one session, start with claude --dangerously-skip-permissions or claude --permission-mode bypassPermissions. The two flags are equivalent.
  2. For every session on your machine, move the setting to your user file, ~/.claude/settings.json.
  3. For a team, set it in managed settings, or pass a file with --settings.
{
  "permissions": {
    "defaultMode": "bypassPermissions"
  }
}

If you aren’t sure which file is which, our map of settings file locations shows every path.

Cause 2: Bypass Is Missing From the Shift+Tab Cycle

Many people start Claude Code normally and then look for bypass in the Shift+Tab cycle. It isn’t there unless the session started with bypass allowed.

If you want to start in a safer mode but keep bypass one key press away, use --allow-dangerously-skip-permissions. It adds bypass to the cycle without turning it on.

Claude Code started with --allow-dangerously-skip-permissions shows bypass permissions on after pressing Shift+Tab
With the allow flag, bypass sits in the cycle between plan and auto.

Our session started in auto mode. Four presses of Shift+Tab went Manual, accept edits, plan, then “bypass permissions on”. The next press went to auto.

Notice the message above the prompt. Claude Code warns that because bypass is available, plan mode won’t ask before most edits or commands. That matches the docs: in an interactive terminal session with bypass available, don’t rely on plan mode to block anything.

Cause 3: You Declined the Warning Dialog

The first time a session starts in bypass mode, Claude Code shows a red warning. It asks you to accept responsibility for actions taken without permission checks.

Claude Code WARNING: Claude Code running in Bypass Permissions mode dialog with No, exit and Yes, I accept options
“No, exit” is selected by default; Enter or Esc on it closes Claude Code.

“No, exit” is highlighted by default. We pressed Esc, and Claude Code closed and dropped us back at the shell prompt. If you press Enter too fast, it looks like bypass “crashed” Claude Code, but it simply exited as you asked.

When you choose “Yes, I accept”, Claude Code writes "skipDangerousModePermissionPrompt": true to ~/.claude/settings.json, so later sessions skip the dialog. To see it again, remove that key or set it to false.

The dialog keeps coming back

We saw this ourselves. Our test sessions used --setting-sources project,local, which leaves out user settings, so the dialog appeared even though the key can live there. The docs confirm that passing --setting-sources without user can bring the dialog back; add user to the list to skip it.

The key also works from .claude/settings.local.json or a --settings file for interactive sessions. Background sessions and claude agents only count user and managed settings, though.

Cause 4: disableBypassPermissionsMode Blocks It

If someone set "disableBypassPermissionsMode": "disable", bypass mode is off no matter which flag you pass. Companies usually put it in managed settings so developers can’t override it, but it works from any settings file. You can even set it yourself to lock yourself out.

We added it to our local settings and ran claude --dangerously-skip-permissions. Claude Code didn’t exit. It started in auto mode, and a gray notice flashed in the status bar for a moment.

Claude Code status bar notice: Bypass permissions mode was disabled by settings, session starts in auto mode
The notice reads “Bypass permissions mode was disabled by settings”, and the session falls back to auto mode.

The notice was gone by the time the session settled, so it is easy to miss. We got the same result with --permission-mode bypassPermissions, and Shift+Tab never offered bypass. The setting also stops subagents that ask for permissionMode: bypassPermissions; they run in the parent session’s mode instead.

The fix

  • Search your user, project and local settings files for disableBypassPermissionsMode and remove it if you added it.
  • If it comes from managed settings, only your admin can change it. Ask whether auto mode is allowed instead.
  • Remember that this kind of setting is a lock: the strictest value from any file wins.

Cause 5: The –restricted Flag or Root User

Restricted mode is meant for evaluation harnesses. It removes tools that run commands and refuses bypass mode outright.

Claude Code Error: bypassPermissions not supported in restricted mode after running claude --restricted --dangerously-skip-permissions
Running claude --restricted --dangerously-skip-permissions stops right away with this error.

The fix is to drop one of the two. The CLAUDE_CODE_RESTRICTED environment variable has the same effect, so check for it too if you never typed the flag.

On macOS and Linux, Claude Code also refuses to start in bypass mode as root or under sudo, with the message --dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons. We didn’t run Claude Code as root. Our separate guide to the root sudo error covers that fix in depth, and Anthropic’s dev container setup runs Claude Code as a normal user.

Cause 6: VS Code, the Desktop App or a Cloud Session

Each app has its own switch, and the terminal flags don’t apply there. These steps come from the official docs; we didn’t test the apps for this post.

  • VS Code: turn on the Allow dangerously skip permissions setting in the extension. Without it, bypass doesn’t appear in the mode indicator, and a bypassPermissions default starts the chat in Manual. The extension also never reads project settings for the starting mode.
  • Desktop app: turn on the Allow bypass permissions mode toggle in settings on Pro, Max and Ultra plans. On Team and Enterprise plans, your organization’s policy decides.
  • Cloud sessions on the web: bypass isn’t offered, and a bypassPermissions default from settings is silently ignored.
  • Remote Control: you can’t pick bypass from the phone or web app.

Background sessions have one more catch. If your acceptance of the warning isn’t in user or managed settings, you’ll see “Bypass permissions was requested at launch and ignored”. Add "skipDangerousModePermissionPrompt": true to ~/.claude/settings.json and start a new background session.

Claude Code Bypass Permissions Is On, but Things Still Get Blocked

Sometimes bypass mode is clearly on, yet a command is still refused or a prompt still appears. That isn’t a broken mode. Some checks apply in every mode.

To show this, we kept a deny rule for Bash(git push *) in the project file and started in bypass mode. Then we asked Claude to run git push origin main.

Claude Code in bypass permissions mode still denies git push origin main because of a deny rule
The status bar says bypass is on, yet the deny rule still refuses the push.

The call was refused with “Permission to use Bash with command git push origin main has been denied.” Claude even explained that a deny rule still blocks matching commands in bypass mode, and pointed to the files to check.

Diagram of what still stops Claude Code in bypass permissions mode: deny rules, ask rules, critical-path removals and questions
Bypass removes prompts, but these four checks still apply.

Per the docs, these still end in a prompt or a refusal in bypass mode:

  • Deny rules that match the call. If one seems to miss, see our guide to failing deny rules.
  • Explicit ask rules, which still show a prompt.
  • Dangerous removals such as rm -rf ~ or rm -rf /.
  • Claude’s own questions to you, and tools that need your answer.
  • Reads or writes outside your working folders when blockReadsOutsideWorkingDirectories or blockWritesOutsideWorkingDirectories is on.

Our explainer on permission rules shows how to adjust them.

Try It Yourself

Make a throwaway folder, add a deny rule for Bash(git push *) to .claude/settings.json, and start Claude Code with claude --dangerously-skip-permissions. Accept the warning only if you’re fine with the key being saved to your user settings. Then paste this prompt:

This is a throwaway folder with no git remote, and I am testing my permission mode.
Run exactly this command once and nothing else: git push origin main

If the status bar reads “bypass permissions on” and the push is refused, both your mode and your deny rule work. Next, move defaultMode into the project file, start without a flag, and watch it fall back to Manual.

Common Mistakes

  • Putting "defaultMode": "bypassPermissions" in .claude/settings.json and expecting it to work.
  • Pressing Shift+Tab in a session that started without any bypass flag.
  • Hitting Enter on “No, exit” and thinking Claude Code crashed.
  • Missing the short “disabled by settings” notice in the status bar.
  • Running sudo claude to get past a file permission error.
  • Using bypass mode on your main machine instead of a container or VM.

Pro Tips

  • Try auto mode first. A background check reviews risky actions, and you still get far fewer prompts. Our guide to fewer permission prompts compares the options.
  • Use --allow-dangerously-skip-permissions so you only switch to bypass when you need it.
  • Keep deny rules for pushes, deploys and secrets even in bypass mode.
  • Run long unattended jobs in a dev container, which also avoids the root error.
  • Check the status bar color: bypass shows in red as “bypass permissions on”.

For other startup problems, our list of common errors is a good next stop.

Cheat Sheet

Cheat sheet for Claude Code bypass permissions not working: flags to turn it on, default settings, what blocks it and what still stops in bypass
Keep this handy when bypass permissions mode won’t turn on.

Frequently Asked Questions

Why doesn’t Shift+Tab show bypass permissions?

Bypass only joins the cycle when the session starts with --dangerously-skip-permissions, --permission-mode bypassPermissions, --allow-dangerously-skip-permissions, or a bypassPermissions default from user, managed or --settings files. Restart with one of those.

Why does my project settings.json bypass setting do nothing?

Since v2.1.257, Claude Code ignores bypassPermissions as a default in project and local settings and starts in Manual mode. Put it in ~/.claude/settings.json or use a flag.

What does “Bypass permissions mode was disabled by settings” mean?

A settings file sets disableBypassPermissionsMode to "disable". In our test the session started in auto mode instead. Remove the key if you added it, or ask your admin if it comes from managed settings.

Is –dangerously-skip-permissions the same as bypassPermissions?

Yes. The docs call the flag equivalent to --permission-mode bypassPermissions. Both start the session in bypass mode and show the same warning the first time.

Does bypass mode ignore deny rules?

No. A matching deny rule blocks the call in every mode, which we confirmed with a git push test. Ask rules and dangerous removals still prompt too.

Conclusion

When Claude Code bypass permissions is not working, the mode is usually doing exactly what it was built to do. In our tests, a project-level defaultMode quietly fell back to Manual, a session without a flag never offered bypass in the Shift+Tab cycle, disableBypassPermissionsMode pushed the session into auto mode, and --restricted refused it outright. Start with a bypass flag or use your user settings file, check for the disable setting, and keep deny rules in place, ideally inside a container. For more on the model behind the tool, see our Claude AI overview.

Newsletter

New AI tools in your inbox

The best new tools and the AI news that matters, in one short email. Unsubscribe any time.

Free · No spam · Unsubscribe any time

✓ Looks like you’re subscribed

Loading Google’s sign-up form…

Looks like you’re already subscribed

Thanks for reading! New AI tools and the AI news that matters will land in your inbox.

Not subscribed yet? Refresh the page to load the sign-up form.

The sign-up form couldn’t load. If you use an ad or content blocker, allow news.google.com and reload the page.

Free instant check before you pay. Takes a few seconds.

Scroll to Top