Skip to content

Add Codex Live Token Cost script#42

Open
Tianzora wants to merge 1 commit into
BigPizzaV3:mainfrom
Tianzora:add-codex-live-token-cost
Open

Add Codex Live Token Cost script#42
Tianzora wants to merge 1 commit into
BigPizzaV3:mainfrom
Tianzora:add-codex-live-token-cost

Conversation

@Tianzora

@Tianzora Tianzora commented Jul 6, 2026

Copy link
Copy Markdown

脚本说明

新增 Codex Live Token Cost 到 Codex++ 脚本市场。

这个脚本主要做几件事:

  • 在 Codex 输入框上方显示本轮、当前会话、今日 token 和费用。
  • 支持模型价格设置,并按本地捕获到的真实 usage 计费。
  • 本地解锁官方 Profile / Heatmap 页面,并用本地统计替换 Profile usage 数据。
  • helper 是可选增强项:未运行 helper 时,主 HUD、本地账本和 Profile 解锁仍可用;运行 helper 后可补充 CC Switch 同步、Codex SQLite 线程数、skill / plugin 统计。

本 PR 只把主 userscript 加入市场,不把 helper 打包进市场。helper 说明和源码放在 homepage 仓库里,脚本设置面板内也提供 helper 链接。

市场信息

已验证

  • node --check scripts/codex-live-token-cost.js
  • index.json 中的 SHA-256 与脚本文件一致
  • PR diff 只包含 index.jsonscripts/codex-live-token-cost.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant