deepseek-usage

Query DeepSeek API usage, spending, and token statistics via browser automation.

1|Updated Jun 20, 2026
One-click install
npx skills add https://github.com/riipandi/minis-skills --skill deepseek-usage-riipandi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deepseek-usage
Source: https://github.com/riipandi/minis-skills/tree/main/deepseek-usage
Command: npx skills add https://github.com/riipandi/minis-skills --skill deepseek-usage-riipandi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually checking DeepSeek API balance, monthly spending, and per-model token consumption requires logging into the platform and exporting CSV reports by hand. This Skill automates the entire flow through browser automation, returning a structured usage report in seconds. ## Core Features & Use Cases - Automated Login & Export: Navigates to the DeepSeek Open Platform, logs in with locally stored credentials, and downloads the monthly usage export. - Detailed Usage Breakdown: Parses cost and amount CSVs to report per-model requests, output tokens, cache hit/miss counts, cache hit rate, and spending. - Security-Conscious Parsing: References CSV columns by index to avoid exposing the plaintext API key column present in the export. - Use Case: Ask "how much did I spend on DeepSeek this month" and receive a table showing per-model token usage, cache hit rate, and total cost in CNY. ## Quick Start Check my DeepSeek API usage and spending for this month.

Frequently Asked Questions about deepseek-usage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check DeepSeek API usage and spending?

Set DEEPSEEK_EMAIL and DEEPSEEK_PASSWORD environment variables, then ask to check usage or spending. The skill logs into platform.deepseek.com, exports the monthly usage zip, and returns per-model token counts, cache hit rate, and total cost.

How to get DeepSeek token consumption per model?

The skill downloads the monthly usage export from the DeepSeek platform API and parses the amount CSV. It aggregates requests, output tokens, cache hit and miss tokens per model, plus cost from the cost CSV.

Does DeepSeek usage query work with Google or WeChat login?

No, accounts using Google, WeChat, or other third-party login are not supported. The skill only works with email and password credentials stored in local environment variables.

Why does the DeepSeek export fetch return Missing Token?

Browser automation fetch calls do not carry page cookies, causing Missing Token errors. The skill solves this by running fetch inside the page context via execute_js using the token from localStorage.

Is my DeepSeek API key safe when parsing usage CSV?

The amount CSV contains a plaintext api_key column, so the skill parses strictly by column index and never prints full rows. Credentials stay in local environment variables and are never uploaded.