Claude Code: Console Auth Flag for Direct API Billing Login

Claude Code

Claude Code 2.1.79 introduces a --console flag to the claude auth login command, giving developers who use Anthropic Console API billing a dedicated, explicit authentication pathway. Previously, API-key users relied entirely on the ANTHROPIC_API_KEY environment variable, with no interactive login flow available. The new flag allows those users to authenticate interactively without resorting to environment variable workarounds, reducing confusion around which billing mode is active.


What Changed

Claude Code v2.1.79 introduces a new --console flag for the claude auth login command. This small but meaningful change gives developers who bill through the Anthropic Console a dedicated, explicit pathway to authenticate interactively from the command line.

Why This Matters

Claude Code supports two distinct billing models: Claude.ai subscription billing and direct Anthropic Console API billing. Prior to this release, developers using Console API keys had no interactive login flow available within the tool itself β€” they depended entirely on the ANTHROPIC_API_KEY environment variable to authenticate. This created friction and confusion, particularly for developers switching between environments or onboarding new team members who were uncertain which billing mode was active.

A Clearer Authentication Experience

The --console flag removes that ambiguity. Developers can now run:

claude auth login --console

This invokes an interactive authentication flow specifically scoped to Console API billing, making the intended billing mode explicit from the outset. It aligns the Console billing path with the existing interactive login experience available to Claude.ai subscribers, creating a more consistent authentication model across both user types.

Impact

While a minor release in terms of feature scope, the --console flag addresses a real pain point for enterprise and API-first developers who rely on Console billing for production workloads. Eliminating the reliance on environment variable workarounds reduces configuration errors and makes Claude Code's authentication model more approachable for new users unfamiliar with the tool's billing architecture.