Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v0.2.45 Home All releases olderv0.2.44 v0.2.46newer
Claude Code v0.2.45

Environment Variable Support for API Customization

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 →