feat: proxy rotation + custom pool selection, API key quota tracker, Tailscale fix - #77
Open
mahdiwafy wants to merge 2 commits into
Open
feat: proxy rotation + custom pool selection, API key quota tracker, Tailscale fix#77mahdiwafy wants to merge 2 commits into
mahdiwafy wants to merge 2 commits into
Conversation
mahdiwafy
force-pushed
the
pr/proxy-key-dashboard-revamp
branch
from
July 30, 2026 00:35
09be419 to
8342d58
Compare
…r, Tailscale loading fix - pickProxyPoolId() supports targetProxyPoolIds for subset rotation - NoAuthProxyCard: checkbox grid for pool selection, conditional UI - apiKeyUsageRepo: getApiKeyUsageSnapshot with real-time metrics - EndpointPageClient: card grid with status badges, quota progress bars - Tailscale: fix endless loading when tunnelUrl is empty - Supersedes PR Vanszs#67 and Vanszs#73
Token Saver (RTK, Headroom, Caveman, Ponytail) settings removed from the Endpoint & API Keys page. These are now exclusively managed via the dedicated Token Saver menu at /dashboard/token-saver. Removed: - Token Saver card (RTK toggle, Headroom toggle+status, Caveman toggle+levels, Ponytail toggle+levels) - Headroom Install/Manage modal - All related state variables, handlers, and computed vars - locale/caveman sync useEffect and WENYAN_LOCALES import - Token saver settings loading from loadSettings
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.
Summary
This PR supersedes #67 and #73, combining their features with additional improvements:
Features
1. Proxy Rotation with Custom Pool Selection
none,fill-first,round-robin,randompickProxyPoolId()acceptstargetProxyPoolIdsparameter to filter rotation[PROXY] PROVIDER | model | conn=Name | pool=ID | vercel-relay=URL2. API Key Quota Tracker
getApiKeyUsageSnapshot()returns real-time metrics: rpm, rph, rpd, tokens/5h, tokens/day, tokens/week, tokens/monthused,limit,percent, andstatus(ok/warning/danger/blocked)apiKeyCounters.js) to avoid DB write amplification3. Tailscale Loading Fix
tunnelUrlis emptyclearUserAuth()removed fromfinallyblock — buttons remain accessibleSuperseded PRs
Files Changed
connectionProxy.jspickProxyPoolIdwithtargetProxyPoolIds,resolveConnectionProxyConfig,filterTargetProxyPoolIdsNoAuthProxyCard.jsauth.jsEndpointPageClient.jsapiKeyUsageRepo.jsgetApiKeyUsageSnapshot,buildMetrichelperproviders/[id]/page.jsNoAuthProxyCardfor all providerspnpm-lock.yamlduck-duck-scrapedependencyTest Plan
vansrouter:full-merge)oc/deepseek-v4-flash-freechat completion → 200https://router.mahdiwafy.my.id/v1/models→ 200