Add Neuralwatt balance and subscription quota checkers#184
Merged
Conversation
Implements two quota checkers for the Neuralwatt API (/v1/quota endpoint): - neuralwatt: balance checker tracking credit balance (credits_remaining_usd) - neuralwatt-subscription: rate-limit checker tracking kWh subscription usage Both checkers use Bearer token auth against api.neuralwatt.com/v1/quota. Includes frontend display components, config components, and integration with CompactBalancesCard, CompactQuotasCard, CombinedBalancesCard, Quotas.tsx, and Providers.tsx. Closes #169 Co-authored-by: Matt Cowger <mcowger@users.noreply.github.com>
Owner
Author
|
@claude I think we need to modify this to a single checker that populates both types so that a user doesn't have to double configure just to get both checker types. |
|
Claude finished @mcowger's task in 6m 8s —— View job Consolidating Neuralwatt Checkers
What changedMerged the two separate Backend —
The checker has Removed files:
Updated files:
Users now configure just one |
Merge the two separate Neuralwatt quota checkers (neuralwatt for balance and neuralwatt-subscription for kWh usage) into a single neuralwatt checker. This avoids requiring users to configure the same API key twice. The merged checker makes one API call and returns both the credit balance window (subscription type) and the kWh energy window (monthly type) when available. The frontend display now shows both balance and subscription usage in one card. Co-authored-by: Matt Cowger <mcowger@users.noreply.github.com>
- Add 'neuralwatt' to VALID_QUOTA_CHECKER_TYPES in backend config - Add 'neuralwatt' to FALLBACK_QUOTA_CHECKER_TYPES in frontend api.ts - Add 'neuralwatt' to quotaCheckerTypeEnum in Postgres schema - Add NeuralwattQuotaCheckerOptionsSchema (endpoint only, apiKey auto-inherited) - Add neuralwatt variant to ProviderQuotaCheckerSchema discriminated union - Remove apiKey field from NeuralwattQuotaConfig (auto-inherited from provider) - Fix NeuralwattQuotaDisplay to show both dollar balance and kWh energy quota following ApertisCodingPlanQuotaDisplay pattern for the rate-limit part - Add BALANCE_CHECKERS_WITH_RATE_LIMIT set in Quotas.tsx and Sidebar.tsx so neuralwatt appears in both balance and rate-limit sections - Add neuralwatt case to getTrackedWindowsForChecker in CompactQuotasCard - Add AGENTS.md documenting the full quota checker integration checklist and the hybrid balance+rate-limit checker pattern
github-actions bot
added a commit
that referenced
this pull request
Apr 17, 2026
* Add Neuralwatt balance and subscription quota checkers Implements two quota checkers for the Neuralwatt API (/v1/quota endpoint): - neuralwatt: balance checker tracking credit balance (credits_remaining_usd) - neuralwatt-subscription: rate-limit checker tracking kWh subscription usage Both checkers use Bearer token auth against api.neuralwatt.com/v1/quota. Includes frontend display components, config components, and integration with CompactBalancesCard, CompactQuotasCard, CombinedBalancesCard, Quotas.tsx, and Providers.tsx. Closes #169 Co-authored-by: Matt Cowger <mcowger@users.noreply.github.com> * Consolidate Neuralwatt balance and subscription into single checker Merge the two separate Neuralwatt quota checkers (neuralwatt for balance and neuralwatt-subscription for kWh usage) into a single neuralwatt checker. This avoids requiring users to configure the same API key twice. The merged checker makes one API call and returns both the credit balance window (subscription type) and the kWh energy window (monthly type) when available. The frontend display now shows both balance and subscription usage in one card. Co-authored-by: Matt Cowger <mcowger@users.noreply.github.com> * feat: neuralwatt quota checker - fix type registrations & display - Add 'neuralwatt' to VALID_QUOTA_CHECKER_TYPES in backend config - Add 'neuralwatt' to FALLBACK_QUOTA_CHECKER_TYPES in frontend api.ts - Add 'neuralwatt' to quotaCheckerTypeEnum in Postgres schema - Add NeuralwattQuotaCheckerOptionsSchema (endpoint only, apiKey auto-inherited) - Add neuralwatt variant to ProviderQuotaCheckerSchema discriminated union - Remove apiKey field from NeuralwattQuotaConfig (auto-inherited from provider) - Fix NeuralwattQuotaDisplay to show both dollar balance and kWh energy quota following ApertisCodingPlanQuotaDisplay pattern for the rate-limit part - Add BALANCE_CHECKERS_WITH_RATE_LIMIT set in Quotas.tsx and Sidebar.tsx so neuralwatt appears in both balance and rate-limit sections - Add neuralwatt case to getTrackedWindowsForChecker in CompactQuotasCard - Add AGENTS.md documenting the full quota checker integration checklist and the hybrid balance+rate-limit checker pattern --------- Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
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.
Implements two quota checkers for the Neuralwatt API (/v1/quota endpoint):
neuralwatt: balance checker tracking credit balance (credits_remaining_usd)neuralwatt-subscription: rate-limit checker tracking kWh subscription usageBoth use Bearer token auth against api.neuralwatt.com/v1/quota.
Includes frontend display components, config components, and integration
with all relevant frontend pages and cards.
Closes #169
Generated with Claude Code