Skip to content

claude routing keeps the native login - #16

Merged
DexterStorey merged 2 commits into
mainfrom
claude-routing-keeps-native-login
Jul 23, 2026
Merged

claude routing keeps the native login#16
DexterStorey merged 2 commits into
mainfrom
claude-routing-keeps-native-login

Conversation

@DexterStorey

@DexterStorey DexterStorey commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Closes #15

What

install now writes only ANTHROPIC_BASE_URL, with no dummy auth token. When ANTHROPIC_AUTH_TOKEN is set, Claude Code switches to gateway auth, which disables every feature tied to the claude.ai login: connectors and MCP, MCP tool search, and server-side tools. With only the base URL set, Claude Code keeps its native login and sends its own bearer token, and the proxy already replaces that token on every request, so routing and auto-rotation are unchanged. Install also clears the dummy token that earlier versions left behind, so upgrading and rerunning tokenmaxx install heals an existing setup. Uninstall no longer deletes a token the user set themselves.

An out-of-date dashboard now says restart and refuses changes. This resurfaced during testing: a dashboard opened before the upgrade kept rewriting the settings with its old in-memory code. The dashboard now reads the installed version from disk on its usual refresh. When that version differs from the running build, it shows a banner saying the new version is installed and this dashboard is out of date, tells the user to quit and run tokenmaxx again, and the action loop refuses config and credential writes from the stale process. TOKENMAXX_FAKE_STALE previews the banner in fixture mode, like TOKENMAXX_FAKE_UPDATE.

Behavior change

Claude Code now requires a native claude.ai login when routed through tokenmaxx. The dummy token used to satisfy that login check, but it also cut off the identity-tied features, and restoring those is the point of this fix.

Testing

  • bun run check is green: typecheck, biome, and 53 tests, including new coverage for the Claude settings install, uninstall, and upgrade paths and the disk-version read.
  • Pointed ANTHROPIC_BASE_URL at a header-logging listener and confirmed Claude Code sends its own bearer token, which the proxy overwrites either way.
  • Confirmed end to end on the machine from the original incident, using the published alpha: removing the dummy token while keeping the native login brought connectors and MCP back.

@DexterStorey
DexterStorey force-pushed the claude-routing-keeps-native-login branch from 47c7f17 to 3a960c0 Compare July 23, 2026 22:31
@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

try this branch: bun add -g tokenmaxx@0.0.58-alpha.79

@DexterStorey
DexterStorey force-pushed the claude-routing-keeps-native-login branch from 3a960c0 to adfb4d4 Compare July 23, 2026 23:06
@DexterStorey
DexterStorey merged commit d57bb66 into main Jul 23, 2026
3 checks passed
@DexterStorey
DexterStorey deleted the claude-routing-keeps-native-login branch July 23, 2026 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

install's dummy ANTHROPIC_AUTH_TOKEN disables MCP and claude.ai-tied tools in Claude Code

1 participant