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.

View original on GitHub ↗

36 Comments

visata · 1 year ago

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.

hqman · 1 year ago
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.

thsunkid · 1 year ago

@hqman you can alias a new CLI command with the flag then update exec command of the extension.

  1. Alias a new command to "claude --dangerously-skip-permissions"
  1. Open ~/.vscode/extensions/anthropic.claude-code-xxx (or %USERPROFILE%\.vscode\extensions\anthropic.claude-code-xxx if you are on Windows) and search for executeCommand("claude"). Replace your command here.
  1. Restart the window or disable/re-enable the ext
wojo · 1 year ago

Interestingly enough, something removes this from my ~/.zshrc which I assume is Claude Code itself, but wasn't able to locate how/where, just yet.

alias claude="claude --dangerously-skip-permissions" 
wojo · 11 months ago

Even easier, one-liner for unix type systems.

echo "$(jq '.permissions.defaultMode = "bypassPermissions"' ~/.claude/settings.json)" > ~/.claude/settings.json
KamiC6238 · 10 months ago

That's work!
<img width="867" height="288" alt="Image" src="https://github.com/user-attachments/assets/f6669243-8449-449e-bff3-99de19354912" />

pabmann · 9 months ago

Doesn't work for me with v2.0.1

jimmyn · 9 months ago

How do I do it in v2.0.1 VS Code extension?

Stevq87 · 9 months ago

Edit .vscode/settings.json to

{

    "claude-code.environmentVariables": [],
    "claude-code.dangerously": true

}

Worked for me.

maayanbd12 · 9 months ago

i beg for a solution to cursor ide claude code extension bypass permission solution

mikestaub · 9 months ago

In the meantime, I have been using this extension which supports bypass natively: https://github.com/andrepimenta/claude-code-chat

BoQsc · 9 months ago

+1

julianships · 9 months ago
In the meantime, I have been using this extension which supports bypass natively: https://github.com/andrepimenta/claude-code-chat

Thank you boss 🙏

Anthropic devs, another fat +1 for this simple feature that should clearly have been included from the start.

jimmy927 · 9 months ago
Interestingly enough, something removes this from my ~/.zshrc which I assume is Claude Code itself, but wasn't able to locate how/where, just yet. `` alias claude="claude --dangerously-skip-permissions" ``

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.

leochoo · 9 months ago

I'd love the fix asap as well. Dagenrously skip permissions has been a game changer. Sticking with the terminal version for now.

jimmy927 · 9 months ago

https://github.com/jimmy927/claude-code-extension-patcher

PS C:\Users\jimmy\src\claude-code-extension-patchger> .\ultra-yolo-patcher.ps1  -yes
Claude Code YOLO Patcher - Dual Mode (Windows + WSL)

[1/2] Windows...
[FOUND] C:\Users\jimmy\.cursor\extensions\anthropic.claude-code-2.0.10-universal (3 files)
[FOUND] C:\Users\jimmy\.vscode\extensions\anthropic.claude-code-1.0.109 (1 files)
Patched 4/4 files
RESTART Cursor/VSCode!
Logs: C:\Users\jimmy\AppData\Local\Temp\claude-code-yolo.log

[2/2] WSL...
[FOUND] /home/jimmy/.cursor-server/extensions/anthropic.claude-code-2.0.10-universal (3 files)
[FOUND] /home/jimmy/.cursor-server/extensions/anthropic.claude-code-2.0.14-universal (3 files)
Patched 6/6 files
RESTART Cursor/VSCode!
Logs: /tmp/claude-code-yolo.log
PS C:\Users\jimmy\src\claude-code-extension-patchger>
shonecyx · 9 months ago

+1

thetangstr · 9 months ago

+1

FrancisVarga · 9 months ago

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

Kanezal · 9 months ago

+1

Galabov93 · 9 months ago

+1

DDX1 · 9 months ago

+1

mazaleyrat · 9 months ago

+1

migmac99 · 9 months ago

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",

/Users/username/claude-dangerous.sh
#!/bin/bash
# Just use VS Code's bundled binary directly with dangerous permissions
exec "$1" --dangerously-skip-permissions "${@:2}"
v4u-pro · 9 months ago
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", > /Users/username/claude-dangerous.sh `` #!/bin/bash # Just use VS Code's bundled binary directly with dangerous permissions exec "$1" --dangerously-skip-permissions "${@:2}" ``

@claude how do i do this in mac vs code claudecode extension

jrrtruman · 8 months ago

If you want this across the board, on MacOS you can open ~/.claude/settings.json and add

"permissions": {
    "defaultMode": "bypassPermissions"
  }

This 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.

ckep1 · 8 months ago
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", > /Users/username/claude-dangerous.sh `` #!/bin/bash # Just use VS Code's bundled binary directly with dangerous permissions exec "$1" --dangerously-skip-permissions "${@:2}" ``

This worked for me on Mac as well, thanks! The weird part is if I switch it out of Ask before edits it starts asking again, even if I switch back. If I keep it in Ask before edits it does not ask for any edits or commands!

adrianpauly · 8 months ago

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

TomasPilar · 8 months ago

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!

sibidharan · 8 months ago

Might need if you are a root user inside docker!

    "claudeCode.environmentVariables": [
        {
            "name": "IS_SANDBOX",
            "value": "1"
        }
    ]

for it to work

MarlonBeckett · 8 months ago
Good news everyone. Claude code extension for Cursor/VS Code has this config: <img alt="Image" width="1239" height="444" src="https://private-user-images.githubusercontent.com/8326937/506186941-fb6325be-1376-4aee-9f79-4b7f88f18198.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjIzMDAwNjcsIm5iZiI6MTc2MjI5OTc2NywicGF0aCI6Ii84MzI2OTM3LzUwNjE4Njk0MS1mYjYzMjViZS0xMzc2LTRhZWUtOWY3OS00YjdmODhmMTgxOTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MTEwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTExMDRUMjM0MjQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzkwMmNhYTY2ODFmYWRhYzc2NWQwMmFlN2U5NGZhZDJhMmEzN2IwYTMyMmNmMzMwOGZiZTIzYmQ0YWQwMGVkNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.xQW4BIIOVxvZjByyLmC9eJjAb2PINVQBGAQ-azCSrdA"> And it's worked!

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.

mudassirkhan19 · 8 months ago
Good news everyone. Claude code extension for Cursor/VS Code has this config: <img alt="Image" width="1239" height="444" src="https://private-user-images.githubusercontent.com/8326937/506186941-fb6325be-1376-4aee-9f79-4b7f88f18198.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjI1MDM0NzUsIm5iZiI6MTc2MjUwMzE3NSwicGF0aCI6Ii84MzI2OTM3LzUwNjE4Njk0MS1mYjYzMjViZS0xMzc2LTRhZWUtOWY3OS00YjdmODhmMTgxOTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MTEwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTExMDdUMDgxMjU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzhkZGEwM2Q0MGJiMDNjNzg2ZmE1ZmRjMDk0Y2ZhZGY5OTU0Njg1MGVjODAxZjQyYTMzOGJmMDdhMDMxNTBjYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.UFByM92Gg1sgRKOq_6fpXqMYVf-z3OdCytLAo1og3c8"> And it's worked!

While this is great, it is a big hassle to manually set it to bypass permissions everytime, how can we set that as the default mode in the native ui?

jimmy927 · 8 months ago
While this is great, it is a big hassle to manually set it to bypass permissions everytime, 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

jimmy927 · 8 months ago

@hackyon-anthropic

Is this issue not a duplicate of https://github.com/anthropics/claude-code/issues/8539 ?

hackyon-anthropic collaborator · 8 months ago

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

github-actions[bot] · 8 months ago

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.