
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
| Symptom | Cause | Fix | Tested by us? |
|---|---|---|---|
| Starts in Manual mode | defaultMode set in project or local settings | Use ~/.claude/settings.json or a flag | Yes |
Not in the Shift+Tab cycle | Session started without a bypass flag | Restart with --allow-dangerously-skip-permissions | Yes |
| “was disabled by settings” | disableBypassPermissionsMode is set | Remove it, or ask your admin | Yes |
not supported in restricted mode | --restricted flag | Drop one of the two flags | Yes |
| Claude Code exits at start | You declined the warning dialog | Choose “Yes, I accept” | Yes |
cannot be used with root/sudo | Running as root or with sudo | Run as a normal user or in a dev container | From the docs |
| Missing in VS Code or the desktop app | App toggle is off | Turn on the app’s bypass toggle | From the docs |
| Bypass is on but a command is refused | A deny or ask rule still applies | Expected; edit the rule if needed | Yes |
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.

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.

.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.

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:
- For one session, start with
claude --dangerously-skip-permissionsorclaude --permission-mode bypassPermissions. The two flags are equivalent. - For every session on your machine, move the setting to your user file,
~/.claude/settings.json. - 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.

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.

“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.

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
disableBypassPermissionsModeand 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 --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
bypassPermissionsdefault 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
bypassPermissionsdefault 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.

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.

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 ~orrm -rf /. - Claude’s own questions to you, and tools that need your answer.
- Reads or writes outside your working folders when
blockReadsOutsideWorkingDirectoriesorblockWritesOutsideWorkingDirectoriesis 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 mainIf 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.jsonand expecting it to work. - Pressing
Shift+Tabin 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 claudeto 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-permissionsso 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

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.


