Dangerously skip permissions: Claude Code and 33 more CLIs
--dangerously-skip-permissions lets Claude Code act without asking. Below: what it turns off and what still stops it, the safer modes most people want instead, the Codex version, and the switch in each of the 34 agent CLIs in our catalog, all checked against the official docs and help screens on 28 October 2026.
The short answer
--dangerously-skip-permissions starts Claude Code in bypassPermissions mode: it edits files, runs shell commands and uses the network without asking you first. You give it when the session starts, and Anthropic recommends it only for containers or virtual machines without internet access.
claude --dangerously-skip-permissions
# the same mode, by name
claude --permission-mode bypassPermissions
# one task without prompts, then exit
claude -p "fix the failing tests" \
--dangerously-skip-permissions
Most coding agents have a switch like it under another name: --yolo in Codex, --approval-mode yolo in Gemini CLI, --force in Cursor, --auto in OpenCode. The table below has the one for each of the 34 CLIs in our catalog.
What it turns off, and what still asks
In bypassPermissions mode tool calls run at once, without a prompt or a safety check. That includes writes to the places Claude Code normally guards, such as the .git, .vscode and .husky folders and files like .zshrc, .gitconfig and .mcp.json.
A few things still stop it:
- Deny rules block in every mode. Allow rules do nothing here, since everything is already allowed.
- Ask rules you wrote, and tools your organization set to ask, still prompt.
- Deletes on critical paths:
rmandrmdircommands Claude Code recognizes as dangerous still prompt, unless you turn that prompt off too. - Questions for you: when Claude asks you something, or an MCP tool needs your input, it still waits.
And three rules come with it:
- Not as root. On macOS and Linux it refuses to start as root or under
sudo, with the message--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons. Inside a sandbox it recognizes, that check is skipped. - Only from the start. A session started without it cannot switch into it. Start with
--allow-dangerously-skip-permissionsto add the mode to the Shift+Tab cycle without turning it on. - A warning the first time. The first interactive session in this mode asks you to accept responsibility. Accepting saves
"skipDangerousModeinPermissionPrompt": true ~/.claude/settings.json; declining exits.
The docs say it plainly: this mode offers no protection against prompt injection or unintended actions. A README, an issue or a web page the agent reads can tell it to run a command, and nothing stands in the way.
Safer ways to get fewer prompts
Most people reach for the flag because they are tired of approving the same things. Claude Code has gentler answers to that:
| Mode or setting | What runs without asking | Good for |
|---|---|---|
auto | Everything, after a separate classifier checks each action | Long tasks you trust the direction of. Since 2.1.283, interactive sessions start in it when the model supports it. |
acceptEdits | Reads, file edits and common file commands such as mkdir and mv | Code you review as it changes |
plan | Reads, plus commands the classifier approves when auto mode is available | Exploring a codebase before changing it |
dontAsk | Only what you approved in advance; anything that would prompt is denied | CI and scripts that must never wait |
| Allow rules | The commands you list, such as "Bash(npm run test *)" | The prompt you answer the same way every day |
Shift+Tab cycles the modes inside a session. To start in one by default, put it in ~/.claude/settings.json:
{
"permissions": {
"defaultMode": "acceptEdits",
"allow": ["Bash(npm run test *)"]
}
}
"defaultMode": "bypassPermissions" works in that file too, but not in a project's .claude/settings.json or settings.local.json, so a repository cannot turn your prompts off for you. Whatever the mode, /sandbox runs shell commands inside a macOS Seatbelt sandbox that limits what they can reach.
Codex: --yolo and the sandbox
Codex splits what Claude Code's flag turns off in one go into two settings: the approval policy, which decides when it stops to ask, and the sandbox, which limits what a command can touch.
| Flag | Effect |
|---|---|
--dangerously-bypass-approvals-and-sandbox, alias --yolo | No approvals and no sandbox. OpenAI's docs: only inside an externally hardened environment. |
-a never | Never asks, but commands stay inside the sandbox you chose with -s. |
-s danger-full-access | No sandbox, while -a still decides when to ask. |
--approve-for-me, alias --not-so-yolo | An automatic reviewer answers the approval requests, inside the workspace-write sandbox. The nearest thing to Claude Code's auto mode. |
--full-auto is gone: Codex 0.165.0 stops with an error when it sees it, and --approve-for-me is the nearest replacement. How the two agents approach safety in general is in Codex vs Claude Code.
The switch in every agent CLI
The same idea goes by many names. Each row was checked against the CLI's own help or its official docs on 28 October 2026; these flags get renamed often, so run the CLI with --help before you script one.
| Agent | Command | Skip approvals with | Notes |
|---|---|---|---|
| Claude Code | claude | --dangerously-skip-permissions, or --permission-mode bypassPermissions | Deny rules, ask rules and dangerous deletes still stop it. Refuses to run as root. |
| Codex | codex | --dangerously-bypass-approvals-and-sandbox, alias --yolo | Turns off the sandbox as well; -a never skips only the approvals. |
| Gemini CLI | gemini | --approval-mode yolo | Approves every tool. -y and --yolo still work but are deprecated. |
| Grok | grok | --always-approve, alias --yolo | In xAI's Grok Build, which also takes --permission-mode bypassPermissions; deny rules and hooks still apply. The community grok-cli has no such switch. |
| OpenCode | opencode | --auto | Approves whatever is not explicitly denied, in the TUI and in opencode run. |
| Antigravity | agy | --dangerously-skip-permissions | Approves every tool request. A gentler --mode auto is in preview. |
| Aider | aider | --yes-always | Says yes to every confirmation except running shell commands, which it declines. |
| Amp | amp | Nothing to add | Has run tools without asking by default since May 2026; its settings can bring the prompts back. |
| Ante | ante | --yolo, or --permission-mode yolo | Skips approval prompts and permission rules. |
| Auggie | auggie | None | Allows tools one at a time with --permission <tool>:allow. |
| Autohand | autohand | --unrestricted | Runs without approval prompts; plans still wait for your OK. |
| Cline | cline | --auto-approve true | Already the default. -y or --yolo runs one headless turn and exits. |
| Codebuff | codebuff | None | --trust-agents only loads the repository's agents and MCP config without asking. |
| Command Code | command-code | --yolo | Same as --permission-mode yolo. Deny rules, ask rules and a guard on deleting root or home still apply. |
| Continue | cn | --auto | Allows every tool. Headless runs use --allow "*", quoted so the shell leaves the star alone. |
| Crush | crush | -y, --yolo | Accepts every permission. crush run approves on its own. |
| Cursor | agent | -f, --force, alias --yolo | Runs commands unless explicitly denied. Older installs call the CLI cursor-agent. |
| Devin | devin | --permission-mode dangerous, or bypass or yolo | Your organization's deny and ask rules still apply. |
| Droid | droid | --auto high | Edits and commands up to high risk; ask rules and safety checks still prompt. --skip-permissions-unsafe skips everything in droid exec. |
| GitHub Copilot | copilot | --yolo, same as --allow-all | Allows every tool, path and URL; deny rules still apply. |
| Goose | goose | GOOSE_MODE=auto, an environment variable | Already the default. |
| Hermes Agent | hermes | --yolo, or HERMES_YOLO_MODE=1 | Skips the dangerous-command prompts; its hard blocklist still applies. |
| Kilo Code | kilo | --auto | Approves everything not explicitly denied, in the TUI and in kilo run. |
| Kimi Code | kimi | --auto | Never asks. --yolo now still asks about sensitive files and dangerous commands. Neither works with -p. |
| Kiro | kiro-cli chat | --trust-all-tools | Trusts every tool once you acknowledge a warning. |
| MiMo Code | mimo | --dangerously-skip-permissions, alias --yolo | Your deny and ask rules still apply; asks you to accept once. |
| Mistral Vibe | vibe | --agent auto-approve, or --auto-approve | Approves every tool, shell included. --yolo is the same switch. |
| OpenClaude | openclaude | --dangerously-skip-permissions, alias --yolo | Same as --permission-mode bypassPermissions. |
| OpenClaw | openclaw | None on the command line | Set as a policy instead, with openclaw exec-policy preset yolo. |
| Pi | pi | Nothing to add | Does not ask before tool calls; -a only skips the project-trust prompt. |
| Prime Agent | prime-agent | None | Its docs describe no approval prompts to skip. |
| Qwen Code | qwen | --approval-mode yolo, or -y, --yolo | Approves every tool. Use one form, not both. |
| Rovo Dev | acli rovodev run | --yolo | Covers file operations and shell commands. |
| Trae | traecli | -y, --yolo | Same as --dangerously-bypass-approvals-and-sandbox: no confirmations and no sandbox. |
Where to use it
- In a container or a virtual machine that holds nothing you would miss, ideally without internet access, as Anthropic recommends. Its dev container setup runs Claude Code as a non-root user, so the root check passes.
- On code you have read. Prompt injection works through anything the agent reads, including the repository itself.
- From a clean git state. Commit before you start and read
git diffafter, so every change is easy to review or undo.
A git worktree is not a sandbox. It keeps an agent's edits off your main checkout, which is why it helps when several agents work at once, but the agent can still reach everything your user account can: other folders, your keys, the network.
One switch for all of them in Symvibe
Symvibe, which we make, runs these CLIs as they ship, in real terminals on one board. Its setting Yolo: skip permission prompts, in Settings › Agents and offered at first launch, starts each console with that agent's own switch. It is off by default.
- It reaches 25 of the 34 agents in the catalog. The others, and commands you added yourself, start as they normally do.
- Consoles running with it carry a YOLO badge, so you can see which agents act without asking.
- It applies when a console starts; restart a console after you change it.
- The studios never add it to the sessions they run in the background.
The exact flag it passes to each agent is listed in Supported agents.
Questions people ask
Is --dangerously-skip-permissions safe?
Only where a mistake costs nothing: a container or virtual machine without your credentials or anything else you would miss. On your own Mac, auto mode or acceptEdits with a few allow rules removes most prompts with far less risk.
Why does it say it cannot be used with root or sudo?
Claude Code refuses this mode when it runs as root or under sudo on macOS and Linux, because an agent with no prompts and root rights can change anything on the machine. Run it as a normal user, or inside a sandbox it recognizes, where the check is skipped.
Can I turn it on in the middle of a session?
No. Start the session with --dangerously-skip-permissions or --permission-mode bypassPermissions, or with --allow-dangerously-skip-permissions to keep it in the Shift+Tab cycle and switch to it later.
What is the Codex version of --dangerously-skip-permissions?
--dangerously-bypass-approvals-and-sandbox, which also answers to --yolo. It turns off approvals and the sandbox together; -a never turns off only the approvals.
How do I stop the warning at startup?
Accept it once. Claude Code then saves skipDangerousMode as true in ~/.claude/settings.json; remove the key, or set it to false, to see the warning again.
Can my company turn it off?
Yes. Administrators set permissions. to "disable" in managed settings, and sessions started with --restricted refuse the mode as well.
Every agent on one board
Symvibe runs the real CLIs in real terminals on one canvas, and one setting gives each agent its own skip switch, with a badge on the consoles that have it. Your login, your plan, your Mac.
macOS 14 or later · Apple Silicon · USD 19 a month or USD 190 a year