CLAUDE_CODE_AUTO_CONNECT_IDE
Updated by Alex Sorokoletov
CLAUDE_CODE_AUTO_CONNECT_IDE is a Claude Code environment variable: Auto-connect to IDE on startup. Present since v2.1.69 or earlier and still present in v2.1.294. It is listed in the official reference.
| Status | Present in v2.1.294 |
|---|---|
| Added | Present since v2.1.69 or earlier |
| Category | Network and proxy |
| Official docs | Listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_AUTO_CONNECT_IDE=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_AUTO_CONNECT_IDE": "<value>"
}
}Release notes that mention it
Related variables
CLAUDE_CODE_CONNECT_TIMEOUT_MSMCP_CONNECT_TIMEOUT_MSCLAUDE_CODE_AUTO_BACKGROUND_TIMEOUT_MSCLAUDE_CODE_CCR_EARLY_REMOTE_CONNECTANTHROPIC_BASE_URL: Custom endpoint for Anthropic services.API_FORCE_IDLE_TIMEOUTAPI_TIMEOUT_MS: Request timeout in milliseconds.BASH_DEFAULT_TIMEOUT_MS
Frequently asked questions
What does CLAUDE_CODE_AUTO_CONNECT_IDE do?
Auto-connect to IDE on startup
Which Claude Code version has CLAUDE_CODE_AUTO_CONNECT_IDE?
Present since v2.1.69 or earlier and still present in v2.1.294.
How do I set CLAUDE_CODE_AUTO_CONNECT_IDE?
Export it before starting Claude Code (export CLAUDE_CODE_AUTO_CONNECT_IDE=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.