Skipping Claude Code Permission Prompts
When using Claude Code, if you do not want it to ask for permission every time it modifies files or runs commands, you can run it in “YOLO mode (allow all)” with the --dangerously-skip-permissions flag, or configure detailed permissions through settings.json.
1. Always Run Without Permission Prompts (YOLO Mode)
If you run the following command in the terminal, file creation, deletion, and command execution proceed immediately without asking for approval.
Linux/macOS
Add alias claude='claude --dangerously-skip-permissions' to .bashrc or .zshrc for a permanent setting.
Windows
Set a doskey macro with claude=claude --dangerously-skip-permissions $*.
2. Allow Only Specific Tools (Settings File)
As a safer method than --dangerously-skip-permissions, you can specify allowed tools such as Bash and file read/write in .claude/settings.json.
Example:
{"permissions": {"allow": ["Bash(find:*)"]}}
3. Auto Approval Mode (Auto Mode)
In recent versions, you can use “Auto mode,” which operates without approval popups while maintaining certain safeguards. This can be controlled in environment settings.
Note:
--dangerously-skip-permissions speeds up work, but because it can also execute dangerous actions without restriction, it is recommended only for automation or experimental environments.