CLAUDE_CODE_DESKTOP_APP_VERSION
Updated by Alex Sorokoletov
CLAUDE_CODE_DESKTOP_APP_VERSION is a Claude Code environment variable. Added between v2.1.266 and v2.1.269 and still present in v2.1.332. It is not in the official reference.
| Status | Present in v2.1.332 |
|---|---|
| Added | Added between v2.1.266 and v2.1.269 |
| Category | Other |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_DESKTOP_APP_VERSION=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_DESKTOP_APP_VERSION": "<value>"
}
}Related variables
CLAUDE_CODE_DESKTOP_MESSAGE_CARD: In desktop mode, and when not reattaching a bridge session, enables the desktop message card.CLAUDE_CODE_DESKTOP_MODE_FROM_RECORD: In desktop mode, enables setting the desktop mode from a record.CLAUDE_CODE_ENVIRONMENT_RUNNER_VERSION: Environment runner version.CLAUDE_CODE_VERSION: Exposes the CLI version to subprocesses, hooks, and MCP servers.CLAUDE_CODE_DESKTOP_RESULT_FIRSTCLAUDE_CODE_HOSTED_DESKTOPCLAUDE_CODE_NATIVE_APP_BUNDLECLAUDE_CODE_SERVED_SCHEMA_VERSION
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_DESKTOP_APP_VERSION?
Added between v2.1.266 and v2.1.269 and still present in v2.1.332.
How do I set CLAUDE_CODE_DESKTOP_APP_VERSION?
Export it before starting Claude Code (export CLAUDE_CODE_DESKTOP_APP_VERSION=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.