Skip to content

Releases · Claude

Claude Code 2.1.307 release notes

Version
2.1.307
Released
Status
Stable release

What's new in Claude Code 2.1.307

The official notes for Claude Code 2.1.307 list 43 changes: 2 new features, 19 fixes and 22 other changes.

  • 2 new features
  • 19 fixes
  • 22 other changes

Highlights

  • new feature Added /claude-api api-version to move Claude API code to API version 2026-10-21
  • new feature Added the claude_code.safety_event OpenTelemetry event for each tool call a permission rule, auto mode, a safety check, a hook or…
  • fix Fixed requests failing with a model-not-found error when CLAUDE_CODE_DISABLE_1M_CONTEXT is set and the model is an alias with the [1m]…
  • fix Fixed the prompt-caching-scope beta header being sent behind custom ANTHROPIC_BASE_URL gateways and on Foundry, where it has no effect
  • fix Fixed MCP servers showing "needs authentication" in claude -p on macOS while the login keychain was locked; they now say…

Our short summary: changes are counted and classified automatically from the official notes, and highlights are shortened. The complete, authoritative list is in the official release notes on GitHub.

Full release notes on GitHub (Claude Code 2.1.307)

How to check your version and update Claude Code

  1. Check the installed version:
    claude --version
  2. Native installs update themselves in the background. To update right now:
    claude update
  3. Install exactly 2.1.307 (macOS, Linux, WSL):
    curl -fsSL https://claude.ai/install.sh | bash -s 2.1.307
  4. Homebrew does not auto-update. The claude-code cask follows the stable channel, claude-code@latest the latest one:
    brew upgrade claude-code
  5. WinGet:
    winget upgrade Anthropic.ClaudeCode
  6. npm (use install @latest, not npm update -g):
    npm install -g @anthropic-ai/claude-code@latest

Claude Code has two release channels: latest (the default) gets every version as it ships; stable runs about a week behind and skips releases with major regressions. Change it under /config → Auto-update channel or with the autoUpdatesChannel setting.

Installing for the first time, or on Windows? How to install and update Claude Code.

Commands from the official docs: Claude Code: Advanced setup.

Latest Claude Code version

2.1.309

Released · Official notes on GitHub