export CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY=1
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
export DISABLE_AUTOUPDATER=1
# reduces splash screen size:
export IS_DEMO=1 "env": {
"CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY": "1",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"DISABLE_AUTOUPDATER": "1",
"IS_DEMO": "1"
}You CAN set these as env vars in your shell, but I prefer to stick 'em in the Claude settings.json:
$ cat ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_DISABLE_TERMINAL_TITLE": "1",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
}
}
This keeps your main environment from getting cluttered.from the changelog: https://github.com/anthropics/claude-code/blob/main/CHANGELO...
I frequently use Claude code in disposable virtual machines.
You could instead eg:
alias code='DISABLE_AUTOUPDATER=1 IS_DEMO=1 /usr/local/bin/code'
or write a wrapper shell script (analyse/adjust $PATH if you're going to name it the same as an existing binary/script), eg #!/bin/bash
export FOO=bar
exec /usr/local/bin/code > I wasn't even aware that was possible.
That's why you should always read the manual! These aren't hidden and secret settings:https://code.claude.com/docs/en/settings
And, if you really hate manuals, you can just ask Claude to write the settings for you =D
Every time you run it, it uploads most of your project's code to Anthropic's server. That's just how this category of product works. If you're disgusted by a survey...
https://github.com/anthropics/claude-code/issues/4034
It's really a trivial fix so I'm disappointed not to have received any input from the Anthropic folks all this time.
In that I pointed out that they are sending data back that shouldn't be and is not in compliance with their stated data usage policy [3]. Specifically, message ids which have no purpose other than to link surveys to chat history and this was being sent even when disabled (at the time. I haven't dug into the code since).
[1] https://github.com/anthropics/claude-code/issues/8036 [2] https://news.ycombinator.com/item?id=45838297 [3] https://code.claude.com/docs/en/data-usage
I would appreciate it if you could create an issue for this at https://github.com/anthropics/claude-code/issues so we can continue troubleshooting there.
Thanks for talking to this community.
Claude Code is a very serious tool - in my opinion the only one of its kind suitable as a daily driver.
Without it my startup would grind to a halt. It’s akin to a delivery business needing its fleet of delivery vans.
Every time Claude Code changes we get nervous. Will the few humans who steward this product keep us in mind? Will we be forced to invent our own workflow?
All we want is for our reliable delivery van to keep delivering.
Appreciate you for reading and keeping us in mind as you evolve the product.
while you're here, would you generously allocate a couple minutes to assess this other issue? https://github.com/anthropics/claude-code/issues/4034
It's low-hanging fruit.
This is really annoying!
The van still works though, so on you go.
Later that day, you look into who else sells similar vans, and find out all the other van makers will only sell you a chassis, byo wheels.