Skip to main content
Pitboard switches Claude Code on macOS, Windows and Linux. A switch puts another account’s parked login where Claude Code reads its login: Claude Code’s folder is ~/.claude, or the folder CLAUDE_CONFIG_DIR names. Claude Code files lists what Pitboard reads there.

Before you add a Claude Code account

A variable such as ANTHROPIC_API_KEY, or apiKeyHelper in Claude Code’s settings, makes Claude Code ignore the login Pitboard switches. Changes to Claude Code accounts still go ahead, with the warning auth_overridden. Variables that override the login lists them all. To check, run:
The what a session authenticates with line warns and names the setting when Claude Code signs in another way. Where managed settings set forceLoginOrgUUID, Claude Code refuses a login of any other organisation, as read in Claude Code 2.1.309. Pitboard then refuses with login_restricted to switch to such an account. Only whoever manages this computer can change the setting. Where managed settings set forceLoginMethod to console, Claude Code’s sign-in makes an Anthropic Console API key and keeps no claude.ai login, as read in Claude Code 2.1.310. Pitboard then refuses with sign_in_pinned_to_console to start a sign-in, and switches to accounts you already added go ahead. Only whoever manages this computer can change the setting. The login restrictions line of pitboard doctor names either setting, where it is set and the accounts forceLoginOrgUUID leaves out. While CLAUDE_CODE_CUSTOM_OAUTH_URL is set, Pitboard refuses every change to Claude Code accounts with custom_oauth_endpoint. Custom OAuth endpoint says why. On Windows, Claude Code keeps its login in Credential Manager where CLAUDE_CODE_FORCE_WINDOWS_CREDMAN is 1, or where a feature it caches turns that store on, as read in Claude Code 2.1.301. The credential store line of pitboard doctor names the store Pitboard reads. Where Credential Manager holds a Claude Code login and nothing Pitboard reads says Claude Code uses it, Pitboard refuses every change until you set the variable in settings.json:
%USERPROFILE%.claude\settings.json
A Windows profile that roams takes Credential Manager’s items to every PC you sign in to, so a switch on one changes Claude Code’s login on the others. The credential store line warns about it.

Add Claude Code accounts

Add each one as Add another account shows. In the app, choose Claude Code under Tool. A label with no prefix enrols a Claude Code account: pitboard enroll work --sign-in adds one. pitboard enroll personal enrols the account Claude Code is signed in to, as Add the account you are signed in to shows. Where another tool also has a work, other commands need claude/work: see Labels. Do not add an account with Claude Code’s /login, as Add another account warns. If Pitboard says claude is not on this machine, see Pitboard cannot find a tool. In Windows PowerShell, run a Claude Code installed with npm as claude.cmd, as Claude Code does not start in Windows PowerShell says.

How Claude Code accounts differ