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.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
Shirolin
Dziennych instalacji
0
Wszystkich instalacji
2
Oceny
0 0 0
Wersja
1.0.4
Utworzono
12-08-2026
Zaktualizowano
12-08-2026
Rozmiar
107 KB
Licencja
GPL-3.0-or-later
Dotyczy

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