AGCMD
AI Agent Commands

claude --dangerously-skip-permissions

Copy the command to skip all permission prompts in Claude Code CLI. One click, instant copy. Plus install commands for macOS, Linux, and Windows.

Essential Commands

ESSENTIAL

claude --dangerously-skip-permissions

Run Claude Code in full auto-mode with no confirmation prompts. Skips all permission checks for file edits, command execution, and web requests. Use only when you fully trust the project repository.

Install Claude Code

macOS

Install via Homebrew

Recommended for macOS — installs Claude Code as a cask.

Linux / macOS

Install via curl

Universal installer script — works on Linux and macOS.

Windows

Install via winget

Windows Package Manager — the native way to install on Windows.

What does claude --dangerously-skip-permissions do?

The --dangerously-skip-permissions flag tells Claude Code CLI to skip all interactive permission prompts. Normally, Claude Code asks for confirmation before editing files, running shell commands, or making web requests. With this flag enabled, all actions are auto-approved — no interruptions, no confirmations.

This is the fastest way to use Claude Code in auto-mode. It is commonly combined with --continue to resume the last session, or with -p for one-shot prompts in CI/CD pipelines and automation scripts. Perfect for trusted repositories where you want maximum speed.

Always review changes after running in this mode. The flag name includes "dangerously" as a deliberate reminder that you are granting the AI agent full access to your project files and shell.

How to skip permissions in Claude Code

To skip permissions in Claude Code, open your terminal and run claude --dangerously-skip-permissions. This single flag bypasses all permission checks — file edits, shell commands, and web requests are all auto-approved. No more clicking "Allow" for every action.

You can also combine it with other flags for different workflows:

  • claude --dangerously-skip-permissions --continue — resume your last Claude session with permissions skipped
  • claude --dangerously-skip-permissions -p "your prompt" — run a one-shot prompt in auto-mode without any confirmation dialogs
  • claude --dangerously-skip-permissions --model opus — skip permissions and use a specific model

This flag works on macOS, Linux, and Windows. If you haven't installed Claude Code yet, use brew install --cask claude-code on macOS, curl -fsSL https://claude.ai/install.sh | bash on Linux, or winget install Anthropic.ClaudeCode on Windows.

When to use --dangerously-skip-permissions

Claude bypass permissions is ideal for these situations:

  • Personal projects — you control the codebase and trust Claude to make changes without asking
  • CI/CD automation — running Claude in pipelines where no human is present to approve actions
  • Rapid prototyping — when you want Claude to iterate quickly without pausing for confirmations
  • Batch operations — refactoring, testing, or deploying across multiple files at once

When NOT to use it: on untrusted or unfamiliar codebases, in production environments without review, or when working on security-sensitive code. The --dangerously-skip-permissions flag gives Claude full auto-approve access — use it wisely.