feat(deepseek/usage): add usage command for platform.deepseek.com#2130
Closed
cypggs wants to merge 3 commits into
Closed
feat(deepseek/usage): add usage command for platform.deepseek.com#2130cypggs wants to merge 3 commits into
cypggs wants to merge 3 commits into
Conversation
Replace the /code/console page with /membership/subscription?tab=quota so the command surfaces the total usage percentage plus 5h/7h rate limits, gift quota, and booster balance. Co-Authored-By: Claude <noreply@anthropic.com>
…ve conflicts Keep the PR's new implementation: read Kimi membership quota info from /membership/subscription?tab=quota instead of /code/console, exposing total/5h/7d/gift usage percentages, booster balance, and membership details.
Reads DeepSeek platform usage data from https://platform.deepseek.com/usage via internal API (get_user_summary) for account-level data and DOM extraction for time-dimension summary cards. Output columns: - balance / bonusBalance (充值/赠送余额) - cumulativeSpend (累计消费金额) - monthlySpend / monthlyApiCalls / monthlyTokens (本月数据) - currentTokenEstimation (当前可用 Tokens 预估) - timePeriod / periodSpend / periodApiCalls / periodTokens (时间维度)
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.
Add
deepseek usagecommand that reads usage data from https://platform.deepseek.com/usage.Data sources:
/api/v0/users/get_user_summary): balance, bonus balance, cumulative spend, monthly spend, monthly API calls, monthly tokens, token estimationOutput columns:
balance,bonusBalance,cumulativeSpend,monthlySpend,monthlyApiCalls,monthlyTokens,currentTokenEstimation,timePeriod,periodSpend,periodApiCalls,periodTokensTested locally — all columns populated correctly.