deepseek-balance

WarnAudited by ClawScan on May 13, 2026.

Overview

The skill is meant to check a DeepSeek balance, but it may send an unrelated ANTHROPIC_AUTH_TOKEN to DeepSeek if DEEPSEEK_API_KEY is not set.

Review this skill before installing. It should be changed to use only DEEPSEEK_API_KEY for DeepSeek balance checks. If you install it as-is, ensure ANTHROPIC_AUTH_TOKEN is not present in the environment where the agent may run the command.

Publisher note

--- name: deepseek-balance description: 查询 DeepSeek API 账户余额 version: 1.0.0 tags: [deepseek, api, balance] --- # DeepSeek 余额查询技能 ## 执行代码 ```bash #!/bin/bash API_KEY="${DEEPSEEK_API_KEY:-$ANTHROPIC_AUTH_TOKEN}" if [ -z "$API_KEY" ]; then echo "❌ 请设置 DEEPSEEK_API_KEY 环境变量" exit 1 fi curl -s -X GET 'https://api.deepseek.com/user/balance' \ -H "Authorization: Bearer $API_KEY" \ | python3 -c " import sys,json d=json.load(sys.stdin) if d.get('is_available'): b=d['balance_infos'][0] print(f\"✅ 余额: {b['total_balance']} {b['currency']} (赠送: {b['granted_balance']})\") else: print('⚠️ 无可用余额') "

Findings (1)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

A non-DeepSeek credential or session token could be exposed to DeepSeek and may fail while still leaking sensitive access material.

Why it was flagged

If DEEPSEEK_API_KEY is unset, the script reuses ANTHROPIC_AUTH_TOKEN and sends it as a bearer credential to DeepSeek, which is not clearly within the stated DeepSeek balance-checking purpose.

Skill content
API_KEY="${DEEPSEEK_API_KEY:-$ANTHROPIC_AUTH_TOKEN}" ... curl ... 'https://api.deepseek.com/user/balance' ... -H "Authorization: Bearer $API_KEY"
Recommendation

Require DEEPSEEK_API_KEY only, or use a clearly named DeepSeek-specific fallback. Do not read or forward ANTHROPIC_AUTH_TOKEN, and declare required credentials in metadata.