---
title: "Claude Code's 6 Permission Modes: Which One to Use and When"
author: "Ecem Karaman"
source: "https://aiwithecem.com/guides/claude-code-permission-modes"
published: 2026-11-14
tools: ["Claude"]
topics: ["Setup","Security"]
---

# Claude Code's 6 Permission Modes: Which One to Use and When

A permission mode decides what Claude Code does without asking you first: editing files, running shell commands, reaching the network. Picking the wrong one either buries you in approval prompts or gives Claude more freedom than the task deserves. Most of my sessions run in auto mode, and I switch out of it when I'm working on a sensitive task or when I only want a plan.

**Details checked against [Claude Code's permission modes docs](https://code.claude.com/docs/en/permission-modes) on November 14, 2026, using Claude Code v2.1.325.**

> **In this guide**
>
> 1. [The six modes at a glance](#the-six-modes-at-a-glance)
> 2. [Auto is now the default](#auto-is-now-the-default)
> 3. [Pros and cons of each mode](#pros-and-cons-of-each-mode)
> 4. [Switch modes during a session](#switch-modes-during-a-session)
> 5. [Set your default mode](#set-your-default-mode)
> 6. [Shortcuts and gotchas](#shortcuts-and-gotchas)
> 7. [Pick a mode](#pick-a-mode)

## The six modes at a glance

| Mode | Config value | Runs without asking |
| ---- | ------------ | ------------------- |
| Manual | `default` | File reads and built-in read-only commands |
| Accept edits | `acceptEdits` | Reads, file edits and `mkdir`, `touch`, `rm`, `rmdir`, `mv`, `cp`, `sed` inside your working directory |
| Plan | `plan` | Reads and exploring commands. No edits until you approve the plan |
| Auto | `auto` | Everything, with a classifier model reviewing actions first |
| Don't ask | `dontAsk` | Reads plus whatever your allow rules list. Anything else is denied, not asked |
| Bypass permissions | `bypassPermissions` | Everything, with almost no checks |

Manual is called `default` in settings, and the CLI also accepts `manual` as an alias.

## Auto is now the default

Since v2.1.283, interactive terminal and VS Code sessions start in **auto** unless you set something else. Manual is still the default for `claude -p` and the Agent SDK. In those runs, any call that needs approval is denied unless an allow rule or hook approves it.

Auto needs a supported model: Opus or Sonnet 4.6 or later, Haiku 5.5, or a Fable model on the Anthropic API. Bedrock, Google Cloud and Foundry need newer models. Your organization can also turn it off. When auto isn't available, the session quietly starts in Manual.

## Pros and cons of each mode

| Mode | Pros | Cons |
| ---- | ---- | ---- |
| Manual | You see every edit and command before it runs | Prompt fatigue. Long tasks stall while you're away |
| Accept edits | Edits flow, and you review with `git diff` afterwards | Other shell commands, like `npm test`, still prompt. It can run `rm` in your project |
| Plan | Safe exploration of unfamiliar code. You can edit the plan before Claude starts | Nothing gets built until you approve |
| Auto | Long tasks run without you. Blocks `curl \| bash`, force pushes, production deploys and secret leaks by default | It isn't a guarantee. Each check adds a classifier call, so it costs a bit more and runs a bit slower |
| Don't ask | Never hangs waiting for input, and does only what you listed | You have to know the allowlist up front |
| Bypass | Almost no interruptions | No protection against prompt injection or mistakes. Containers and VMs only |

A few things prompt or get denied in every mode, including bypass: explicit `ask` rules, `AskUserQuestion`, and removals of critical paths like `rm -rf ~`. Deny rules block in every mode too.

## Switch modes during a session

| Where | How |
| ----- | --- |
| Terminal and JetBrains | `Shift+Tab` cycles `auto` → Manual → `acceptEdits` → `plan` → back to `auto` |
| VS Code | Click the mode indicator under the prompt box |
| Desktop app | Mode selector under the prompt box in the Code tab |
| claude.ai/code | Mode dropdown under the prompt. Cloud sessions offer Accept edits, Plan and Auto |
| At launch | `claude --permission-mode plan` |

The status bar shows the active mode, for example `⏸ plan mode on` or `⏵⏵ auto mode on`.

Two modes aren't in the `Shift+Tab` cycle. `dontAsk` only comes from the flag. `bypassPermissions` joins the cycle only if you launched with it enabled, because you can't switch into it mid-session.

## Set your default mode

Add `defaultMode` to a settings file:

```json
{
  "permissions": {
    "defaultMode": "acceptEdits"
  }
}
```

| Scope | File |
| ----- | ---- |
| Every session on your machine | `~/.claude/settings.json` |
| One project | `.claude/settings.json` in the repo |
| Your whole organization | Managed settings |
| One session | `--permission-mode <mode>` flag, which beats all of the above |

**Gotcha:** `auto` and `bypassPermissions` don't take effect from a project's `.claude/settings.json` or `.claude/settings.local.json`. That stops a cloned repo from switching off your prompts. Put them in `~/.claude/settings.json` instead. In VS Code, use the `claudeCode.initialPermissionMode` setting, which accepts every mode except `auto`.

## Shortcuts and gotchas

- **`/plan <task>`** puts a single prompt in plan mode without changing your mode.
- **`Ctrl+G`** opens Claude's proposed plan in your editor so you can change it before approving.
- **Leaving plan mode at the approval prompt:** press `Esc` first. `Shift+Tab` there approves the plan.
- **"Yes, and switch to auto mode"** shows up on Bash prompts in Manual and Accept edits. It approves the command and switches modes in one step.
- **State boundaries in plain words.** In auto mode, "don't push until I review" makes the classifier block pushes. Those boundaries can be lost when the conversation is compacted, so use a deny rule for anything that must always hold.
- **Repeated blocks pause auto.** After 3 blocks in a row or 20 in a session, Claude Code goes back to prompting. Blocked actions appear in `/permissions` under **Recently blocked**, where you can allow a retry.
- **`--allow-dangerously-skip-permissions`** adds bypass to the cycle without turning it on, so you can drop into it later.
- **Bypass refuses to run as root or under `sudo`** on macOS and Linux. Use a dev container that runs as a non-root user.
- **Scripts and CI:** `claude -p "run the tests" --permission-mode dontAsk --allowedTools "Bash(npm test)" "Read"` runs exactly what you list and nothing else.

## Pick a mode

| Your situation | Mode |
| -------------- | ---- |
| Sensitive code, production config, or a repo you don't trust yet | Manual |
| You're watching and want edits to flow | Accept edits |
| Big or unfamiliar change | Plan, then approve into Auto |
| Long task you trust the direction of | Auto |
| CI or a scheduled script | Don't ask with an explicit allowlist |
| A throwaway container with no access to anything you care about | Bypass |

Start here: run `/permissions` and add allow rules for the safe commands you approve every day, then add deny rules for the ones you never want to run, like `Bash(git push *)`. Rules work on top of every mode, so you'll see fewer prompts in Manual and get firmer limits in Auto.

**Go deeper:** [Permission modes docs](https://code.claude.com/docs/en/permission-modes) · [Permission rules](https://code.claude.com/docs/en/permissions) · [Claude Code commands I use on repeat](/guides/claude-code-commands) · [How to Start a Big Project in Claude Code](/guides/big-projects-claude-code)
