Skip to content

Guide

Is Claude Code’s dangerously-skip-permissions flag safe?

Short answer: Only in a throwaway sandbox. On your own computer it lets Claude Code run any command without asking, including deleting files or databases. If you want the speed, keep a guard like Antelog that blocks only the dangerous actions.

What the flag does

claude --dangerously-skip-permissions turns off every permission prompt. Claude Code then edits files, runs commands and calls tools without stopping to ask.

Why people use it

Prompts break your flow. In a long session the agent may ask dozens of times, and most people end up clicking “yes” without reading anyway.

When it’s risky

  • Your computer has access to production databases, cloud accounts or servers.
  • Your home folder holds work that isn’t pushed or backed up.
  • The agent reads web pages or issues that could contain hidden instructions.

When it’s fine

Inside a container or virtual machine with no real credentials and nothing you can’t lose.

Keep the speed, block the danger

A PreToolUse hook still runs when prompts are off. Antelog uses that hook: you keep running without prompts, and it blocks only the actions that would delete data or leak secrets. Most checks finish in about half a second.

Install Antelog

Free for developers. On macOS and Linux:

$ curl -fsSL https://antelog.dev/install.sh | sh

Windows and other tools: see the docs.

More guides