How to open Claude Code in VS Code with --dangerously-skip-permissions?
Resolved 💬 36 comments Opened Jun 25, 2025 by hqman Closed Nov 8, 2025
💡 Likely answer: A maintainer (hackyon-anthropic, collaborator)
responded on this thread — see the highlighted reply below.
I'm trying to run claude inside VS Code, but I need to pass the --dangerously-skip-permissions flag so that it can access my codebase without restriction.
How can I launch Claude Code from VS Code with that flag enabled? Is there a way to configure this either through a launch script or settings?
Just to clarify — this is for local development and I'm aware of the risks of using --dangerously-skip-permissions.
36 Comments
I'm on WSL2, I created the alias inside ~/.baschrc
alias clauded="claude --dangerously-skip-permissions"
When I run "clauded", it runs with --dangerously-skip-permissions enabled.
Thanks, but what I mean is to open it in a vs code tab page.
@hqman you can alias a new CLI command with the flag then update exec command of the extension.
"claude --dangerously-skip-permissions"~/.vscode/extensions/anthropic.claude-code-xxx(or%USERPROFILE%\.vscode\extensions\anthropic.claude-code-xxxif you are on Windows) and search forexecuteCommand("claude"). Replace your command here.Interestingly enough, something removes this from my
~/.zshrcwhich I assume is Claude Code itself, but wasn't able to locate how/where, just yet.Even easier, one-liner for unix type systems.
That's work!
<img width="867" height="288" alt="Image" src="https://github.com/user-attachments/assets/f6669243-8449-449e-bff3-99de19354912" />
Doesn't work for me with v2.0.1
How do I do it in v2.0.1 VS Code extension?
Edit .vscode/settings.json to
Worked for me.
i beg for a solution to cursor ide claude code extension bypass permission solution
In the meantime, I have been using this extension which supports bypass natively: https://github.com/andrepimenta/claude-code-chat
+1
Thank you boss 🙏
Anthropic devs, another fat +1 for this simple feature that should clearly have been included from the start.
claude code edits your ~/.zshrc .
It's INSANE.
But this works for now:
alias 'claude'='claude --dangerously-skip-permissions'
however it will not help with your claude extension in vscode/cursor, as none of the above suggestions will, io just stopped using it at this point as it asks like for some permission every 3 seconds, its useless at this point, just use the terminal for now.
I'd love the fix asap as well. Dagenrously skip permissions has been a game changer. Sticking with the terminal version for now.
https://github.com/jimmy927/claude-code-extension-patcher
+1
+1
In the new claude ui the settings.local doesnt work:
{
"permissions": {
"defaultMode": "bypassPermissions",
"allow": [
"*"
],
"deny": [],
"ask": []
}
}
and hes still asking for every bash command oO
+1
+1
+1
+1
I figured out a way. May not be the best but it works for me for the time being, until they add an easy way to just toggle this.
This is on MacOS but I'm sure something similar may work if you are on a different OS
In your vscode settings:
"claude-code.claudeProcessWrapper": "/Users/username/claude-dangerous",@claude how do i do this in mac vs code claudecode extension
If you want this across the board, on MacOS you can open
~/.claude/settings.jsonand addThis will also make any instance you open directly from the terminal bypassPermissions mode by default so not just the extension.
This also doesn't fix the Native UI, just the TUI.
This worked for me on Mac as well, thanks! The weird part is if I switch it out of
Ask before editsit starts asking again, even if I switch back. If I keep it inAsk before editsit does not ask for any edits or commands!I don't even want to live that dangerously, I just want the Claude Code extension in Cursor to remember my damn "Yes and don't ask again".. ever since v2.0 it's asking me. Every. Single. Damn. Time. Really reduces the whole usefulness of having an AI assisted code workflow in the first place
Good news everyone. Claude code extension for Cursor/VS Code has this config:
<img width="1239" height="444" alt="Image" src="https://github.com/user-attachments/assets/fb6325be-1376-4aee-9f79-4b7f88f18198" />
And it's worked!
Might need if you are a root user inside docker!
for it to work
Thank you. I honestly dont see a need to use the terminal version anymore. in the beginning, the extension was so buggy, plus couldnt bypass permissions. but now its lit.
While this is great, it is a big hassle to manually set it to
bypass permissionseverytime, how can we set that as the default mode in the native ui?see here https://github.com/anthropics/claude-code/issues/8539#issuecomment-3498588182
@hackyon-anthropic
Is this issue not a duplicate of https://github.com/anthropics/claude-code/issues/8539 ?
Thanks @jimmy927
Yup, this is now supported in the VSCode extension! Please see https://github.com/anthropics/claude-code/issues/8539#issuecomment-3506636641 for how to set it up
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.