Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.268 ·

OAuth local-callback port selection now takes a configurable range/fallback and adds a last-resort ephemeral-port bind

OAuth login's local callback port picking is now configurable and adds a last-resort random free port

TierYou'll noticehow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaAuthwhat it touches
KindImprovementsin v2.1.268,
You'll notice

OAuth login's local callback port picking is now configurable and adds a last-resort random free port

What

When Claude Code logs in via OAuth, it opens a temporary local web server to receive the login callback and needs a free network port for it. The function that picks this port now takes a configurable range and fallback port instead of hardcoded values.

  • If no port in the configured range is free, and the fallback port is also taken, Claude Code now tries one more thing: asking the operating system to hand it any free port, before giving up.
Why

This makes OAuth login more resilient on machines where the usual port range or fallback port is already in use, reducing login failures due to port conflicts.

See this entry in the whole of v2.1.268 →

Feedback