Skip to content

feat(keys): add granular API key limits - #73

Open
mahdiwafy wants to merge 1 commit into
Vanszs:mainfrom
mahdiwafy:pr/api-key-limits
Open

feat(keys): add granular API key limits#73
mahdiwafy wants to merge 1 commit into
Vanszs:mainfrom
mahdiwafy:pr/api-key-limits

Conversation

@mahdiwafy

Copy link
Copy Markdown

Summary

  • Adds optional API key limits: expiry, per-request max tokens, daily tokens, RPM/RPH/RPD, and rolling token windows.
  • Records API-key usage after successful upstream calls.
  • Exposes key limit fields in the dashboard key editor.

Scope

Focused only on API key limit storage/enforcement/UI.

PR #61 comparison

PR #61 adds allowed-model ACL columns. This PR adds limit fields and usage accounting. If PR #61 merges first, this branch may need a migration-number rebase, but the feature scope is separate.

Verification

  • npm run lint:undef

mahdiwafy added a commit to mahdiwafy/VansRouter that referenced this pull request Jul 30, 2026
…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
@mahdiwafy mahdiwafy closed this Jul 30, 2026
@mahdiwafy
mahdiwafy deleted the pr/api-key-limits branch July 30, 2026 05:06
@mahdiwafy
mahdiwafy restored the pr/api-key-limits branch July 30, 2026 05:15
@mahdiwafy mahdiwafy reopened this Jul 30, 2026
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.

1 participant