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.332. It is listed in the official reference.
| Status | Present in v2.1.332 |
|---|---|
| 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_AUTO_BACKGROUND_TIMEOUT_MS: For the main agent, the milliseconds before a running task auto-backgrounds; clamped to at least 2000 and never above the requested timeout, with a non-positive or invalid value leaving the timeout unchanged.CLAUDE_CODE_CCR_EARLY_REMOTE_CONNECT: Set to start early remote work that opened the remote connection link when resuming a remote SDK session; read until v2.1.309.CLAUDE_CODE_CONNECT_TIMEOUT_MSMCP_CONNECT_TIMEOUT_MSCLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAMEANTHROPIC_BASE_URL: Custom endpoint for Anthropic services.API_FORCE_IDLE_TIMEOUTAPI_TIMEOUT_MS: Request timeout in milliseconds.
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.332.
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.