Claude Code has six permission modes. default (Manual) asks before edits and commands, acceptEdits auto-approves file edits, plan explores without editing, auto lets a classifier review actions, dontAsk denies anything not pre-approved, and bypassPermissions skips prompts for isolated environments. Switch with Shift+Tab, --permission-mode, or permissions.defaultMode.
Claude Code permission modes set how much the agent can do without asking you, for a whole session. There are six: default (labeled Manual), acceptEdits, plan, auto, dontAsk and bypassPermissions. You switch between them with Shift+Tab, start in one with --permission-mode, or set a default with permissions.defaultMode in settings.
Modes sit on top of your permission rules. Deny rules apply in every mode, including bypassPermissions. If you are new to rules, start with the complete guide to Claude Code permissions.
What are the Claude Code permission modes?
Here are the six Claude Code permission modes, with the label the CLI shows in its status bar and what runs without a prompt:
| Mode | CLI label | What runs without asking |
|---|---|---|
default | manual mode on | File reads in the working directories and actions that need no approval |
acceptEdits | accept edits on | Reads, file edits and common filesystem commands in scope |
plan | plan mode on | Reads and exploration; no edits to your source files |
auto | auto mode on | Most actions, after a background classifier reviews them |
dontAsk | don't ask on | Reads and pre-approved tools; anything that would prompt is denied |
bypassPermissions | bypass permissions on | Everything except a short list of protected actions |
Claude Code accepts manual as an alias for default.
Default (Manual) mode
In Manual mode, Claude Code prompts before most file edits, shell commands and network requests. Reads inside your working directories and a built-in set of read-only commands such as ls, cat and git status run without asking.
Use Manual mode for sensitive work, unfamiliar codebases, and any repository where you would want to review every change. It is also the mode claude -p and the Agent SDK start in when nothing else is set. Pair it with a narrow allowlist so the routine commands stop prompting; see how to allow specific commands.
acceptEdits mode
In acceptEdits mode, Claude Code approves file creation and edits in your working directory (and additionalDirectories) without asking. It also auto-approves a fixed set of filesystem commands such as mkdir, touch, mv and cp for paths in scope.
Everything else still prompts: other Bash commands, paths outside your working directories, and writes to protected paths such as .git, .claude, .vscode and shell profile files. Use acceptEdits when you trust the direction of the work and you review the diff afterwards in git, but still want a say on commands.
claude --permission-mode acceptEditsPlan mode
In plan mode, Claude Code reads files and runs read-only commands to explore, then proposes a plan, but does not edit your source files until you approve it. When you approve, you choose how to continue, for example in auto mode or by approving edits manually.
Use plan mode at the start of a larger change, when you want to agree on the approach before any file moves. You can enter it with Shift+Tab, start in it with claude --permission-mode plan, or prefix a single prompt with /plan. To make it the default for a project:
{
"permissions": {
"defaultMode": "plan"
}
}One caution from the docs: in interactive sessions where bypass mode is available (for example started with --allow-dangerously-skip-permissions), plan mode's blocks do not hold, so do not rely on them there.
Auto mode
In auto mode, Claude Code runs without routine prompts, and a separate classifier model reviews actions such as shell commands and network requests before they run. By default it blocks things like curl | bash, force pushes, production deploys and sending sensitive data out, and allows local file work in the working directory.
Your explicit ask and deny rules still apply. If the classifier blocks actions repeatedly (the docs give 3 times in a row or 20 times in total), auto mode pauses and prompting resumes. Auto mode depends on your plan, your provider and the model, so check the permission modes page for current requirements. The docs are clear that auto mode reduces prompts but does not guarantee safety.
Organizations can turn it off with permissions.disableAutoMode set to "disable" in managed settings.
dontAsk mode
In dontAsk mode, Claude Code denies every call that would otherwise prompt. Only reads, actions that need no approval and tools you pre-approved with allow rules run.
This is the mode for CI and scripted runs, where nobody is there to answer. The docs give this example:
claude -p "run the test suite" --permission-mode dontAsk --allowedTools "Bash(npm test)" "Read"dontAsk never appears in the Shift+Tab cycle. You set it with the flag or with defaultMode.
bypassPermissions mode
In bypassPermissions mode, Claude Code skips permission prompts, including for writes to protected paths such as .git and .claude. Allow rules have no effect because everything is already allowed, but deny rules and explicit ask rules still apply.
The docs say to use it only in isolated environments like containers or VMs. claude --dangerously-skip-permissions is equivalent to --permission-mode bypassPermissions. Claude Code refuses it when running as root or under sudo on macOS and Linux. The dangerously skip permissions guide covers the risks and the safer alternatives.
How do I switch permission modes in Claude Code?
In the Claude Code CLI, press Shift+Tab to cycle modes during a session. The cycle runs default, acceptEdits, plan; optional modes that are enabled slot in after plan, with bypassPermissions first and auto last. From auto, the first press goes back to default.
The other ways to choose a mode:
| Method | Example | Scope |
|---|---|---|
| Flag at startup | claude --permission-mode plan | This session |
| Bypass flag | claude --dangerously-skip-permissions | This session |
| Add bypass to the cycle | claude --allow-dangerously-skip-permissions | This session, without starting in it |
| Settings default | "defaultMode": "acceptEdits" under permissions | Every new session that reads the file |
| From a Bash prompt | "Yes, and switch to auto mode" | This session |
In VS Code, the desktop app and the web, there is a mode selector near the prompt box.
Which mode does a new session start in?
A new Claude Code terminal session takes the first of these that applies: the --permission-mode or --dangerously-skip-permissions flag, then permissions.defaultMode from a settings file, then the built-in default.
On current versions, the built-in default is auto for interactive terminal and VS Code sessions, and default (Manual) for claude -p and Agent SDK runs. If auto is selected but not available to you, the session starts in Manual.
There is one restriction worth knowing: defaultMode values "auto" and "bypassPermissions" are ignored in project files (.claude/settings.json and .claude/settings.local.json). A cloned repository cannot put you in bypass mode. Set those values in your user settings or pass the flag yourself.
Which permission mode should I use?
Pick the Claude Code permission mode by how much you trust the task and how closely you are watching:
| Situation | Suggested mode |
|---|---|
| Unfamiliar or sensitive repository | default with a small allowlist |
| Agreeing on an approach first | plan |
| Routine edits you will review in the diff | acceptEdits |
| Long tasks where you accept classifier review | auto |
| CI, scripts, nobody to answer | dontAsk with explicit allow rules |
| Throwaway container or VM | bypassPermissions |
Whatever the mode, the actions it does not auto-approve still need someone to answer. If you work in several sessions at once, see running multiple Claude Code sessions.
Answering prompts without watching the terminal
Most people pick a looser mode because the prompts interrupt them, not because they want less control. If the real problem is noticing prompts, a notification layer can help you stay in Manual or acceptEdits mode.
Allowbar is a Mac menu bar app that does this for Claude Code and Codex. It connects through the agents' own hooks, and when a session asks for permission, a panel slides down from the top of the screen with the project, the tool and the exact command. You click Allow, Block or Terminal. Allowbar never approves on its own and has no auto approval rules; if the countdown runs out or the app is closed, the question goes back to the terminal. It also lists every session with its state, so you can see which one is waiting on you.
Allowbar needs macOS 14 or later. It is in private beta. Join the waitlist; the launch price is $9.99 instead of $29.90.
Sources:
- Permission modes, Claude Code docs
- Configure permissions, Claude Code docs
- CLI reference, Claude Code docs
Frequently asked questions
How do I turn on plan mode in Claude Code?
Press Shift+Tab until the status bar shows plan mode, start with claude --permission-mode plan, or prefix a prompt with /plan. To make it the default in a project, set "defaultMode": "plan" under permissions in .claude/settings.json.
Why can't I find dontAsk in the Shift+Tab cycle?
dontAsk is deliberately left out of the Shift+Tab cycle. Start Claude Code with --permission-mode dontAsk or set it as defaultMode in a settings file.
Do deny rules still work in bypassPermissions mode?
Yes. Claude Code applies deny rules in every permission mode, including bypassPermissions. Explicit ask rules also still prompt there.
Can a project's settings put me in bypass mode?
No. Claude Code ignores "defaultMode": "bypassPermissions" and "defaultMode": "auto" in .claude/settings.json and .claude/settings.local.json. Those values only take effect from user settings, managed settings, --settings, or a command line flag.
Is auto mode safe?
Auto mode adds a classifier that blocks actions it judges risky, and your deny and ask rules still apply. The Claude Code docs say it reduces prompts but does not guarantee safety, so keep it away from sensitive repositories and credentials you cannot afford to expose.