dsh-token-usage

贴近 DSH 原生设计风格的 token 用量统计插件:实时记录每次请求的用量与费用,在 Web UI 中提供趋势图表、按模型定价明细和供应商配额显示。

A new way for AI to search for data
View on GitHub
16GitHub stars
170commits on main
6forks

TypeScript 93.9%, CSS 4.5%, JavaScript 1.2%, PowerShell 0.3% · created 2026-08-14 · last push 2026-10-31

What XERJ indexed

Snapshot

219 files · 4.0 MB

The whole repository at commit c66c939bcf (2026-10-11). main is 44 commits ahead.

Selected work

LaoYueHanNi
@LaoYueHanNi

“统一正则别名识别并兼容新版定价表”. 19 files, 359 lines in tests, src, src/client.

Licence

The repository

MIT

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

MIT, with credit

The author agreed by email on 2026-10-12. Same terms as the repository. Answers name the repo, the commit and the file:line.

selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution

dsh-plugin

Example questions

Inside the indexed corpus

Licence on GitHub and in the corpus

GitHub reported MIT for LaoYueHanNi/dsh-token-usage on 2026-10-31, and the LICENSE file at commit c66c939bcf was reviewed as MIT. They match, so answers from this corpus carry the same terms as the live repository.

Contributors

LaoYueHanNi (@LaoYueHanNi) has 1 selected repository on the hub.

Using XERJ with dsh-token-usage

The prompt

Paste it into your AI agent. It clones LaoYueHanNi/dsh-token-usage at the pinned commit and indexes it on your machine.

Search the GitHub repository LaoYueHanNi/dsh-token-usage with XERJ (https://hub.xerj.org/corpus/laoyuehanni--dsh-token-usage).
Run these in a shell, in order, and check each result before the next:
1. xerj --help  (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh
2. git clone https://github.com/LaoYueHanNi/dsh-token-usage dsh-token-usage && git -C dsh-token-usage checkout c66c939bcf38c824cd55acb357d9ac8d289abf7e
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./dsh-token-usage --url http://127.0.0.1:9200 --prefix dsh-token-usage --progress plain
5. xerj autoindex map --url http://127.0.0.1:9200
Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt
Licence: MIT. Keep the copyright notice and credit the authors.

Related

Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.