Permission Shortcuts
These are AI Runner-specific shortcuts that expand to Claude Code’s native permission flags.Skip all permission prompts - Shortcut for What it does:
--dangerously-skip-permissions- Disables all permission prompts
- AI can read, write, execute without asking
- Fastest for automation and CI/CD
- Trusted scripts in trusted directories
- CI/CD pipelines
- Development automation
Bypass permission UI but show actions - Shortcut for What it does:
--permission-mode bypassPermissions- Skips permission prompts
- Shows what actions are being taken
- AI can proceed without waiting for approval
- Scripts where you want visibility
- Semi-automated workflows
- Monitoring what AI does
Native Permission Flags
These are Claude Code’s native flags, passed through by AI Runner.Claude Code native: Skip all permission prompts (same as Most users should use
--skip)--skip instead for brevity.Claude Code native: Set permission behavior modeValues:
bypassPermissions- Same as--bypass(skip prompts, show actions)requirePermissions- Default (prompt for each action)allowedTools- Restrict to specific tools (use with--allowedTools)
Claude Code native: Restrict AI to specific tools and commandsSyntax:Shebang example:
'ToolName'- Allow entire tool (e.g.,'Read','Bash')'ToolName(pattern)'- Allow tool with specific pattern- Multiple tools space-separated
Read- Read filesWrite- Create/modify filesBash- Run shell commandsEdit- Edit existing filesGrep- Search file contentsGlob- Search file paths
Precedence Rules
When multiple permission flags are specified:- Explicit
--permission-modeor--dangerously-skip-permissionstakes precedence - Shortcuts (
--skip,--bypass) are ignored if explicit flags are present - CLI flags override shebang flags
- Shebang flags override defaults
Permission Modes Compared
| Mode | Prompts | Shows Actions | Speed | Safety |
|---|---|---|---|---|
| Default | Yes | Yes | Slowest | Safest |
--bypass | No | Yes | Fast | Medium |
--skip | No | No | Fastest | Least safe |
--allowedTools | No | Yes | Fast | Configurable |
Examples
Script Automation (Trusted)
Granular Control (Production)
Visibility Without Prompts
Interactive (Default)
CI/CD Pipeline
Override Script Permissions
Read-Only Mode
Restrict AI to read and search operations only:Test Execution Mode
Allow running tests but nothing else:Documentation Mode
Allow updating documentation files only:Security Best Practices
Never use --skip in untrusted directories
Never use --skip in untrusted directories
Only use
--skip or --bypass with:- Scripts you wrote yourself
- Trusted repositories
- Known-safe directories
--skip:Use --allowedTools for production
Use --allowedTools for production
For production automation, explicitly list allowed operations:This prevents unexpected operations while still being automated.
Review scripts before using --skip
Review scripts before using --skip
Before adding
--skip to a shebang:- Run without
--skipfirst - Review what operations it performs
- Verify it only touches expected files
- Add
--skiponly if you trust it completely
CI/CD needs --skip or --bypass
CI/CD needs --skip or --bypass
CI/CD pipelines can’t respond to prompts. Use
--skip for speed or --bypass for visibility:Troubleshooting
Script hangs waiting for input (CI/CD)
Script hangs waiting for input (CI/CD)
Add
--skip or --bypass to prevent permission prompts:--skip not working
--skip not working
Check if script uses explicit CLI flags override shebang:
--permission-mode:--allowedTools not restricting operations
--allowedTools not restricting operations
Make sure you’re using the correct syntax: