wmy2981/skills

deepseek-balance

Query DeepSeek Open Platform account balance. Triggered when user asks "DeepSeek balance", "API balance", "how much credit left", "check my quota". Requires DEEPSEEK_APIKEY env var.

First seen Aug 8, 2026

Installation

$ npx skills add wmy2981/skills --skill deepseek-balance

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from wmy2981/skills · top by installs.

npx skills add wmy2981/skills

Browse all from wmy2981/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Open issues 3
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

More metadata
skill_version
1.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,978 B
  • docs SUMMARY.md 205 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 36 installs

SKILL.md

DeepSeek Open Platform Balance Query

Use this skill when the user asks about their DeepSeek account balance.

Execution Rule

Run the user's requested command directly without pre-checking dependencies, environment variables, or configuration. If something is wrong, the script will fail with a clear error — check and fix only then.

Usage

The script reads the API key from the DEEPSEEK_APIKEY environment variable, calls the balance API, and outputs raw JSON to stdout. Configure it in ~/.wmyskills/.env (shared across skills) or scripts/.env (takes priority); use scripts/.env.example as the template — add the variable to ~/.wmyskills/.env, never overwriting an existing file.

python scripts/check_balance.py

Output Format

The script outputs raw JSON (no pretty-printing):

Success:

{"is_available":true,"balance_infos":[{"currency":"CNY","total_balance":"110.00","granted_balance":"10.00","topped_up_balance":"100.00"}]}

Error (missing API key or network failure):

{"error": "DEEPSEEK_APIKEY environment variable not set"}

Fields

Field Description
is_available Whether the balance is sufficient for API calls
currency Currency type, CNY or USD
total_balance Total available balance (including granted + topped-up)
granted_balance Unexpired granted balance
toppedupbalance Topped-up balance

Notes

  • Only report the balance number. Do not volunteer pricing or conversion advice (e.g. "how many tokens this covers") unless the user asks.
  • The DEEPSEEK_APIKEY environment variable must be set (or configured in ~/.wmyskills/.env or scripts/.env).