@chenlongapps/opencode-token-usage 0.4.15 → 0.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -6
- package/README.zh-CN.md +38 -6
- package/ROADMAP.md +1 -1
- package/dist/prices.generated.d.ts +4 -76
- package/dist/prices.generated.js +2 -11
- package/dist/pricing.d.ts +1 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<h1 align="center">opencode-token-usage</h1>
|
|
2
2
|
|
|
3
|
-
<p align="center">
|
|
3
|
+
<p align="center">Token usage, context window, estimated cost and live performance for OpenCode 2.</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<a href="https://www.npmjs.com/package/@chenlongapps/opencode-token-usage" target="_blank" rel="noopener noreferrer"><img alt="npm" src="https://img.shields.io/npm/v/%40chenlongapps%2Fopencode-token-usage?style=flat-square&logo=npm" /></a>
|
|
@@ -15,30 +15,61 @@
|
|
|
15
15
|
<a href="https://github.com/chenlongapps/opencode-token-usage/blob/main/README.zh-CN.md">简体中文</a>
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
|
+
### Overview
|
|
19
|
+
|
|
20
|
+
**opencode-token-usage** is a community plugin that brings token usage, context window occupancy, estimated cost and performance metrics into OpenCode 2's terminal interface.
|
|
21
|
+
|
|
22
|
+
Use it to see how many tokens a session and its subagents consume, how full the current context window is, and how estimated costs are distributed across models—without leaving your conversation.
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
- **Session-tree totals:** Track input, output, reasoning and cache tokens across the session tree, including unopened subagents, without double-counting inherited fork history.
|
|
27
|
+
- **Context visibility:** See the viewed session's context usage, latest reported request and estimated prompt composition.
|
|
28
|
+
- **Estimated cost by model:** Price recorded calls using their actual models, with a built-in first-party price snapshot as a fallback. Estimates are not provider bills.
|
|
29
|
+
- **Performance at a glance:** Monitor tokens per second (TPS), time to first token (TTFT) and the viewed session's own elapsed response time. Live TPS and elapsed-time estimates are marked with `~`.
|
|
30
|
+
- **Native terminal UI:** Keep a sidebar panel in the main session and a single-line summary in subagent views; open details only when needed.
|
|
31
|
+
- **On-demand details:** Use `/usage` for compact or detailed statistics, including per-model usage and rates, without sending a prompt to the model.
|
|
32
|
+
|
|
18
33
|
[](https://www.npmjs.com/package/@chenlongapps/opencode-token-usage)
|
|
19
34
|
|
|
20
35
|
---
|
|
21
36
|
|
|
22
37
|
### Installation
|
|
23
38
|
|
|
39
|
+
Requires **OpenCode 2** and **Node.js 22+**. See [Compatibility](#compatibility) for verified host versions and the OpenTUI engine caveat.
|
|
40
|
+
|
|
24
41
|
```bash
|
|
25
42
|
opencode plugin add @chenlongapps/opencode-token-usage
|
|
26
43
|
```
|
|
27
44
|
|
|
28
|
-
|
|
45
|
+
Restart OpenCode after installation.
|
|
46
|
+
|
|
47
|
+
### Quick start
|
|
48
|
+
|
|
49
|
+
1. **View usage:** Open a session. The **Token Usage** panel appears in the native sidebar when `session.sidebar` is set to `auto` and the terminal is wide enough.
|
|
50
|
+
2. **Explore details:** Enter `/usage` or left-click the panel's **Token Usage** title. Press `d` to toggle compact/detailed mode and Escape to close. Opening details does not send a prompt to the model.
|
|
51
|
+
3. **Inspect subagents:** In subagent views, click the live summary above the composer to open the full panel. Closing it does not interrupt the subagent.
|
|
52
|
+
|
|
53
|
+
For exact definitions and edge cases, see [Detailed usage](#detailed-usage), [Metrics](#metrics) and [price sources and limitations](docs/pricing.md).
|
|
54
|
+
|
|
55
|
+
Questions about setup, costs, subagents, reasoning speed or privacy? See the [FAQ](docs/faq.md).
|
|
56
|
+
|
|
57
|
+
### Other installation options
|
|
58
|
+
|
|
59
|
+
Instead of the command above, add the package to your project's `opencode.json` or `opencode.jsonc`:
|
|
29
60
|
|
|
30
61
|
```json
|
|
31
62
|
{
|
|
63
|
+
"$schema": "https://opencode.ai/config.json",
|
|
32
64
|
"plugins": ["@chenlongapps/opencode-token-usage"]
|
|
33
65
|
}
|
|
34
66
|
```
|
|
35
67
|
|
|
36
|
-
|
|
37
|
-
> Requires Node.js 22+ (see the OpenTUI engine note under [Development](#development)). OpenCode 2.0.9 and 2.0.10 have been verified in earlier releases. SDK 2.0.24 integration checks have passed on OpenCode 2.0.11, 2.0.22, 2.0.24, 2.0.26, and 2.0.28. Native turn durations and sidebar title clicks were integration-tested on 2.0.26 and 2.0.28; the other listed host checks predate these additions.
|
|
68
|
+
For remote sessions, add the package name to `plugins` in your local `~/.config/opencode/cli.json` to load only the terminal entry point. The configuration path follows `XDG_CONFIG_HOME`.
|
|
38
69
|
|
|
39
|
-
|
|
70
|
+
### Compatibility
|
|
40
71
|
|
|
41
|
-
|
|
72
|
+
Requires Node.js 22+ (see the OpenTUI engine note under [Development](#development)). OpenCode 2.0.9 and 2.0.10 have been verified in earlier releases. SDK 2.0.24 integration checks have passed on OpenCode 2.0.11, 2.0.22, 2.0.24, 2.0.26, and 2.0.28. Native turn durations and sidebar title clicks were integration-tested on 2.0.26 and 2.0.28; the other listed host checks predate these additions. See the [verification record](docs/verification.md) for tested combinations.
|
|
42
73
|
|
|
43
74
|
### Detailed usage
|
|
44
75
|
|
|
@@ -136,6 +167,7 @@ To load the plugin from source, build the project and add the repository's absol
|
|
|
136
167
|
|
|
137
168
|
### Documentation
|
|
138
169
|
|
|
170
|
+
- [FAQ](docs/faq.md) · [简体中文](docs/faq.zh-CN.md)
|
|
139
171
|
- [Roadmap](ROADMAP.md)
|
|
140
172
|
- [Verification record](docs/verification.md)
|
|
141
173
|
- [Release guide](docs/releasing.md)
|
package/README.zh-CN.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<h1 align="center">opencode-token-usage</h1>
|
|
2
2
|
|
|
3
|
-
<p align="center"
|
|
3
|
+
<p align="center">在 OpenCode 2 中查看 token 用量、上下文窗口、估算费用与实时性能。</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<a href="https://www.npmjs.com/package/@chenlongapps/opencode-token-usage" target="_blank" rel="noopener noreferrer"><img alt="npm" src="https://img.shields.io/npm/v/%40chenlongapps%2Fopencode-token-usage?style=flat-square&logo=npm" /></a>
|
|
@@ -15,30 +15,61 @@
|
|
|
15
15
|
<strong>简体中文</strong>
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
|
+
### 项目简介
|
|
19
|
+
|
|
20
|
+
**opencode-token-usage** 是一个面向 OpenCode 2 的社区插件,在终端界面中展示 token 用量、上下文窗口占用、估算费用和性能指标。
|
|
21
|
+
|
|
22
|
+
无需离开当前对话,就能了解:当前会话及其子代理消耗了多少 token、上下文窗口还剩多少空间,以及各模型的估算费用分布。
|
|
23
|
+
|
|
24
|
+
### 主要特点
|
|
25
|
+
|
|
26
|
+
- **会话树用量汇总:** 统计整棵会话树的输入、输出、推理和缓存 token,包含未打开的子代理,避免重复计算分叉继承历史。
|
|
27
|
+
- **上下文可见:** 查看当前会话的上下文占用、最近一次已上报请求及提示词构成估算。
|
|
28
|
+
- **按模型估算费用:** 按每次调用实际使用的模型计价,以内置原厂价格快照作为回退。估算费用不等于提供商账单。
|
|
29
|
+
- **性能一目了然:** 查看每秒 token 数(TPS)、首 token 时间(TTFT)及当前会话自身的对话耗时。实时 TPS 与已耗时估算以 `~` 标记。
|
|
30
|
+
- **原生终端界面:** 主会话使用侧边栏,子代理视图保留单行摘要,按需打开完整面板。
|
|
31
|
+
- **按需查看详情:** 通过 `/usage` 切换紧凑/详细统计,查看各模型的用量与费率,不向模型发送提示词。
|
|
32
|
+
|
|
18
33
|
[](https://www.npmjs.com/package/@chenlongapps/opencode-token-usage)
|
|
19
34
|
|
|
20
35
|
---
|
|
21
36
|
|
|
22
37
|
### 安装
|
|
23
38
|
|
|
39
|
+
需要 **OpenCode 2** 和 **Node.js 22+**。已验证宿主版本及 OpenTUI 引擎限制见[兼容性](#兼容性)。
|
|
40
|
+
|
|
24
41
|
```bash
|
|
25
42
|
opencode plugin add @chenlongapps/opencode-token-usage
|
|
26
43
|
```
|
|
27
44
|
|
|
28
|
-
|
|
45
|
+
安装后重启 OpenCode。
|
|
46
|
+
|
|
47
|
+
### 快速上手
|
|
48
|
+
|
|
49
|
+
1. **查看用量:** 打开会话。终端足够宽且 `session.sidebar` 设为 `auto` 时,原生侧边栏会显示 **Token Usage** 面板。
|
|
50
|
+
2. **展开详情:** 输入 `/usage`,或左键点击面板的 **Token Usage** 标题。按 `d` 切换紧凑/详细模式,按 Escape 关闭;打开详情不会向模型发送提示词。
|
|
51
|
+
3. **查看子代理:** 在子代理视图中,点击输入区上方的实时摘要可打开完整面板,关闭面板不会中断子代理。
|
|
52
|
+
|
|
53
|
+
精确统计口径及边界情况见[详细用量](#详细用量)、[指标](#指标)和[价格来源与限制](docs/pricing.md)。
|
|
54
|
+
|
|
55
|
+
关于安装、费用、子代理、推理速度及隐私的常见问题,见 [FAQ](docs/faq.zh-CN.md)。
|
|
56
|
+
|
|
57
|
+
### 其他安装方式
|
|
58
|
+
|
|
59
|
+
除了上述命令,也可以在项目的 `opencode.json` 或 `opencode.jsonc` 中配置:
|
|
29
60
|
|
|
30
61
|
```json
|
|
31
62
|
{
|
|
63
|
+
"$schema": "https://opencode.ai/config.json",
|
|
32
64
|
"plugins": ["@chenlongapps/opencode-token-usage"]
|
|
33
65
|
}
|
|
34
66
|
```
|
|
35
67
|
|
|
36
|
-
|
|
37
|
-
> 需要 Node.js 22+(见[开发](#开发)中的 OpenTUI 引擎说明)。此前发布已验证 OpenCode 2.0.9 和 2.0.10;SDK 2.0.24 集成检查已在 OpenCode 2.0.11、2.0.22、2.0.24、2.0.26 和 2.0.28 上通过。原生对话耗时与侧边栏标题点击的集成验证使用 2.0.26 和 2.0.28,其余列出的宿主检查早于这些功能加入。
|
|
68
|
+
连接远程服务器时,可将包名加入本机 `~/.config/opencode/cli.json` 的 `plugins`,仅加载终端入口;配置路径遵循 `XDG_CONFIG_HOME`。
|
|
38
69
|
|
|
39
|
-
|
|
70
|
+
### 兼容性
|
|
40
71
|
|
|
41
|
-
|
|
72
|
+
需要 Node.js 22+(见[开发](#开发)中的 OpenTUI 引擎说明)。此前发布已验证 OpenCode 2.0.9 和 2.0.10;SDK 2.0.24 集成检查已在 OpenCode 2.0.11、2.0.22、2.0.24、2.0.26 和 2.0.28 上通过。原生对话耗时与侧边栏标题点击的集成验证使用 2.0.26 和 2.0.28,其余列出的宿主检查早于这些功能加入。已测试组合见[验证记录](docs/verification.md)。
|
|
42
73
|
|
|
43
74
|
### 详细用量
|
|
44
75
|
|
|
@@ -136,6 +167,7 @@ OPENCODE_BIN=/absolute/path/to/opencode-2.0.11 npm run test:smoke
|
|
|
136
167
|
|
|
137
168
|
### 文档
|
|
138
169
|
|
|
170
|
+
- [常见问题 FAQ](docs/faq.zh-CN.md)
|
|
139
171
|
- [路线图](ROADMAP.md)
|
|
140
172
|
- [验证记录](docs/verification.md)
|
|
141
173
|
- [发布说明](docs/releasing.md)
|
package/ROADMAP.md
CHANGED
|
@@ -116,7 +116,7 @@ Steps 1,234
|
|
|
116
116
|
* [x] 时间缺失显示不可用,读取失败保留旧值并标注未更新;分叉副本不继承耗时,已提交回退随删除历史扣除
|
|
117
117
|
* [x] 移除动画后通过类型检查、205 项测试、构建及真实 OpenCode 2.0.26 完整打包集成复验
|
|
118
118
|
* [x] 首轮尚无 idle 消息时依据原生会话时间保持起点,synthetic/steer 不误重置;重连校时期间保留同一开放轮次的可信显示,247 项测试及真实 OpenCode 2.0.28 完整打包验证通过
|
|
119
|
-
* [
|
|
119
|
+
* [x] macOS 物理多屏切换导致耗时倒退的实机复验(终端焦点事件、视图重建与模拟重连已覆盖,不代表已验证物理切屏、App Nap 或睡眠/唤醒)
|
|
120
120
|
|
|
121
121
|
## 后续评估
|
|
122
122
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const GENERATED_PRICE_SNAPSHOT: {
|
|
2
|
-
readonly verified: "2026-10-
|
|
2
|
+
readonly verified: "2026-10-23";
|
|
3
3
|
readonly source: "https://models.dev/api.json";
|
|
4
4
|
readonly entries: readonly [{
|
|
5
5
|
readonly providerID: "ai21";
|
|
@@ -1647,10 +1647,10 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
|
|
|
1647
1647
|
readonly providerID: "mistral";
|
|
1648
1648
|
readonly id: "mistral-large-4";
|
|
1649
1649
|
readonly prices: readonly [{
|
|
1650
|
-
readonly input:
|
|
1651
|
-
readonly output:
|
|
1650
|
+
readonly input: 1.36;
|
|
1651
|
+
readonly output: 4.18;
|
|
1652
1652
|
readonly cache: {
|
|
1653
|
-
readonly read: 0.
|
|
1653
|
+
readonly read: 0.14;
|
|
1654
1654
|
};
|
|
1655
1655
|
}];
|
|
1656
1656
|
readonly released: "2026-10-06";
|
|
@@ -1834,22 +1834,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
|
|
|
1834
1834
|
readonly output: 0;
|
|
1835
1835
|
}];
|
|
1836
1836
|
readonly released: "2025-04-15";
|
|
1837
|
-
}, {
|
|
1838
|
-
readonly providerID: "nvidia";
|
|
1839
|
-
readonly id: "nvidia/llama-3.1-nemotron-nano-8b-v1";
|
|
1840
|
-
readonly prices: readonly [{
|
|
1841
|
-
readonly input: 0;
|
|
1842
|
-
readonly output: 0;
|
|
1843
|
-
}];
|
|
1844
|
-
readonly released: "2025-03-18";
|
|
1845
|
-
}, {
|
|
1846
|
-
readonly providerID: "nvidia";
|
|
1847
|
-
readonly id: "nvidia/llama-3.1-nemotron-nano-vl-8b-v1";
|
|
1848
|
-
readonly prices: readonly [{
|
|
1849
|
-
readonly input: 0;
|
|
1850
|
-
readonly output: 0;
|
|
1851
|
-
}];
|
|
1852
|
-
readonly released: "2025-04-10";
|
|
1853
1837
|
}, {
|
|
1854
1838
|
readonly providerID: "nvidia";
|
|
1855
1839
|
readonly id: "nvidia/llama-3.1-nemotron-safety-guard-8b-v3";
|
|
@@ -1866,38 +1850,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
|
|
|
1866
1850
|
readonly output: 0;
|
|
1867
1851
|
}];
|
|
1868
1852
|
readonly released: "2025-04-07";
|
|
1869
|
-
}, {
|
|
1870
|
-
readonly providerID: "nvidia";
|
|
1871
|
-
readonly id: "nvidia/llama-3.3-nemotron-super-49b-v1";
|
|
1872
|
-
readonly prices: readonly [{
|
|
1873
|
-
readonly input: 0;
|
|
1874
|
-
readonly output: 0;
|
|
1875
|
-
}];
|
|
1876
|
-
readonly released: "2025-03-18";
|
|
1877
|
-
}, {
|
|
1878
|
-
readonly providerID: "nvidia";
|
|
1879
|
-
readonly id: "nvidia/llama-3.3-nemotron-super-49b-v1.5";
|
|
1880
|
-
readonly prices: readonly [{
|
|
1881
|
-
readonly input: 0;
|
|
1882
|
-
readonly output: 0;
|
|
1883
|
-
}];
|
|
1884
|
-
readonly released: "2025-07-25";
|
|
1885
|
-
}, {
|
|
1886
|
-
readonly providerID: "nvidia";
|
|
1887
|
-
readonly id: "nvidia/nemotron-3-content-safety";
|
|
1888
|
-
readonly prices: readonly [{
|
|
1889
|
-
readonly input: 0;
|
|
1890
|
-
readonly output: 0;
|
|
1891
|
-
}];
|
|
1892
|
-
readonly released: "2026-03-16";
|
|
1893
|
-
}, {
|
|
1894
|
-
readonly providerID: "nvidia";
|
|
1895
|
-
readonly id: "nvidia/nemotron-3-nano-30b-a3b";
|
|
1896
|
-
readonly prices: readonly [{
|
|
1897
|
-
readonly input: 0;
|
|
1898
|
-
readonly output: 0;
|
|
1899
|
-
}];
|
|
1900
|
-
readonly released: "2025-12-15";
|
|
1901
1853
|
}, {
|
|
1902
1854
|
readonly providerID: "nvidia";
|
|
1903
1855
|
readonly id: "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning";
|
|
@@ -1938,30 +1890,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
|
|
|
1938
1890
|
readonly output: 0;
|
|
1939
1891
|
}];
|
|
1940
1892
|
readonly released: "2026-10-15";
|
|
1941
|
-
}, {
|
|
1942
|
-
readonly providerID: "nvidia";
|
|
1943
|
-
readonly id: "nvidia/nemotron-content-safety-reasoning-4b";
|
|
1944
|
-
readonly prices: readonly [{
|
|
1945
|
-
readonly input: 0;
|
|
1946
|
-
readonly output: 0;
|
|
1947
|
-
}];
|
|
1948
|
-
readonly released: "2026-01-22";
|
|
1949
|
-
}, {
|
|
1950
|
-
readonly providerID: "nvidia";
|
|
1951
|
-
readonly id: "nvidia/nemotron-mini-4b-instruct";
|
|
1952
|
-
readonly prices: readonly [{
|
|
1953
|
-
readonly input: 0;
|
|
1954
|
-
readonly output: 0;
|
|
1955
|
-
}];
|
|
1956
|
-
readonly released: "2024-08-21";
|
|
1957
|
-
}, {
|
|
1958
|
-
readonly providerID: "nvidia";
|
|
1959
|
-
readonly id: "nvidia/nemotron-nano-12b-v2-vl";
|
|
1960
|
-
readonly prices: readonly [{
|
|
1961
|
-
readonly input: 0;
|
|
1962
|
-
readonly output: 0;
|
|
1963
|
-
}];
|
|
1964
|
-
readonly released: "2025-10-28";
|
|
1965
1893
|
}, {
|
|
1966
1894
|
readonly providerID: "nvidia";
|
|
1967
1895
|
readonly id: "nvidia/nemotron-voicechat";
|
package/dist/prices.generated.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const GENERATED_PRICE_SNAPSHOT = {
|
|
2
|
-
verified: "2026-10-
|
|
2
|
+
verified: "2026-10-23",
|
|
3
3
|
source: "https://models.dev/api.json",
|
|
4
4
|
entries: [
|
|
5
5
|
{ "providerID": "ai21", "id": "jamba-large", "prices": [{ "input": 2, "output": 8 }], "released": "2025-07-03" },
|
|
@@ -147,7 +147,7 @@ export const GENERATED_PRICE_SNAPSHOT = {
|
|
|
147
147
|
{ "providerID": "mistral", "id": "ministral-8b-latest", "prices": [{ "input": 0.15, "output": 0.15, "cache": { "read": 0.015 } }], "released": "2024-10-01" },
|
|
148
148
|
{ "providerID": "mistral", "id": "mistral-large-2411", "prices": [{ "input": 2, "output": 6 }], "released": "2024-11-18" },
|
|
149
149
|
{ "providerID": "mistral", "id": "mistral-large-2512", "prices": [{ "input": 0.5, "output": 1.5, "cache": { "read": 0.05 } }], "released": "2024-11-01" },
|
|
150
|
-
{ "providerID": "mistral", "id": "mistral-large-4", "prices": [{ "input":
|
|
150
|
+
{ "providerID": "mistral", "id": "mistral-large-4", "prices": [{ "input": 1.36, "output": 4.18, "cache": { "read": 0.14 } }], "released": "2026-10-06" },
|
|
151
151
|
{ "providerID": "mistral", "id": "mistral-large-latest", "prices": [{ "input": 0.5, "output": 1.5, "cache": { "read": 0.05 } }], "released": "2024-11-01" },
|
|
152
152
|
{ "providerID": "mistral", "id": "mistral-medium-2505", "prices": [{ "input": 0.4, "output": 2 }], "released": "2025-05-07" },
|
|
153
153
|
{ "providerID": "mistral", "id": "mistral-medium-2508", "prices": [{ "input": 0.4, "output": 2 }], "released": "2025-08-12" },
|
|
@@ -167,22 +167,13 @@ export const GENERATED_PRICE_SNAPSHOT = {
|
|
|
167
167
|
{ "providerID": "moonshotai", "id": "kimi-k2.7-code-highspeed", "prices": [{ "input": 1.9, "output": 8, "cache": { "read": 0.38 } }], "released": "2026-06-12" },
|
|
168
168
|
{ "providerID": "moonshotai", "id": "kimi-k3", "prices": [{ "input": 3, "output": 15, "cache": { "read": 0.3, "write": 3 } }], "released": "2026-07-16" },
|
|
169
169
|
{ "providerID": "nvidia", "id": "nvidia/llama-3.1-nemotron-70b-instruct", "prices": [{ "input": 0, "output": 0 }], "released": "2025-04-15" },
|
|
170
|
-
{ "providerID": "nvidia", "id": "nvidia/llama-3.1-nemotron-nano-8b-v1", "prices": [{ "input": 0, "output": 0 }], "released": "2025-03-18" },
|
|
171
|
-
{ "providerID": "nvidia", "id": "nvidia/llama-3.1-nemotron-nano-vl-8b-v1", "prices": [{ "input": 0, "output": 0 }], "released": "2025-04-10" },
|
|
172
170
|
{ "providerID": "nvidia", "id": "nvidia/llama-3.1-nemotron-safety-guard-8b-v3", "prices": [{ "input": 0, "output": 0 }], "released": "2025-10-28" },
|
|
173
171
|
{ "providerID": "nvidia", "id": "nvidia/llama-3.1-nemotron-ultra-253b-v1", "prices": [{ "input": 0, "output": 0 }], "released": "2025-04-07" },
|
|
174
|
-
{ "providerID": "nvidia", "id": "nvidia/llama-3.3-nemotron-super-49b-v1", "prices": [{ "input": 0, "output": 0 }], "released": "2025-03-18" },
|
|
175
|
-
{ "providerID": "nvidia", "id": "nvidia/llama-3.3-nemotron-super-49b-v1.5", "prices": [{ "input": 0, "output": 0 }], "released": "2025-07-25" },
|
|
176
|
-
{ "providerID": "nvidia", "id": "nvidia/nemotron-3-content-safety", "prices": [{ "input": 0, "output": 0 }], "released": "2026-03-16" },
|
|
177
|
-
{ "providerID": "nvidia", "id": "nvidia/nemotron-3-nano-30b-a3b", "prices": [{ "input": 0, "output": 0 }], "released": "2025-12-15" },
|
|
178
172
|
{ "providerID": "nvidia", "id": "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning", "prices": [{ "input": 0, "output": 0 }], "released": "2026-04-28" },
|
|
179
173
|
{ "providerID": "nvidia", "id": "nvidia/nemotron-3-ultra-550b-a55b", "prices": [{ "input": 0, "output": 0 }], "released": "2026-06-04" },
|
|
180
174
|
{ "providerID": "nvidia", "id": "nvidia/nemotron-3.5-content-safety", "prices": [{ "input": 0, "output": 0 }], "released": "2026-06-02" },
|
|
181
175
|
{ "providerID": "nvidia", "id": "nvidia/nemotron-3.5-lightning-30b-a3b", "prices": [{ "input": 0, "output": 0 }], "released": "2026-08-11" },
|
|
182
176
|
{ "providerID": "nvidia", "id": "nvidia/nemotron-3.5-super-vl-120b-a12b", "prices": [{ "input": 0, "output": 0 }], "released": "2026-10-15" },
|
|
183
|
-
{ "providerID": "nvidia", "id": "nvidia/nemotron-content-safety-reasoning-4b", "prices": [{ "input": 0, "output": 0 }], "released": "2026-01-22" },
|
|
184
|
-
{ "providerID": "nvidia", "id": "nvidia/nemotron-mini-4b-instruct", "prices": [{ "input": 0, "output": 0 }], "released": "2024-08-21" },
|
|
185
|
-
{ "providerID": "nvidia", "id": "nvidia/nemotron-nano-12b-v2-vl", "prices": [{ "input": 0, "output": 0 }], "released": "2025-10-28" },
|
|
186
177
|
{ "providerID": "nvidia", "id": "nvidia/nemotron-voicechat", "prices": [{ "input": 0, "output": 0 }], "released": "2026-03-16" },
|
|
187
178
|
{ "providerID": "openai", "id": "gpt-3.5-turbo", "prices": [{ "input": 0.5, "output": 1.5, "cache": { "read": 0 } }], "released": "2023-03-01" },
|
|
188
179
|
{ "providerID": "openai", "id": "gpt-4", "prices": [{ "input": 30, "output": 60 }], "released": "2023-11-06" },
|
package/dist/pricing.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface OfficialPriceEntry {
|
|
|
14
14
|
/** Checked-in data: updating prices is explicit, not a network request at
|
|
15
15
|
* startup, during a refresh, or during an npm build. */
|
|
16
16
|
export declare const OFFICIAL_PRICE_SNAPSHOT: {
|
|
17
|
-
verified: "2026-10-
|
|
17
|
+
verified: "2026-10-23";
|
|
18
18
|
source: "https://models.dev/api.json";
|
|
19
19
|
entries: OfficialPriceEntry[];
|
|
20
20
|
};
|
package/package.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chenlongapps/opencode-token-usage",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.4.16",
|
|
4
|
+
"description": "OpenCode 2 plugin for session-tree token usage, context window monitoring, estimated costs, and performance metrics (TPS, TTFT, run time).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"opencode",
|
|
7
7
|
"opencode-plugin",
|
|
8
8
|
"token-usage",
|
|
9
9
|
"context-window",
|
|
10
|
+
"cost-tracking",
|
|
10
11
|
"tps",
|
|
11
12
|
"ttft",
|
|
12
|
-
"
|
|
13
|
+
"subagents",
|
|
14
|
+
"terminal-ui",
|
|
15
|
+
"llm"
|
|
13
16
|
],
|
|
14
17
|
"homepage": "https://github.com/chenlongapps/opencode-token-usage#readme",
|
|
15
18
|
"bugs": {
|