4 ms·
Have you tested it? I see that this env var isn't specified in their docs https://docs.anthropic.com/en/docs/claude-code/settings#environment-variables https:/
by falcor84 1y ago
Have you tested it? I see that this env var isn't specified in their docs
https://docs.anthropic.com/en/docs/claude-code/settings#environment-variables https://docs.anthropic.com/en/docs/claude-code/settings#envi...
- bazhand 1y agoAdd these settings to your `.claude/settings.json`: ```json { "env": { "ANTHROPIC_CUSTOM_HEADERS": {"anthropic-beta": "context-1m-2025-08-07"}, "ANTHROPIC_MODEL": "claude-sonnet-4-20250514", "CLAUDE_CODE_MAX_OUTPUT_TOKENS": 8192 } } ```
- varyherb 1y agoYup! Claude Code has a lot of undocumented configuration. Once I saw the beta header value in their docs [1], I tried to see in their source code if there was anyway to specify this flag via env var config. Their source code is already on your computer, just gotta dig through the minified JS :) Try: `cat $(which claude) | grep ANTHROPIC_BETAS` Sibling comment's approach with the other (documented) env var works too. [1] https://docs.anthropic.com/en/docs/build-with-claude/context-windows#1m-token-context-window https://docs.anthropic.com/en/docs/build-with-claude/context...