Dokumentationerreichbar
Anthropic, Environment variables
code.claude.com (externe Seite)
Die Referenz der Umgebungsvariablen, mit denen sich das Verhalten von Claude Code steuern lässt.
geprüft 22.11.2026
Worauf sich diese Seite beruft, wörtlich, abgerufen am 12.10.2026:
A variable you set in your shell lasts for that terminal session
bestätigt 22.11.2026Project and local settings can’t set some variables, such as
bestätigt 22.11.2026the settings file value applies in most sessions
bestätigt 22.11.2026Claude Code copies these values into its environment as written.
bestätigt 22.11.2026In a settings file you can set a variable but you can’t remove one.
bestätigt 22.11.2026Removing a variable from the file doesn’t unset it in a running session
bestätigt 22.11.2026keeps its startup values until you relaunch
bestätigt 22.11.2026Use this to bundle a pre-populated plugins directory into a container image.
bestätigt 22.11.2026Claude Code registers marketplaces from these directories at startup and uses pre-cached plugins without re-cloning.
bestätigt 22.11.2026When Claude Code fetches its feature flags during that session, it saves them on the machine, so your next session on that machine has the feature
bestätigt 22.11.2026When unset, Haiku 4.5, Sonnet 5, Opus 4.7, and earlier models in those families use the full prompt by default, and newer models use the shorter one.
bestätigt 22.11.2026Choose between Claude Code’s full system prompt and a shorter one with abbreviated tool descriptions.
bestätigt 22.11.2026Retries 429 and 529 capacity errors indefinitely instead of failing after CLAUDE_CODE_MAX_RETRIES attempts.
bestätigt 22.11.2026Set to 1 for unattended sessions such as eval harnesses, CI jobs, or remote workers.
bestätigt 22.11.2026When this variable is unset or its value is outside that range, no checks are made.
bestätigt 22.11.2026reload only in interactive terminal sessions
bestätigt 22.11.2026Set to 1 to reload them as skills-directory mods do
bestätigt 22.11.2026non-interactive included
bestätigt 22.11.2026
14 Anweisungen und Gedächtnis15 Einstellungen und Ebenen18 Hooks und Mods28 Lange Läufe29 Skripte und CI31 Der Harness