Environment variables

CLAUDE_CODE_MAX_CONTEXT_TOKENS

Overrides the context window limit Claude Code expects for the current model, useful when routing via ANTHROPIC_BASE_URL.

Syntax

CLAUDE_CODE_MAX_CONTEXT_TOKENS

Type to search the reference, templates and lessons.