Skip to content

Instantly share code, notes, and snippets.

@stormychel
Created March 7, 2026 02:01
Show Gist options
  • Select an option

  • Save stormychel/9d8da8ab0718b04eb92d2b8634c4da49 to your computer and use it in GitHub Desktop.

Select an option

Save stormychel/9d8da8ab0718b04eb92d2b8634c4da49 to your computer and use it in GitHub Desktop.
claude_auto — Run Claude Code without permission prompts (macOS & Windows)

claude_auto — Run Claude Code Without Permission Prompts

What It Does

claude_auto is a shell alias/function that launches Claude Code with the --dangerously-skip-permissions flag. Claude Code runs without prompting for approval on tool calls (file edits, bash commands, etc.) — everything is auto-approved.

Useful for hands-off workflows where you trust Claude to execute freely. Use at your own risk — Claude can run any command, edit any file, and make destructive changes without asking.


macOS (zsh)

echo 'alias claude_auto="claude --dangerously-skip-permissions"' >> ~/.zshrc
source ~/.zshrc

Verify:

type claude_auto
# claude_auto is an alias for claude --dangerously-skip-permissions

Windows

Git Bash

echo 'alias claude_auto="claude --dangerously-skip-permissions"' >> ~/.bashrc
source ~/.bashrc

PowerShell

# Open your profile (creates it if needed)
if (!(Test-Path $PROFILE)) { New-Item -Path $PROFILE -ItemType File -Force }
Add-Content -Path $PROFILE -Value 'function claude_auto { claude --dangerously-skip-permissions @args }'
. $PROFILE

Command Prompt (cmd.exe)

Create claude_auto.bat in a folder on your PATH (e.g. C:\Users\YourName\bin\):

@echo off
claude --dangerously-skip-permissions %*

Then add that folder to your PATH via Settings → Environment Variables → User variables → Path.


Usage

claude_auto              # launch with no permission prompts
claude_auto --resume     # resume last session, no prompts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment