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.

Versione datata 12/08/2026. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

Autore
Shirolin
Valutazione
0 0 0
Versione
1.0.4
Creato il
12/08/2026
Aggiornato il
12/08/2026
Dimensione
107 KB
Licenza
GPL-3.0-or-later
Applica a

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