OpenCode Go Usage Export

OpenCode Go usage dashboard & export — in-page stats panel (totals, cost, Go quota 5h/7d/30d, breakdowns by model / API key / plan), network-layer capture, 30-day detail + permanent aggregates in IndexedDB, incremental sync, CSV + Excel export. ⚠ Install only from the official GitHub repository (github.com/Shirolin/opencode-go-usage-export); modified copies from unknown sources may steal your API keys.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Tác giả
Shirolin
Cài đặt hàng ngày
0
Số lần cài đặt
2
Đánh giá
0 0 0
Phiên bản
1.0.4
Đã tạo
12-08-2026
Đã cập nhật
12-08-2026
Kích thước
100 KB
Giấy phép
GPL-3.0-or-later
Áp dụng cho

OpenCode Go 用量仪表盘与导出OpenCode 控制台 页面内统计面板 + CSV/Excel 导出)。

页面内统计面板(无需下载):

  • 总量、近 30 天成本、Go 限额对比(5h/$12 · 7d/$30 · 30d/$60)
  • 按模型 / API key / plan 的条形图分解
  • 大窗口模式,便于浏览统计

数据管线

  • 网络层抓取原始服务端 JSON(精确时间戳、keyID、plan),比 DOM 抓取快数十倍
  • IndexedDB 分层存储:30 天明细 + 按 日期 × 模型 × plan × key 永久聚合
  • 全量 / 增量同步(时间戳早停)、断点续传、可中断抓取、自动同步

导出:CSV / Excel,支持日期区间筛选。

GPL-3.0 开源 —— 请仅从官方仓库安装:

  • 官方仓库:https://github.com/Shirolin/opencode-go-usage-export
  • 直接安装:https://raw.githubusercontent.com/Shirolin/opencode-go-usage-export/main/opencode-go-usage-export.user.js
  • 支持 / 问题反馈:https://github.com/Shirolin/opencode-go-usage-export/issues