claude routing keeps the native login - #16
Merged
Conversation
DexterStorey
force-pushed
the
claude-routing-keeps-native-login
branch
from
July 23, 2026 22:31
47c7f17 to
3a960c0
Compare
|
try this branch: |
DexterStorey
force-pushed
the
claude-routing-keeps-native-login
branch
from
July 23, 2026 23:06
3a960c0 to
adfb4d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #15
What
installnow writes onlyANTHROPIC_BASE_URL, with no dummy auth token. WhenANTHROPIC_AUTH_TOKENis 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 rerunningtokenmaxx installheals 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
tokenmaxxagain, and the action loop refuses config and credential writes from the stale process.TOKENMAXX_FAKE_STALEpreviews the banner in fixture mode, likeTOKENMAXX_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 checkis green: typecheck, biome, and 53 tests, including new coverage for the Claude settings install, uninstall, and upgrade paths and the disk-version read.ANTHROPIC_BASE_URLat a header-logging listener and confirmed Claude Code sends its own bearer token, which the proxy overwrites either way.