English

Product LaunchesAnthropicClaude Code

Claude Code v2.1.266 Released — Fixes Sign-in Failures Caused by Specific Environment Variable Settings

This article is a translation. Read the Japanese original

Anthropic has released the latest version of its CLI tool, Claude Code, designated as v2.1.266. This release includes a fix for a regression identified in the previous version, v2.1.265, concerning specific environment configurations.

Fixed Bugs

  • In v2.1.265, a bug occurred where the CLAUDE_CODE_USE_GATEWAY environment variable forced sign-in to the Cloud gateway; this has been resolved in v2.1.266. In previous versions, this variable was ignored unless both ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN were also set. In v2.1.265, when used alongside API keys, apiKeyHelper, or custom authentication headers, all requests would fail with a "Not signed in to Cloud gateway" error. With this fix, the environment variable is once again ignored, resolving the issue without requiring configuration changes.

Sources

  1. v2.1.266 (2026-09-08)
  2. v2.1.265 (2026-09-08)