Claude/Code/How To/Enable bypassPermissions in the VS Code Extension
Properties
- see-also
- Claude/Code/Settings, Claude/Code/--enable-auto-mode, Claude/Code/Docs/IDE Integrations, Claude/Code/Devcontainer, GitHub/Codespace, Person/Simon Willison/25/10/Living Dangerously with Claude Code
How To Enable bypassPermissions in the VS Code Extension
Overview
- Enables bypassPermissions in the Claude Code VS Code extension—the UI equivalent of legacy YOLO mode and the CLI flag
--dangerously-skip-permissions. [1] - For developers who want unattended tool runs without answering every prompt, using extension settings instead of manually launching
claude --dangerously-skip-permissionsfrom a terminal.
- Enables bypassPermissions in the Claude Code VS Code extension—the UI equivalent of legacy YOLO mode and the CLI flag
Prerequisites
- Claude Code VS Code extension installed
- A recent extension build that exposes permission modes (older builds required the CLI flag instead)
- A risk posture that accepts skipping permission prompts for tool use in this environment
Steps
Devcontainer and Codespaces pattern
- A common pattern: run VS Code and Claude Code inside the devcontainer or Codespace, keep secrets out of the workspace mount, and use bypass mode only inside that constrained environment. [4]
- See Claude/Code/Devcontainer and GitHub/Codespace.
Troubleshooting
- Extension lacks bypass settings — update the extension; earlier releases did not expose bypass cleanly and required
claude --dangerously-skip-permissionsfrom a terminal. [2] - bypassPermissions unavailable — check
disableBypassPermissionsModeand managed policy settings on Claude/Code/Settings. - Want fewer prompts without full bypass — use auto mode per Claude/Code/--enable-auto-mode, or set
defaultModetoautoin settings; auto classifies safe vs dangerous actions. [3] - Permission mode names —
default,acceptEdits,plan,auto, andbypassPermissions(equivalent to legacy dangerous-skip). [1]
- Extension lacks bypass settings — update the extension; earlier releases did not expose bypass cleanly and required
Footnotes