launchctl setenv adds to, and on Windows your account’s and the machine’s variables. Daily renewal gets its scheduler’s, plus what schedule gives it.
A variable that names a folder must hold a full path: home_not_absolute lists which may be empty. On Windows, a variable’s name has no case: PATH and Path are one variable.
Variables
Custom OAuth endpoint
CLAUDE_CODE_CUSTOM_OAUTH_URL counts when set in the environment or in an env block of Claude Code’s settings. As read in Claude Code 2.1.284 and 2.1.289, Claude Code then keeps its login and config under names Pitboard does not read. Pitboard refuses these with custom_oauth_endpoint:
enroll,use,forget,renameandstowof a Claude Code account, and the same in the app.repairanduninstall.abandonof a Claude Code switch, and every change while one is interrupted.
custom_oauth_endpoint.
Variables that override the login
As read in Claude Code 2.1.278, each of these makes Claude Code ignore the login Pitboard switches:ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, CLAUDE_CODE_OAUTH_TOKEN, CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_VERTEX, CLAUDE_CODE_USE_FOUNDRY, CLAUDE_CODE_USE_GATEWAY, CLAUDE_CODE_USE_ANTHROPIC_AWS, CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD.
Pitboard reads them from its environment and from Claude Code’s settings, along with apiKeyHelper. While any is set, changes to Claude Code accounts go ahead but warn with auth_overridden, as does pitboard doctor. The automatic switch holds back.
Proxies
Pitboard’s requests go through the proxy these variables name. It does not read the system’s proxy settings. On Windows,pitboard doctor says where Windows’ proxy settings send Codex’s requests while HTTPS_PROXY is unset.
- Pitboard reads
ALL_PROXY,all_proxy,HTTPS_PROXY,https_proxy,HTTP_PROXY, thenhttp_proxy, and takes the first that holds a proxy’s address. - An address with no scheme is
http://. - Pitboard goes through
http://andhttps://proxies, not SOCKS ones:socks://,socks4://,socks4a://,socks5://andsocks5h://. - While a SOCKS proxy is named, each request to a host outside
NO_PROXYfails before anything is sent, naming the variable. - Pitboard then follows no redirect.
NO_PROXY lists the hosts Pitboard reaches directly, separated by commas. Pitboard reads no_proxy only while NO_PROXY is unset. Entries ignore case, and a space is part of an entry.
Pitboard reaches these hosts without looking up the proxy’s name, which need not resolve.