Agent skill

Deepseek Usage

by OpenMinis in OpenMinis/MinisSkills

Check DeepSeek API usage (balance, this month's spending, token breakdown by model, daily breakdown, and cache hit rate).

MITAuto-check passedDevOps & Cloud

Install Deepseek Usage

skills CLI
$ npx skills add OpenMinis/MinisSkills --skill deepseek-usage -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install OpenMinis/MinisSkills deepseek-usage --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/OpenMinis/MinisSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/deepseek-usage .claude/skills/deepseek-usage && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
deepseek-usage
GitHub stars
440
Token cost
~2.1k tokens
SKILL.md length
535 words
Files
1
Skills in repo
49
Repo updated
First seen
Licence
MIT

At a glance

Check DeepSeek API usage (balance, this month's spending, token breakdown by model, daily breakdown, and cache hit rate).

  • Works in 6 steps: Set Environment Variables → Verify the Configuration → Navigate and Ensure Login (1 tool call) → …
  • Says check usage
  • SKILL.md covers Prerequisite Configuration…, Query Process (requires only 2…, ⚠️ Security Precautions (must… and Troubleshooting Notes
  • Reaches platform.deepseek.com and cdnjs.cloudflare.com; needs DEEPSEEK_PASSWORD

What it does

Deepseek Usage is an agent skill from OpenMinis/MinisSkills. Check DeepSeek API usage (balance, this month's spending, token breakdown by model, daily breakdown, and cache hit rate). Access the DeepSeek Open Platform through browseruse, automatically log in, and export monthly data. Users must configure their DeepSeek account in local environment variables. Triggered when the user says "check usage," "view token consumption," "check spending," "how much balance is left," or "how much was used today."

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Requires python3. DEEPSEEKEMAIL and DEEPSEEKPASSWORD env vars.

It sits in DevOps & Cloud, covering Secrets management and Browser automation. It works with DeepSeek. The repository describes itself as: Skills collection for Minis. The licence is MIT.

When your agent uses it

  • Says check usage
  • View token consumption
  • How much balance is left
  • How much was used today

Example prompts

  • “check usage,”
  • “view token consumption,”
  • “check spending,”
  • “/deepseek-usage”

Requirements

  • Compatibility (from SKILL.md): Requires python3. DEEPSEEK_EMAIL and DEEPSEEK_PASSWORD env vars.

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Set Environment Variables
  2. Verify the Configuration
  3. Navigate and Ensure Login (1 tool call)
  4. Run the complete JS script in one step (1 execute_js)
  5. Screenshot (1 tool call, optional)
  6. Report (memory_write is decided by the user)

What it can do on your machine

Read from SKILL.md and the folder at commit cb72d91. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml, bash and javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • platform.deepseek.com
    • cdnjs.cloudflare.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • DEEPSEEK_PASSWORD

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires python3. DEEPSEEK_EMAIL and DEEPSEEK_PASSWORD env vars.

    From compatibility in the SKILL.md frontmatter.

Context cost

Deepseek Usage loads about 2.1k tokens when it runs. Until then it costs about 115 tokens; SKILL.md has 535 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~115
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from OpenMinis/MinisSkills at commit cb72d91, republished under its MIT licence (© OpenMinis). 535 words, ~2,058 tokens.

Download SKILL.mdSave it as .claude/skills/deepseek-usage/SKILL.md (or your agent's skills folder).
name
deepseek-usage
description
Check DeepSeek API usage (balance, this month's spending, token breakdown by model, daily breakdown, and cache hit rate). Access the DeepSeek Open Platform through browser_use, automatically log in, and export monthly data. Users must configure their DeepSeek account in local environment variables. Triggered when the user says "check usage," "view token consumption," "check spending," "how much balance is left," or "how much was used today."
compatibility
Requires python3. DEEPSEEK_EMAIL and DEEPSEEK_PASSWORD env vars.
version
1.1.0

DeepSeek API Usage Query

⚠️ Security Notice This skill requires DeepSeek login credentials to work. Credentials are stored only in local environment variables. Minis does not upload them to any server. If you do not trust this method, delete this skill or do not set any credentials.

Prerequisite Configuration (first use only)

1. Set Environment Variables

Add the following two variables in Minis Settings → Environment Variables:

Variable NameDescriptionExample Value
DEEPSEEK_EMAILYour DeepSeek platform login email addressuser@example.com
DEEPSEEK_PASSWORDYour DeepSeek platform login passwordyour_password_here

🔗 Click here to open the environment variable settings

If your account uses a third-party login such as Google or WeChat, you cannot use this skill.

2. Verify the Configuration
bash
[ -n "$DEEPSEEK_EMAIL" ] && [ -n "$DEEPSEEK_PASSWORD" ] && echo "Configured" || echo "Not configured"

Query Process (requires only 2 tool calls)

Step 1: Navigate and Ensure Login (1 tool call)
yaml
Action:
  - set_user_agent: desktop_chrome
  - navigate: https://platform.deepseek.com/usage
  - If not logged in, fill DEEPSEEK_EMAIL / DEEPSEEK_PASSWORD from environment variables and submit the login form
  - wait_for_dom_stable
Step 2: Run the complete JS script in one step (1 execute_js)

The following JS script completes all logic: get token → download ZIP → unzip → parse CSV → output.

Run the entire JS script as the argument to execute_js --script in a single execution.

js
(async () => {
  // === Get summary text ===
  // Extract with get_readable (done outside execute_js)

  // === Get Token ===
  const token = JSON.parse(localStorage.getItem('userToken')).value;
  if (!token) return JSON.stringify({ error: 'no_token' });

  // === Download zip ===
  const resp = await fetch('https://platform.deepseek.com/api/v0/usage/export?month=5&year=2026', {
    headers: { 'Authorization': 'Bearer ' + token }
  });
  const blob = await resp.blob();

  // === Load JSZip ===
  const script = document.createElement('script');
  script.src = 'https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js';
  await new Promise(r => { script.onload = r; document.head.appendChild(script); });

  // === Unzip ===
  const zip = await JSZip.loadAsync(blob);
  const costText = await zip.file('cost-2026-5.csv').async('text');
  const amountText = await zip.file('amount-2026-5.csv').async('text');

  // === Parse cost (fees) ===
  // ⚠️ Header: user_id, utc_date, model, wallet_type, cost, currency
  const costLines = costText.trim().split('\n').slice(1);
  const modelCost = {};
  let totalCost = 0;
  for (const line of costLines) {
    const p = line.split(',');
    const model = p[2], cost = parseFloat(p[4]) || 0;
    modelCost[model] = (modelCost[model] || 0) + cost;
    totalCost += cost;
  }

  // === Parse amount (usage, filter by date as needed) ===
  // ⚠️ Header: user_id, utc_date, model, api_key_name, api_key(sensitive!), type, price, amount
  // ⚠️ Security warning: Column 5 is the plaintext api_key. Do not print entire lines! You must use index references.
  const allLines = amountText.trim().split('\n').slice(1);

  // Filtering rule: if the user asks about today's usage, filter to today; if the user asks about this month's usage, use the full month
  // Default is today. For today's usage, uncomment the following line:
  // const targetDate = 'current date in YYYY-MM-DD format';
  // const filteredLines = targetDate ? allLines.filter(l => l.split(',')[1] === targetDate) : allLines;
  const filteredLines = allLines; // Default: full month

  const models = {};
  for (const line of filteredLines) {
    const p = line.split(',');
    const model = p[2], type = p[5], amount = parseInt(p[7]) || 0;
    if (!models[model]) models[model] = { requests: 0, cache_hit: 0, cache_miss: 0, output: 0 };
    if (type === 'request_count') models[model].requests += amount;
    else if (type === 'input_cache_hit_tokens') models[model].cache_hit += amount;
    else if (type === 'input_cache_miss_tokens') models[model].cache_miss += amount;
    else if (type === 'output_tokens') models[model].output += amount;
  }

  // === Summary output ===
  let result = '';
  let gr = 0, go = 0, gh = 0, gm = 0;

  for (const [m, d] of Object.entries(models)) {
    const ti = d.cache_hit + d.cache_miss;
    const hr = ti > 0 ? (d.cache_hit / ti * 100).toFixed(1) : '0.0';
    const co = modelCost[m] || 0;
    result += `${m}|${d.requests}|${d.output}|${d.cache_hit}|${d.cache_miss}|${ti}|${hr}|${co.toFixed(2)}\n`;
    gr += d.requests; go += d.output; gh += d.cache_hit; gm += d.cache_miss;
  }

  const ti = gh + gm;
  const hr = ti > 0 ? (gh / ti * 100).toFixed(1) : '0.0';
  result += `TOTAL|${gr}|${go}|${gh}|${gm}|${ti}|${hr}|${totalCost.toFixed(2)}`;

  return result;
})();

⚠️ Note: execute_js returns text wrapped in JSON. The AI needs to parse data.text to get the actual result.

Step 3: Screenshot (1 tool call, optional)
yaml
screenshot: current page
Step 4: Report (memory_write is decided by the user)

Whether to write the results to the daily log is decided by the user. Write only when the user explicitly asks.

Output Format

Balance: ¥X.XX | Spent This Month: ¥X.XX

Image: Usage Screenshot

ModelRequestsOutput TokensCache HitsCache MissesTotal Input TokensCache Hit RateCost
deepseek-v4-proXXXXXX%¥X.XX
deepseek-v4-flashXXXXXX%¥X.XX
TotalXXXXXX%¥X.XX

⚠️ Security Precautions (must be followed)

API Key Leakage Risk

Column 5 (index 4) of the amount CSV is the api_key field and contains the user's DeepSeek API Key in plaintext.

Requirements:

  • When parsing CSV, use column index references such as p[2], p[5], and p[7]; do not reference the entire line
  • Do not directly or indirectly display api_key content in any reply, log, or screenshot
  • If you need to inspect CSV content during debugging, print only the header (row 1), not the data rows
Show full SKILL.md (176 more words)Show less
Credential Security
  • Email and password are stored in Minis local environment variables and are not uploaded
  • The localStorage token is valid only for the current browser session
  • We recommend changing your password regularly

Troubleshooting Notes

IssueCauseSolution
Export button click has no effectThe export button is a <div>, not a <button>Use querySelector to match the text "Export", then call .click()
browser_use fetch returns Missing Tokenfetch does not include page cookiesUse execute_js instead to run fetch in the page context
JSZip fails to loadThe import() method is not supportedUse document.createElement('script') to dynamically load the CDN
CSV parses to 0 recordsIncorrect field indexes were guessedFirst confirm the headers (8 columns for amount, 6 columns for cost), then reference by index
amount.csv contains plaintext API KeyColumn 5 is api_keyUse column indexes during parsing; do not print the entire row
minis-browser-use CLI loses state across callsEach call is a separate processPut all JS logic in a single execute_js execution; do not pass state across navigate and execute_js

© OpenMinis, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in deepseek-usage of OpenMinis/MinisSkills.

Open the folder on GitHubat commit cb72d91

Compare with similar skills

Deepseek Usage next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Deepseek Usage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Deepseek Usage this skillOpenMinis/MinisSkills440—~2.1kAutomated safety check: PassMIT
Mac Fleet Maintenancesteipete/agent-scripts7.3k—~4.8kAutomated safety check: PassMIT
BrowserWing AdminMemTensor/MemOS12k—~4.1kAutomated safety check: NotesApache-2.0
TabbitTabbit-Browser/dsh-tabbit102—~780Automated safety check: PassMIT
Access Protected Vercel Deploymentvercel/vercel-plugin301—~1.9kAutomated safety check: NotesCustom licence
Live Debugmacro-inc/macro4.6k—~2.4kAutomated safety check: NotesAGPL-3.0

Similar skills

  • Mac Fleet Maintenance

    steipete/agent-scripts

    Inventories and maintains a fleet of Macs from a desired-state file: package updates, repo and Xcode sync, and disk, backup and security health reports.

    7.3k GitHub stars~4.8k tokensUpdated 3 days ago
    DevOps & CloudAuto-check passed
  • BrowserWing Admin

    MemTensor/MemOS

    Installs, configures and operates BrowserWing, a browser automation platform, covering Chrome setup, LLM provider configuration, and creating or running automation scripts.

    12k GitHub stars~4.1k tokensUpdated 8 days ago
    Productivity & AutomationAuto-check: notes
  • Tabbit

    Tabbit-Browser/dsh-tabbit

    Control Tabbit Browser in a task-isolated Playwright workspace; never switch browser backends.

    102 GitHub stars~780 tokensUpdated 27 days ago
    Testing & QAAuto-check passed
  • Official

    Access and test Vercel deployments protected by Vercel Authentication, SSO, or Deployment Protection.

    301 GitHub stars~1.9k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • Live Debug

    macro-inc/macro

    Debug the running local stack with traces, logs, and a shared headless browser.

    4.6k GitHub stars~2.4k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Self-Hosted n8n Deployment

    czlonkowski/n8n-skills

    Deploys a production n8n instance to a fresh Linux server over SSH with Docker Compose and Caddy HTTPS, in single or queue mode, and covers updates, backups and hardening.

    6.4k GitHub stars~3.5k tokensUpdated 21 days ago
    DevOps & CloudAuto-check: notes

More from OpenMinis/MinisSkills

All 49 skills in this repo
  • Android UI Automation

    OpenMinis/MinisSkills

    Automate Android apps that have no public API or web version by driving the UI layer through the Accessibility Service.

    440 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed
  • Codex On Ish

    OpenMinis/MinisSkills

    Install and run OpenAI Codex CLI inside the Minis/iSH Alpine sandbox on iOS, where rustls TLS and async sockets are broken.

    440 GitHub stars~1k tokensUpdated 2 days ago
    Auto-check passed
  • Evidence Chain Builder

    OpenMinis/MinisSkills

    Score a claim against the evidence behind it. An agent skill from OpenMinis/MinisSkills.

    440 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • Hyperframes CLI

    OpenMinis/MinisSkills

    HyperFrames CLI and Minis rendering. An agent skill from OpenMinis/MinisSkills.

    440 GitHub stars~3.5k tokensUpdated 2 days ago
    Auto-check passed
  • Whenpeak

    OpenMinis/MinisSkills

    Predict when a person's brain works best from their sleep, using the WhenPeak performance-intelligence API, and turn it into concrete scheduling advice.

    440 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Openstreetmap Marker

    OpenMinis/MinisSkills

    Generate a mobile-first, immersive, Amap(Gaode)-style custom landmark marker HTML map for travel itinerary planning, place showcasing, location sharing, etc.

    440 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Deepseek Usage

What does Deepseek Usage do?

Check DeepSeek API usage (balance, this month's spending, token breakdown by model, daily breakdown, and cache hit rate). Deepseek Usage is an agent skill from OpenMinis/MinisSkills. Check DeepSeek API usage (balance, this month's spending, token breakdown by model, daily breakdown, and cache hit rate).

When should I use Deepseek Usage?

Deepseek Usage fits situations like: says check usage; view token consumption; how much balance is left; how much was used today.

How do I install Deepseek Usage in Claude Code?

Run `npx skills add OpenMinis/MinisSkills --skill deepseek-usage -a claude-code`. Or copy the skill folder (deepseek-usage in OpenMinis/MinisSkills) into .claude/skills/deepseek-usage in your project. Claude Code loads it when a task matches its description.

How do I install Deepseek Usage in Codex?

Run `npx skills add OpenMinis/MinisSkills --skill deepseek-usage -a codex`. Or copy the skill folder (deepseek-usage in OpenMinis/MinisSkills) into .agents/skills/deepseek-usage in your project. Codex loads it when a task matches its description.

Can I use Deepseek Usage in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenMinis/MinisSkills --skill deepseek-usage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/deepseek-usage, .gemini/skills/deepseek-usage, .github/skills/deepseek-usage and .opencode/skills/deepseek-usage in your project.

What does Deepseek Usage need to run?

Going by SKILL.md and its folder, Deepseek Usage needs credentials named DEEPSEEK_PASSWORD. Compatibility (from SKILL.md): Requires python3. DEEPSEEK_EMAIL and DEEPSEEK_PASSWORD env vars..

Does Deepseek Usage access the network?

SKILL.md names 2 domains. In commands or code: platform.deepseek.com and cdnjs.cloudflare.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Deepseek Usage safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Deepseek Usage use?

Deepseek Usage is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Deepseek Usage use?

About 2.1k tokens (SKILL.md is roughly 8.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Deepseek Usage?

Skills that share tags, products or a category with Deepseek Usage: Mac Fleet Maintenance (steipete/agent-scripts, 7.3k stars), BrowserWing Admin (MemTensor/MemOS, 12k stars), Tabbit (Tabbit-Browser/dsh-tabbit, 102 stars) and Access Protected Vercel Deployment (vercel/vercel-plugin, 301 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Deepseek Usage?

OpenMinis (a GitHub organization) maintains it in OpenMinis/MinisSkills, which has 440 GitHub stars. The repository holds 49 skills in this directory. The repository was last updated on October 5, 2026.

Source: OpenMinis/MinisSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.