←Story detail

Trending story

Claude Code adds the /claude-api api-version command

1 reports1 story updatesUpdated Oct 22 06:17

Understand this story

AI overview

Claude Code has added the `/claude-api api-version` command, which can migrate Claude API code to API version `2026-10-21`. This change appears in Claude Code v2.1.307. The same version also adds a `claude_code.safety_event` OpenTelemetry event for each tool call that is blocked, prompted, or returned by permission rules, auto mode, safety checks, hooks, or the sandbox. This version also fixes the issue where alias models such as `opus[1m]` reported model-not-found when `CLAUDE_CODE_DISABLE_1M_CONTEXT` was set, as well as the issue where MCP servers in `claude -p` falsely reported "authentication required" when the macOS keychain was locked. This version has now been released, with no subsequent developments yet.

AI-generated from public reports

Latest development · Report

Claude Code v2.1.307 released

Developments

1 confirmed developments

  1. Claude Code adds the /claude-api api-version command

    Source:Claude Code:GitHub Releases

Reports and discussion timeline

Browse reports and discussion by time. Their evidence levels remain distinct.

Oct 22

  1. Claude Code:GitHub ReleasesFirst-party

    Claude Code v2.1.307 released

    Claude Code v2.1.307 adds the `/claude-api api-version` command, which can migrate Claude API code to API version `2026-10-21`, and adds a `claude_code.safety_event` OpenTelemetry event for each tool call that is blocked, prompted, or returned by permission rules, auto mode, safety checks, hooks, or the sandbox. This version also fixes the issue where alias models such as `opus[1m]` reported model-not-found when `CLAUDE_CODE_DISABLE_1M_CONTEXT` was set, as well as the issue where MCP servers in `claude -p` falsely reported "authentication required" when the macOS keychain was locked.

Related stories

  1. Related storiesClaude Code fixes sandbox Bash command startup file issue
  2. Related storiesGoogle opens Gemini 4 Argon to developers
  3. Related storiesAnthropic releases Claude Opus 5.5
  4. Related storiesEnglish translation is being prepared.