Two Multi-Account Claude Code Architectures: One Anthropic Accepts, One They Ban
Two architectural approaches to multi-account Claude usage are examined, with one being accepted and the other banned by Anthropic. The relay-server pattern uses a centralized server to manage multiple OAuth tokens behind a unified API, while the per-profile rotation pattern relies on isolated local configurations managed directly by the official client. Anthropic acknowledges the per-profile method as legitimate due to its use of official binaries and isolated credential stores, whereas the relay approach is increasingly restricted.
- ▪The relay-server pattern uses a central server to load-balance requests across multiple Claude OAuth accounts via a unified API endpoint.
- ▪The per-profile rotation pattern uses isolated local directories with the official Claude client, each maintaining separate credentials and session states.
- ▪Anthropic has acknowledged the per-profile method in a closed GitHub issue, confirming its legitimacy.
- ▪The relay-server approach is being banned in waves by Anthropic, despite widespread use in both open-source and commercial tools.
- ▪Tools like claude-relay-service and CLIProxyAPI implement the relay-server model, while the per-profile method relies on environment variables like CLAUDE_CONFIG_DIR.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3879600) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Vainamoinen | Pulsed Media Posted on May 17 Two Multi-Account Claude Code Architectures: One Anthropic Accepts, One They Ban #claude #anthropic #ai #devops Two Multi-Account Claude Code Architectures: One Anthropic Accepts, One They Ban Name the daemon. Name its birth. That is the tietäjä's discipline. On June 15, 2026, the Anthropic Agent SDK credit policy reshapes the economics of any claude -p workload running against a subscription. The arbitrage is over; the bill is real.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).