deepseek-usage

Queries DeepSeek API balance, spending, and token usage via browser automation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Checking DeepSeek API usage requires manually logging into the platform, navigating dashboards, and exporting CSV files. This Skill automates the entire flow so you can see your balance, monthly spending, per-model token consumption, and cache hit rate with a single request. ## Core Features & Use Cases - Automated Login & Navigation: Uses browser automation to log into the DeepSeek Open Platform with credentials stored in local environment variables. - Usage Data Export & Parsing: Downloads the monthly usage ZIP export, unzips it in-page with JSZip, and parses cost and amount CSVs into a per-model breakdown. - Cache Hit Rate Analysis: Computes input cache hit/miss ratios per model to help optimize prompt caching and reduce costs. - Use Case: Ask "how much did I spend on DeepSeek this month?" and receive a formatted table showing requests, output tokens, cache hit rate, and cost per model, plus your remaining balance. ## Quick Start Check my DeepSeek API usage and show this month's spending and token breakdown by model.

Frequently Asked Questions about deepseek-usage

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

FAQPage Schema
How do I check my DeepSeek API usage and balance?▼

Set DEEPSEEK_EMAIL and DEEPSEEK_PASSWORD environment variables, then ask to check usage. The skill logs into platform.deepseek.com via browser automation, exports the monthly usage ZIP, and reports balance, spending, and per-model token breakdown.

How to check DeepSeek token consumption by model?▼

The skill downloads the usage export from the DeepSeek platform API and parses the amount CSV, aggregating requests, output tokens, and cache hit/miss tokens per model. Results are presented in a table with cache hit rate and cost per model.

Can I use DeepSeek usage export with Google or WeChat login?▼

No, third-party logins such as Google or WeChat are not supported. The skill requires email and password credentials set as DEEPSEEK_EMAIL and DEEPSEEK_PASSWORD environment variables to automate the login form.

Is it safe to put DeepSeek credentials in environment variables?▼

Credentials stay in local environment variables and are only used to fill the login form on the official DeepSeek platform; they are not uploaded elsewhere. The skill also avoids printing the plaintext api_key column present in exported CSV data.

Why does DeepSeek usage export fail with Missing Token?▼

A direct browser fetch does not include the page's authentication context. The skill solves this by running fetch inside execute_js in the page context, reading the token from localStorage and passing it as a Bearer Authorization header.