Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Auto Accept for Claude CodeNew to Visual Studio Code? Get it now.
Auto Accept for Claude Code

Auto Accept for Claude Code

TJCG

|
101 installs
| (1) | Free
Auto accept all permission requests from Claude Code, Google Antigravity agent, and Cursor. One-click toggle to bypass permissions and approve tool calls across all AI coding IDEs.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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:
    1. IDE Settings — Sets Claude Code permission mode to bypass + terminal auto-approve
    2. Claude Config — Adds allow rules to ~/.claude/settings.local.json
    3. Hooks — Installs a PreToolUse hook that approves every Claude Code tool call
    4. 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:

  1. Open VS Code (or Cursor)
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Auto Accept for Claude Code"
  4. Click Install

On Google Antigravity (VSIX install):

  1. Download the .vsix file from the VS Code Marketplace
  2. In Antigravity, open Extensions (Ctrl+Shift+X)
  3. Click ... menu → Install from VSIX...
  4. 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:

  1. Press Ctrl+Shift+P (or Cmd+Shift+P on macOS)
  2. Type "Auto Accept"
  3. 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.

Layer 3 — PreToolUse Hook

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

  1. Restart your Claude Code session — Hooks are captured at session startup
  2. Check that ~/.claude/settings.local.json was updated
  3. Check that ~/.claude/hooks/auto-accept-hook.ps1 (Windows) or auto-accept-hook.sh (macOS/Linux) exists

Antigravity/Cursor agent is still prompting

  1. Make sure you launched the IDE with --remote-debugging-port=9222
  2. Check Auto Accept output channel (Ctrl+Shift+U → select "Auto Accept CDP") for connection logs
  3. 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.

The status bar button is missing

Reload the window: Ctrl+Shift+P → "Reload Window".


License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft