DISABLE_DOCTOR_COMMAND
Updated by Alex Sorokoletov
DISABLE_DOCTOR_COMMAND is a Claude Code environment variable: /doctor diagnostic command. Its release history is not tracked here. It is listed in the official reference.
| Status | Present in v2.1.294 |
|---|---|
| Category | Feature toggles |
| Official docs | Listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export DISABLE_DOCTOR_COMMAND=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"DISABLE_DOCTOR_COMMAND": "<value>"
}
}Related variables
CLAUDE_CODE_DISABLE_COMMAND_INJECTION_CHECK: Previously allowed disabling command injection detection.DISABLE_BUG_COMMAND: /bug command.DISABLE_EXTRA_USAGE_COMMAND: Extra usage display.DISABLE_FEEDBACK_COMMAND: /feedback command.DISABLE_INSTALL_GITHUB_APP_COMMAND: GitHub app install command.DISABLE_UPGRADE_COMMAND: /upgrade command.CLAUDE_CODE_DISABLE_ADMIN_ENV_UNIONCLAUDE_CODE_DISABLE_ARTIFACT
Frequently asked questions
What does DISABLE_DOCTOR_COMMAND do?
/doctor diagnostic command
Which Claude Code version has DISABLE_DOCTOR_COMMAND?
Its release history is not tracked here.
How do I set DISABLE_DOCTOR_COMMAND?
Export it before starting Claude Code (export DISABLE_DOCTOR_COMMAND=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.