CLAUDE_CODE_HOST_AUTH_ASK_AT_START
A Claude Code environment variable, read out of the shipped bundle. It has been in the build since v2.1.327, including the newest one read.
A new CLAUDE_CODE_HOST_AUTH_ASK_AT_START variable lets an app embedding Claude Code hand over credentials when a session starts
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.327.
In the changelogs
5Releases whose published page names CLAUDE_CODE_HOST_AUTH_ASK_AT_START.
-
v2.1.328
Empty credential variables no longer count as set unless you opt in
With
CLAUDE_CODE_HOST_AUTH_ASK_AT_STARToff, an empty credential variable passed at launch is now treated as not setnamed in this entry, found in this entry's text
-
v2.1.327
Apps that embed Claude Code can supply sign-in details at startup
A new
CLAUDE_CODE_HOST_AUTH_ASK_AT_STARTvariable lets an app embedding Claude Code hand over credentials when a session startsfound in this entry's text, named in this entry
-
v2.1.327
Apps that embed Claude Code can supply a sign-in token at start-up
A host app can now be asked for a sign-in token as Claude Code starts, which is then written into the environment variable the host chose
found in this entry's text
-
v2.1.327
Three new environment variables recognised for host apps
Claude Code now recognises
CLAUDE_CODE_MCP_SERVE_MACHINE_PLUGINS,CLAUDE_CODE_REMOTE_TOOLS_DESKTOP_APP_HOSTandCLAUDE_CODE_HOST_AUTH_ASK_AT_STARTfound in this entry's text
-
v2.1.327
A launcher can ask Claude Code to run the managed
apiKeyHelperOn Linux, a launcher can ask Claude Code to run the
apiKeyHelperfrom managed settings for an https gateway, under strict conditionsfound in this entry's text
First cited
2The earliest release whose published evidence quoted CLAUDE_CODE_HOST_AUTH_ASK_AT_START was v2.1.327, 17 Nov 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.
Presence across releases
1Build by build
4One row per release since the first build this name was read out of. Absent means the build was read and the name was not in it, never mined means no bundle for that release was ever archived, and a declared type or a default is only ever what that release's own bundle stated.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the environment variable does. All environment variables.