How can I stop ClaudeCode from asking for permission on every curl command?

0
55
Asked By CuriousCat93 On

I'm looking for a way to stop ClaudeCode from prompting me for permission every time I run a curl command. I've tried various methods, but it just keeps asking for permission. Ideally, I want to configure it so that it can make requests freely to localhost where my server is running.

2 Answers

Answered By TechSavvy85 On

You might want to check your .claude/settings.local.json file in your project. It should look something like this:

```json
{
"permissions": {
"allow": [
"Bash(mkdir:*)",
"Bash(ls:*)",
"Bash(sed:*)",
"Bash(chmod:*)",
"Bash(cat:*)",
"Bash(rm:*)",
"Bash(grep:*)",
"Bash(find:*)"
],
"deny": []
}
}
```
This setup should ideally allow all the necessary commands without permission prompts.

Answered By CodeMaster99 On

I took a look at my settings.json too and mine has a wider range of permissions:

```json
{
"permissions": {
"allow": [
"Bash(grep:*)",
"Bash(mkdir:*)",
"Bash(mv:*)",
"Bash(rm:*)",
"Bash(sed:*)",
"Bash(find:*)",
"Bash(pkill:*)",
"Bash(open:*)",
"Bash(curl:*)",
"Bash(ls:*)",
"WebFetch(domain:localhost)",
"Bash(npm install)",
"Bash(node:*)",
"Bash(timeout:*)",
"Bash(npm test:*)"
],
"deny": []
}
}
```
This worked for me, so make sure that your permissions cover what you need!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.