Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v0.2.45 ·

Environment Variable Support for API Customization

Entry
JSON All of v0.2.45
EntryKind: in v0.2.45,
ChangesSection of the release

Claude Code now supports a new environment variable CLAUDE_CODE_EXTRA_BODY that allows users to inject additional parameters into API requests.

Usage:

# Set custom API parameters as a JSON object
export CLAUDE_CODE_EXTRA_BODY='{"temperature": 0.8, "max_tokens": 4000}'
claude "Your prompt here"

This feature enables:

  • Customization of API request parameters without modifying code
  • Fine-tuning of Claude's response behavior (temperature, max tokens, etc.)
  • Advanced users to experiment with API options

Error Handling:

  • The value must be a valid JSON object (not an array or primitive)
  • Invalid JSON will be logged to stderr and ignored
  • Parsing errors are gracefully handled with descriptive error messages

See this entry in the whole of v0.2.45 →

Feedback