NachschlagenQuellenregister

Dokumentationerreichbar

Anthropic, Environment variables

code.claude.com (externe Seite)

Die Referenz der Umge­bungs­va­ria­blen, 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 sessionbestätigt 22.11.2026
  • Project and local settings can’t set some variables, such asbestätigt 22.11.2026
  • the settings file value applies in most sessionsbestätigt 22.11.2026
  • Claude Code copies these values into its environment as written.bestätigt 22.11.2026
  • In a settings file you can set a variable but you can’t remove one.bestätigt 22.11.2026
  • Removing a variable from the file doesn’t unset it in a running sessionbestätigt 22.11.2026
  • keeps its startup values until you relaunchbestätigt 22.11.2026
  • Use this to bundle a pre-populated plugins directory into a container image.bestätigt 22.11.2026
  • Claude Code registers marketplaces from these directories at startup and uses pre-cached plugins without re-cloning.bestätigt 22.11.2026
  • When Claude Code fetches its feature flags during that session, it saves them on the machine, so your next session on that machine has the featurebestätigt 22.11.2026
  • When 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.2026
  • Choose between Claude Code’s full system prompt and a shorter one with abbreviated tool descriptions.bestätigt 22.11.2026
  • Retries 429 and 529 capacity errors indefinitely instead of failing after CLAUDE_CODE_MAX_RETRIES attempts.bestätigt 22.11.2026
  • Set to 1 for unattended sessions such as eval harnesses, CI jobs, or remote workers.bestätigt 22.11.2026
  • When this variable is unset or its value is outside that range, no checks are made.bestätigt 22.11.2026
  • reload only in interactive terminal sessionsbestätigt 22.11.2026
  • Set to 1 to reload them as skills-directory mods dobestätigt 22.11.2026
  • non-interactive includedbestätigt 22.11.2026

14 Anweisungen und Gedächtnis15 Einstellungen und Ebenen18 Hooks und Mods28 Lange Läufe29 Skripte und CI31 Der Harness

Alle Quellen

↑↓ auswählenEnter öffnenDie Suche läuft im Browser. Nichts wird übertragen.