{"repo":"tylerchen0123-sudo/CODEX-Inspection-Guidelines-for-Dosage","free":true,"listed":false,"github":"https://github.com/tylerchen0123-sudo/CODEX-Inspection-Guidelines-for-Dosage","clone":"git clone https://github.com/tylerchen0123-sudo/CODEX-Inspection-Guidelines-for-Dosage.git","description":"CODEX × WORKBUDDY Token 监控看板 | 本地实时 SSE 看板，监控 AI 会话的 Token 消耗、命中率与活跃会话最新消息 / Local real-time SSE dashboard monitoring AI session token usage, hit-rate & latest activity.","language":"Python","stars":13,"topics":["canvas","codex","dashboard","monitoring","python","realtime","sse","token-monitor","workbuddy"],"license":"MIT","category":"dashboards-admin","readme_excerpt":"Codex Token Usage Monitor Local, privacy-first observability for Codex token usage, cache activity, and active sessions. - Codex-first: reads local /.codex/sessions and archived sessions - Real-time dashboard: SSE live updates with token, cache, and active-session visibility - Local-first: session analysis stays on the local machine - Lightweight: Python 3.10+ using the standard library; no third-party Python packages required - Cross-platform: Windows launcher plus command-line startup for macOS/Linux - Optional: WorkBuddy monitoring is supported as a secondary integration 📦 Current release: v0.1.0 · Contributions and compatibility reports are welcome. This is an independent open-source project, not an official OpenAI product. Locally derived usage values are not official billing records. --- CODEX × WORKBUDDY Token 实时监控（对话 Token 消耗，命中率） 本地零依赖的 Token 消耗实时监控看板，同时覆盖 CODEX 与 WORKBUDDY 双端。 无需安装： 把仓库所有文件下载下来，直接双击 run.bat 即可运行，不需要 pip install 、也不需要配置任何环境。 只想要 CODEX 监控？ 复制本仓库后让 AI 去掉 WORKBUDDY 相关部分即可（主要涉及 collector.py 中的 WorkBuddy 扫描逻辑与 web/index.html 里的 WorkBuddy 卡片/图表）。 效果预览 功能 - 增量扫描本地会话日志，统计 Token 消耗（输入/输出/Cache 写入与读取命中） - 双端数据源： - CODEX ： /.codex/sessions + archived sessions - WORKBUDDY ： /.workbuddy/projects/ .jsonl + workbuddy.db - 原生 Canvas 看板（无前端框架），支持 SSE 实时自动刷新 + 手动刷新 - 「开始 / 停止（暂停）」按钮：停止仅暂停扫描线程，进程保留，可随时恢复 - 数据展示：总量、活跃会话、单条命中率、双端占比 运行 方式一：双击启动器（推荐） 双击 run.bat ： 1. 自动释放 127.0.0.1:8910 残留端口 2. 前台启动服务（窗口常驻，报错不会闪退） 3. 用系统默认浏览器打开 http://127.0.0.1:8910/ 关闭该窗口即停止监控。 重启电脑后： 监控不","default_branch":null,"files":null,"tree":[],"storefront":"/r/tylerchen0123-sudo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tylerchen0123-sudo/CODEX-Inspection-Guidelines-for-Dosage/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}