Repository navigation
free: failover and cooldowns for Kimi and Vertex logins - #29
Merged
Merged
Conversation
Each Kimi login and Vertex service account is now its own routing candidate (id file:<name>), fetched by name from the Durable Object and cached per login, so a rate-limited, refused or failing login rests on CPA's cooldowns while the next one serves the request, as Claude and ChatGPT logins already do. Auth file priority, weight, prefix, disable-cooling and request-retry apply to them too.
…-foif0l # Conflicts: # free/src/app.ts
playgrndlabs-bot
pushed a commit
that referenced
this pull request
Oct 29, 2026
#29 gave Vertex and Kimi logins routing entries with prefixes.
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.
Requested by PlaygrndLabs · project thread
What
Follow-up to #24. Kimi logins and Vertex service accounts now route the same way Claude and ChatGPT logins already do:
file:<name>, groupoauth-served). It used to be a single candidate per provider that the Durable Object rotated through.priority,weight,prefix,disable-coolingandrequest-retrynow apply to these logins.Backend.loginToken(provider, name?)fetches a named login's token.provider:namein each isolate.loginslist still gets one "next in turn" candidate per provider.Security pass
prefix/only filters the list.Account.loginToken(provider, name)only looks among that provider's enabled files.Tests
npm run verify: typecheck, lint and 227 tests all pass. New tests:file:k1.json, model-scoped) and the other serves the request. Usage is counted per login.team/picks the login with that prefix.routing().logins, its token can be fetched by name, and a name from another provider is refused.Generated by Claude Code