CLAUDE_CODE_CLIENT_KEYPM
Updated by Alex Sorokoletov
CLAUDE_CODE_CLIENT_KEYPM is a Claude Code environment variable. Removed between v2.1.245 and v2.1.247, so current releases ignore it. It is not in the official reference.
| Status | Removed between v2.1.245 and v2.1.247 |
|---|---|
| Added | Added between v2.1.241 and v2.1.245 |
| Category | Authentication |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_CLIENT_KEYPM=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_CLIENT_KEYPM": "<value>"
}
}Related variables
CLAUDE_CODE_CLIENT_CERT: Path to client certificate for mTLS.CLAUDE_CODE_CLIENT_KEY: Path to client private key.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE: Passphrase for encrypted client key.CLAUDE_CODE_OAUTH_CLIENT_ID: Custom OAuth client ID.CLAUDE_CODE_DESIGN_OAUTH_CLIENT_IDANTHROPIC_API_KEY: Primary API key for Claude API.ANTHROPIC_AUTH_TOKEN: Alternative bearer token; takes priority over API key.CLAUDE_AI_AUTHORIZE_URL: Authorization URL endpoint.
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_CLIENT_KEYPM?
Removed between v2.1.245 and v2.1.247, so current releases ignore it.
How do I set CLAUDE_CODE_CLIENT_KEYPM?
Export it before starting Claude Code (export CLAUDE_CODE_CLIENT_KEYPM=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.