Medium · May 6, 2026

Claude Code Authentication: Cross-Platform Setup Script

Six auth methods, one priority chain, and the open-source script I built to set it up across macOS, Linux, Windows and WSL.

If you have onboarded a teammate to Claude Code, you may have had this conversation: "It says I'm being charged per token, but I have a Pro subscription?" Claude Code supports six ways to authenticate, and they follow a priority order that is easy to get wrong.

This post walks through the six methods and the priority chain, and introduces an open-source script that sets authentication up the same way on macOS, Linux, Windows and WSL.

Read the full essay on Medium →

Claude Code Open Source Developer Tools

More from this site

Essays on production AI in regulated industries, and the open-source tools behind them.
claude-auth-setup on GitHub → All writing