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
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.
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
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically