Auto Accept for Claude Code
Tired of clicking "Allow" / "Run" on every AI agent permission prompt? This extension automatically accepts all permission requests across multiple AI coding tools.
Works with Claude Code, Google Antigravity agent, and Cursor.
Supported IDEs & Agents
| IDE |
Agent |
How it auto-accepts |
| VS Code |
Claude Code |
Settings + hooks + config files |
| Google Antigravity |
Antigravity agent (Gemini) |
CDP button clicking + terminal auto-approve |
| Google Antigravity |
Claude Code |
Settings + hooks + config files |
| Cursor |
Cursor agent |
CDP button clicking |
| Cursor |
Claude Code |
Settings + hooks + config files |
Features
- One-click toggle — Enable or disable auto-accept from the status bar or Command Palette
- Status bar indicator — Always see whether auto-accept is ON or OFF at a glance
- 4-layer auto-approval — Uses multiple mechanisms for maximum reliability:
- IDE Settings — Sets Claude Code permission mode to bypass + terminal auto-approve
- Claude Config — Adds allow rules to
~/.claude/settings.local.json
- Hooks — Installs a PreToolUse hook that approves every Claude Code tool call
- CDP Auto-Click — Uses Chrome DevTools Protocol to click Accept/Run buttons in Antigravity and Cursor agent prompts
- Safe & reversible — Backs up settings before changing; disabling restores everything
- Works on Windows, macOS, and Linux
Getting Started
Install
From the VS Code Marketplace:
- Open VS Code (or Cursor)
- Go to Extensions (
Ctrl+Shift+X)
- Search for "Auto Accept for Claude Code"
- Click Install
On Google Antigravity (VSIX install):
- Download the
.vsix file from the VS Code Marketplace
- In Antigravity, open Extensions (
Ctrl+Shift+X)
- Click
... menu → Install from VSIX...
- Select the downloaded file
Enable Auto-Accept
Option A — Status Bar:
Click the "Auto-Accept OFF" button in the bottom-right status bar.
Option B — Command Palette:
- Press
Ctrl+Shift+P (or Cmd+Shift+P on macOS)
- Type "Auto Accept"
- Select
Auto Accept: Toggle Auto-Accept
Setup for Antigravity / Cursor (CDP)
For auto-accepting Antigravity agent or Cursor agent permission prompts (the "Run" / "Accept" buttons), the extension needs CDP access. Launch your IDE with the remote debugging flag:
Antigravity:
antigravity --remote-debugging-port=9222
Cursor:
cursor --remote-debugging-port=9222
Windows shortcut tip: Right-click your IDE shortcut → Properties → append --remote-debugging-port=9222 to the Target field.
Without this flag, Claude Code auto-accept still works (via settings + hooks), but the Antigravity/Cursor agent UI buttons won't be auto-clicked.
How It Works
Layer 1 — IDE Settings
Sets claudeCode.initialPermissionMode to bypassPermissions and enables chat.tools.terminal.autoApprove for terminal commands. Tries multiple config namespaces for cross-IDE compatibility.
Layer 2 — Claude Settings File
Writes allow rules to ~/.claude/settings.local.json:
{
"permissions": {
"allow": ["Edit", "Write", "Bash(*)", "Read(*)", "Glob(*)", "Grep(*)", "WebFetch(*)", "WebSearch(*)", "mcp__*"]
},
"defaultMode": "bypassPermissions"
}
This file is used by Claude Code regardless of the host IDE.
Installs a hook script in ~/.claude/hooks/ that runs before every Claude Code tool call and returns permissionDecision: "allow". This is the most reliable mechanism for Claude Code.
Layer 4 — CDP Auto-Click (Antigravity / Cursor)
Connects to the IDE via Chrome DevTools Protocol and automatically clicks "Run", "Accept", "Allow", and "Continue" buttons in agent permission prompts. Polls every 1.5 seconds.
Settings
| Setting |
Type |
Default |
Description |
autoAccept.enabled |
boolean |
false |
Whether auto-accept is currently enabled |
autoAccept.enableCdp |
boolean |
true |
Enable CDP auto-clicking for Antigravity/Cursor agent prompts |
autoAccept.cdpPort |
number |
9222 |
CDP remote debugging port (must match --remote-debugging-port) |
Commands
| Command |
Description |
Auto Accept: Toggle Auto-Accept |
Toggle auto-accept on/off |
Auto Accept: Enable Auto-Accept |
Enable auto-accept |
Auto Accept: Disable Auto-Accept |
Disable auto-accept and restore original settings |
Safety
- Backups — Your
~/.claude/settings.local.json is backed up (with a timestamp) before any changes
- Tracked changes — Disabling only removes what this extension added — your own settings are preserved
- Warning notification — A prominent warning appears when you enable auto-accept
- Visual indicator — Status bar shows warning-colored "Auto-Accept ON" when active
Note: Auto-accepting all permissions means AI agents can execute any tool without asking. Only use this when you trust the operations being performed.
Requirements
- VS Code 1.85.0+, Google Antigravity, or Cursor
- For Claude Code auto-accept: Claude Code extension installed
- For Antigravity/Cursor agent auto-accept: IDE launched with
--remote-debugging-port=9222
Troubleshooting
Claude Code is still prompting for permissions
- Restart your Claude Code session — Hooks are captured at session startup
- Check that
~/.claude/settings.local.json was updated
- Check that
~/.claude/hooks/auto-accept-hook.ps1 (Windows) or auto-accept-hook.sh (macOS/Linux) exists
Antigravity/Cursor agent is still prompting
- Make sure you launched the IDE with
--remote-debugging-port=9222
- Check
Auto Accept output channel (Ctrl+Shift+U → select "Auto Accept CDP") for connection logs
- If using a different port, update
autoAccept.cdpPort in settings to match
Extension not found in Antigravity's extension search
Antigravity uses the OpenVSX registry. Download the .vsix file from the VS Code Marketplace and install manually via Install from VSIX.
I want to restore my original settings
Run Auto Accept: Disable Auto-Accept from the Command Palette. Timestamped backup files can be found next to ~/.claude/settings.local.json.
Reload the window: Ctrl+Shift+P → "Reload Window".
License
MIT