Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

GMNCODE Usage

v0.1.3

通过 HTTP 接口查询 GMNCODE / gmncode.cn 中转站的大模型用量,包括 dashboard 汇总、每日趋势、按模型拆分的 token 与费用数据。当用户要求查看 GMNCODE token 用量、每日模型消耗、API/中转站花费、dashboard 用量,或希望用脚本/HTTP 接口直接获取...

0· 111·0 current·0 all-time
byAlexShen@alex-shen1121

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for alex-shen1121/gmncode-usage.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "GMNCODE Usage" (alex-shen1121/gmncode-usage) from ClawHub.
Skill page: https://clawhub.ai/alex-shen1121/gmncode-usage
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install gmncode-usage

ClawHub CLI

Package manager switcher

npx clawhub@latest install gmncode-usage
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
!
Purpose & Capability
The skill's purpose is to query GMNCODE usage and the code implements login + dashboard usage queries against https://gmncode.cn, which is coherent. However, the registry metadata lists no required environment variables or primary credential while both SKILL.md and the script require GMNCODE_EMAIL and GMNCODE_PASSWORD. That metadata omission is an inconsistency that could cause unexpected credential prompts.
Instruction Scope
SKILL.md and the script limit actions to reading credentials from environment or ~/.openclaw/.env, calling specific dashboard API endpoints, and caching a bearer token under ~/.cache/openclaw/gmncode-usage/token.json. The instructions do not request unrelated files, admin routes, or external endpoints beyond the hardcoded https://gmncode.cn.
Install Mechanism
There is no install spec (instruction-only) and the included Python script uses only standard library networking; nothing is downloaded from arbitrary URLs and no archives are extracted. Risk from install mechanism is low.
!
Credentials
Requiring GMNCODE_EMAIL and GMNCODE_PASSWORD is proportionate to performing a login-based API access, but the skill requests a full account password rather than an API token (more sensitive). Also, the registry did not declare these required env vars nor a primary credential, which is misleading. The script writes a token cache in the user's home directory (normal) but users should be aware they're giving account credentials.
Persistence & Privilege
The skill does not request elevated or persistent platform privileges. It creates a local token cache under the user's home directory and will delete/refresh it on 401; always:false and no modification of other skills or system-wide settings. This is typical and limited in scope.
What to consider before installing
This skill's code and docs show it logs into https://gmncode.cn and queries usage data; that's consistent with its description. However: (1) the registry metadata omits the required GMNCODE_EMAIL/GMNCODE_PASSWORD env vars—expect the skill to ask for those; (2) it needs your account password (not just an API key), which is sensitive—prefer creating a dedicated/limited account or API token if GMNCODE supports one; (3) the script caches a bearer token at ~/.cache/openclaw/gmncode-usage/token.json and reads ~/.openclaw/.env, so check those file permissions (chmod 600) and inspect the cache content if concerned; (4) review the full script yourself (it's included) to confirm no unexpected network destinations or behavior; and (5) if you proceed, run it in a confined environment or with an account that has minimal privileges. The main issue is the metadata mismatch and the sensitivity of requiring a full password—fixing the metadata or using an API token would increase trust.

Like a lobster shell, security has layers — review code before you run it.

latestvk97e70bwyfxt5gvtpbtm0fr5ah83k7b9
111downloads
0stars
4versions
Updated 1mo ago
v0.1.3
MIT-0

GMNCODE Usage

使用本技能自带脚本,通过可用的 dashboard HTTP 接口查询 GMNCODE 用量数据。

快速开始

  1. 先确保凭据已经通过环境变量或 ~/.openclaw/.env 提供。
  2. 优先运行 scripts/gmncode_usage.py,不要每次都重新手写登录、token 缓存和重试逻辑。
  3. 常用命令:
    • python3 scripts/gmncode_usage.py brief
      查询你最常要的那组指标:账户每日额度 + 今日模型用量
    • python3 scripts/gmncode_usage.py quota
      只看账户每日额度
    • python3 scripts/gmncode_usage.py report --date today
    • python3 scripts/gmncode_usage.py report --date 2026-03-25
    • python3 scripts/gmncode_usage.py report --start 2026-03-01 --end 2026-03-26
    • python3 scripts/gmncode_usage.py models --date 2026-03-25 --json
    • python3 scripts/gmncode_usage.py trend --start 2026-03-01 --end 2026-03-26 --json

工作流

1. 安全加载凭据

不要把邮箱和密码硬编码进临时脚本、回复内容或日志里。

优先使用:

  • GMNCODE_EMAIL
  • GMNCODE_PASSWORD

GMNCODE_BASE_URL 已固定写死为 https://gmncode.cn,因为这不是敏感信息,不需要放进环境变量。

如果缺少凭据,就停止执行,并提示用户补充到 ~/.openclaw/.env

2. 复用内置客户端

脚本已经处理好了:

  • 通过 /api/v1/auth/login 登录
  • access token 本地缓存
  • 遇到 401 / INVALID_TOKEN 时自动重新登录并重试一次
  • dashboard 所需的 referer / headers

除非 HTTP 接口失效,否则不要退回浏览器自动化方案。

3. 使用正确接口

使用以下接口:

  • /api/v1/subscriptions?status=active
  • /api/v1/usage/dashboard/stats
  • /api/v1/usage/dashboard/trend
  • /api/v1/usage/dashboard/models

请求参数统一传:

  • start_date=YYYY-MM-DD
  • end_date=YYYY-MM-DD
  • timezone=Asia/Shanghai

不要用 /api/v1/admin/dashboard/*,普通用户 token 会返回 403 FORBIDDEN

4. 按指标口径取值

如果用户要的是这组固定指标,按下面口径取:

A. 账户每日使用额度

/api/v1/subscriptions?status=active 读取所有活跃订阅:

  • 每日使用额度 = sum(group.daily_limit_usd)
  • 今日已用 = sum(daily_usage_usd)
  • 今日剩余 = 每日使用额度 - 今日已用

B. 今日模型用量

/api/v1/usage/dashboard/models 读取指定日期:

  • 模型名:model
  • token 用量:total_tokens
  • 实际金额:actual_cost

默认把 token 格式化成 x.x M / x.xx B 这种紧凑写法。

输出建议

如果用户只想看固定口径,优先给两块:

  1. 账户额度:每日使用额度 / 今日已用 / 今日剩余
  2. 今日模型使用:模型名 / token 用量 / 实际金额

如果用户要更完整的汇报,再补:

  • stats 的汇总数据
  • trend 的每日趋势
  • 当查询区间为单日时,补 models 的按模型拆分

默认使用紧凑表格或短列表,避免冗长描述。

资源

scripts/

  • scripts/gmncode_usage.py:安全的 HTTP 客户端与 CLI,负责登录、stats、trend、models 查询。

references/

  • references/api.md:接口说明、安全约定、凭据存储方式与字段解释。

Comments

Loading comments...