Token Dashboard logo

Token Dashboard

Community
fuyi-git
token-dashboard

生成 WorkBuddy Token 消耗看板(单文件离线 HTML,含 KPI / 日历热力图 / 0-24 时模型分布 / 每日模型比例 / 工作空间-会话-请求三级下钻)。当用户想查看自己的 token 用量、消耗统计、成本审计时使用,例如"看看我的 token 用量""token 审计""生成本月消耗看板"。

Overview

Publisherfuyi-git
Repositorytoken-dashboard
Skill nametoken-dashboard
Stars
61
Forks
11
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by fuyi-git on GitHub. Read the source before you install it.

Installation

Install the Token Dashboard AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/fuyi-git/token-dashboard/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fuyi-git/token-dashboard.git \
  .claude/skills/token-dashboard
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Token Dashboard in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Token Dashboard on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Token Dashboard is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Token 消耗看板

为本机 WorkBuddy 生成一张请求级真实 usage 的 Token 消耗看板(单文件自包含 HTML,离线可看,无外部依赖)。

执行步骤

  1. 确认数据目录:默认 ~/.workbuddy/projects(Windows / macOS / Linux 通用)。若用户想看其他目录的日志,用 --projects 参数传入。

  2. 选择 Python:优先使用平台的托管 Python 运行时;没有则用系统 python3(Windows 为 python)。脚本仅依赖标准库(3.8+),无需安装任何依赖。

  3. 运行脚本(scripts 与 SKILL.md 同目录,用绝对路径调用):

    python <skill目录>/scripts/gen_dashboard.py --out <工作区>/token-dashboard.html
    • 默认输出 token-dashboard.html 到当前目录。
    • 数据目录不存在时脚本会报错退出并提示,此时告知用户本机可能未使用过 WorkBuddy。
  4. 展示结果:用文件展示工具打开发出的 HTML,并口头汇报关键数字:合计 token、日均、会话/轮次、输入输出比、缓存命中率、预估金额、TOP 模型。

看板能力

  • KPI:合计 Token / 日均 / 会话 / 轮次 / 输入输出比 / 缓存命中率 / 预估金额(元)
  • 日活热力图(20 分钟粒度)、0–24 时模型山脊图、每日模型用量堆叠柱、单次请求大小分布(50%/90% 分位)
  • 工作空间 → 会话 → 单次请求三级下钻(散点 + 明细表)
  • 深浅色主题(记忆偏好)、1/3/7/30 天窗口 + 自定义日期区间

数据与口径说明

  • 数据源:~/.workbuddy/projects/**/*.jsonl 中每条记录的 providerData.rawUsage / usage 字段(请求级真实 usage,非估算);深层子代理日志(subagents/agent-*.jsonl)自动归属父会话。
  • 会话标题取首条非内部标签的用户消息前 42 字。
  • 预估金额基于脚本头部 PRICE 表(单位:元/百万 token,格式 [输入, 输出, 缓存命中]),按每条请求的实际缓存命中计价:读命中走缓存价、缓存写入(Claude 系)按 1.25× 输入价、其余输入走输入价。不同用户套餐价格不同,汇报时应说明这是按牌价的粗略预估,用户可自行修改 PRICE 表。

注意

  • Windows 控制台为 GBK 时脚本已内置 UTF-8 输出保护,若仍乱码不影响 HTML 生成。
  • 看板内数据完全来自本机日志,不会外发;生成的是本地文件,不会自动上传。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Token Dashboard AI skill do?

生成 WorkBuddy Token 消耗看板(单文件离线 HTML,含 KPI / 日历热力图 / 0-24 时模型分布 / 每日模型比例 / 工作空间-会话-请求三级下钻)。当用户想查看自己的 token 用量、消耗统计、成本审计时使用,例如"看看我的 token 用量""token 审计""生成本月消耗看板"。

Why use Token Dashboard on TypingMind?

Because you install it once and use it with any model. Token Dashboard is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Token Dashboard in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/fuyi-git/token-dashboard/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Token Dashboard?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Token Dashboard?

As many as you like. As long as a model supports skills, you can use Token Dashboard with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Token Dashboard AI skill free?

It is published on GitHub by fuyi-git. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇