dsh-cost-meter 1.9.42 → 1.9.45
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/LICENSE +21 -21
- package/README.md +8 -8
- package/README.zh-CN.md +8 -8
- package/docs/billion-context-peer-discovery.md +20 -0
- package/docs/catalog-2026-10-28.md +60 -0
- package/docs/display-settings.md +7 -1
- package/docs/opendesign-billing.md +34 -24
- package/docs/plugin-compatibility-watch.md +32 -0
- package/docs/provider-pricing-2026-10.md +10 -6
- package/docs/provider-pricing.json +304 -13
- package/docs/subscription-catalog.json +82 -0
- package/docs/update-notes-1.9.43.md +21 -0
- package/docs/update-notes-1.9.44.md +21 -0
- package/docs/update-notes-1.9.45.md +25 -0
- package/lib/billion-context-billing.js +9 -8
- package/lib/billion-context-peer.js +164 -0
- package/lib/client.display.js +2 -2
- package/lib/client.js +6 -6
- package/lib/client.notices.js +1 -1
- package/lib/client.peak.js +3 -3
- package/lib/client.plan-settings.js +1 -1
- package/lib/client.statistics.js +9 -9
- package/lib/coding-plans.js +44 -32
- package/lib/ledger-writer-worker.js +1 -1
- package/lib/opendesign.js +37 -10
- package/lib/plan-billing.js +5 -3
- package/lib/plan-provider-match.js +2 -2
- package/lib/pricing.js +11 -2
- package/lib/provider-prices-2026-10-28.js +364 -0
- package/lib/provider-prices.js +6 -0
- package/lib/statistics-cache.js +29 -14
- package/lib/store.js +7 -0
- package/lib/subscription-catalog.js +34 -0
- package/lib/turn-cost.js +14 -8
- package/lib/typert.host.js +1 -0
- package/package.json +7 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 dsh-cost-meter contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-cost-meter contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Session cost tracking plugin for the DeepSeek Harness web GUI (bilingual UI)**
|
|
8
8
|
|
|
9
|
-
[](https://github.com/Han-1413141/dsh-cost-meter)
|
|
10
10
|
[](https://www.npmjs.com/package/dsh-cost-meter)
|
|
11
11
|
[](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
|
|
12
12
|
[](LICENSE)
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
**v1.9.
|
|
19
|
+
**v1.9.45** adds OpenDesign web-Cookie quota queries and optional click-to-hide balances, reduces retained cache memory, makes cost-view loading recoverable, fixes toolbar alignment, and improves Anthropic quota labels, reset times and warnings.
|
|
20
20
|
|
|
21
21
|
**Host floor: DSH 0.2.0** · Adaptation target: **0.2.1-rc.2** (npm `next`). Expand the compatibility notes below for exact declarations, host records and troubleshooting.
|
|
22
22
|
|
|
23
|
-
Release notes: [v1.9.
|
|
23
|
+
Release notes: [v1.9.45](docs/update-notes-1.9.45.md#english). Fully restart DSH after updating.
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -356,22 +356,22 @@ On Node.js 20, use `npm install -g pnpm@10` instead. See [pnpm installation and
|
|
|
356
356
|
dsh plugin --profile web add dsh-cost-meter
|
|
357
357
|
```
|
|
358
358
|
|
|
359
|
-
**PowerShell one-click script** (copy the whole line, paste, press Enter; pnpm is provisioned automatically, git is auto-detected — no clone needed; the install chain is **pinned to the release tag `v1.9.
|
|
359
|
+
**PowerShell one-click script** (copy the whole line, paste, press Enter; pnpm is provisioned automatically, git is auto-detected — no clone needed; the install chain is **pinned to the release tag `v1.9.45`** — review the script before running):
|
|
360
360
|
|
|
361
361
|
```powershell
|
|
362
|
-
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.
|
|
362
|
+
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.45/install.ps1 | iex
|
|
363
363
|
```
|
|
364
364
|
|
|
365
365
|
**Or a plain command line** (the machine must already have pnpm and git; also pinned to the tag):
|
|
366
366
|
|
|
367
367
|
```sh
|
|
368
|
-
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.
|
|
368
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.45
|
|
369
369
|
```
|
|
370
370
|
|
|
371
371
|
Without git, use the GitHub tag archive:
|
|
372
372
|
|
|
373
373
|
```sh
|
|
374
|
-
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.
|
|
374
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.45.tar.gz
|
|
375
375
|
```
|
|
376
376
|
|
|
377
377
|
After installing, **restart** `dsh web` (plugin rows, the Typert manifest and the client bundle are all scanned at startup):
|
|
@@ -436,7 +436,7 @@ Workarounds:
|
|
|
436
436
|
|
|
437
437
|
```yaml
|
|
438
438
|
minimumReleaseAgeExclude:
|
|
439
|
-
- dsh-cost-meter@1.9.
|
|
439
|
+
- dsh-cost-meter@1.9.45
|
|
440
440
|
```
|
|
441
441
|
|
|
442
442
|
3. For a one-off CLI operation, forward the pnpm flag: `dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0` (or add `--trust-lockfile` when only lockfile verification fails). Both flags were verified against pnpm 11.28.5 in a temporary profile.
|
package/README.zh-CN.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**DeepSeek Harness 会话费用统计插件(界面中英双语)**
|
|
8
8
|
|
|
9
|
-
[](https://github.com/Han-1413141/dsh-cost-meter)
|
|
10
10
|
[](https://www.npmjs.com/package/dsh-cost-meter)
|
|
11
11
|
[](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
|
|
12
12
|
[](LICENSE)
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
**v1.9.
|
|
19
|
+
**v1.9.45** 新增 OpenDesign 网页 Cookie 额度查询与可选的余额快速隐藏,降低缓存内存占用,费用明细加载超时可重试,修复按钮错位,并改进 Anthropic 额度标签、重置时间和告警。
|
|
20
20
|
|
|
21
21
|
**宿主要求:DSH 0.2.0 起支持** · 适配目标 **0.2.1-rc.2**(npm `next`)。完整声明、历史记录与安装排障见下方展开项。
|
|
22
22
|
|
|
23
|
-
更新说明:[v1.9.
|
|
23
|
+
更新说明:[v1.9.45](docs/update-notes-1.9.45.md#中文)。更新后完全重启 DSH。
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -356,22 +356,22 @@ Node.js 20 请改用 `npm install -g pnpm@10`。版本要求见 [pnpm 官方安
|
|
|
356
356
|
dsh plugin --profile web add dsh-cost-meter
|
|
357
357
|
```
|
|
358
358
|
|
|
359
|
-
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.
|
|
359
|
+
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.45`**,建议先下载审阅再运行):
|
|
360
360
|
|
|
361
361
|
```powershell
|
|
362
|
-
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.
|
|
362
|
+
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.45/install.ps1 | iex
|
|
363
363
|
```
|
|
364
364
|
|
|
365
365
|
**或直接命令行**(机器上需已有 pnpm 与 git;同样固定到 tag):
|
|
366
366
|
|
|
367
367
|
```sh
|
|
368
|
-
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.
|
|
368
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.45
|
|
369
369
|
```
|
|
370
370
|
|
|
371
371
|
没有 git 时可用 GitHub tag 打包直链:
|
|
372
372
|
|
|
373
373
|
```sh
|
|
374
|
-
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.
|
|
374
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.45.tar.gz
|
|
375
375
|
```
|
|
376
376
|
|
|
377
377
|
安装后**重启** `dsh web`(插件行、Typert 清单与客户端 bundle 均在启动时扫描):
|
|
@@ -436,7 +436,7 @@ DSH **0.2.1-rc.1 / 0.2.1-rc.2** 宿主自带 pnpm **11.28.5**,默认启用内
|
|
|
436
436
|
|
|
437
437
|
```yaml
|
|
438
438
|
minimumReleaseAgeExclude:
|
|
439
|
-
- dsh-cost-meter@1.9.
|
|
439
|
+
- dsh-cost-meter@1.9.45
|
|
440
440
|
```
|
|
441
441
|
|
|
442
442
|
3. 仅本次操作用 CLI 透传 pnpm 参数:`dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0`;若只是 lockfile 校验阶段失败,可改用 `--trust-lockfile`。这两个参数已在本机 pnpm 11.28.5 临时 Profile 上实测可用。
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# billion-context 目标识别与空闲回归(1.9.43)
|
|
2
|
+
|
|
3
|
+
## 原因与边界
|
|
4
|
+
|
|
5
|
+
[#432](https://github.com/Han-1413141/dsh-cost-meter/issues/432) 的报告者 [@ZiYuan258](https://github.com/ZiYuan258) 提供了 Windows 事件循环探针、I/O 测量和根因定位。旧代码每 3 秒触发计费维护,识别函数设 10 秒间隔,因此约每 12 秒调用一次宿主 `listBundles()`。已发布的 DSH PluginManager 在返回 Promise 前同步读取完整插件清单、包元数据与展示资料。
|
|
6
|
+
|
|
7
|
+
新实现不调用该 API,也不在失败时回退到全量扫描。不直接把 profile 中的包名视为“运行中”:真实 Loader 的祖先禁用状态和 ACTIVE 实例决定是否存在原生代理,单独运行的 compaction gate 不算代理。版本来自目标包身份校验;别名、pnpm 目录链接与 file URL 使用目标路径,文件入口先解析真实路径。新宿主的纯数据运行时解析表用于补充模块路径,避免读取全量展示元数据。
|
|
8
|
+
|
|
9
|
+
文件读取异步、单路执行,单个 manifest 限制为 256 KiB,路径与候选数都有上限。非普通文件、损坏或过大的 manifest 不会被视为有效包。成功结果按已加载模块 callback 缓存;只换 fiber 而复用 Node 缓存模块时仍保留原版本。读取失败可重试,卸载或销毁期间完成的旧请求不会重新激活状态。符号链接 profile 的实际路径也参与解析;外部 linked parent 的复杂 peer-dependency 拦截若无法确定,则保留未知状态,不猜版本、不清除已收到的自动适配诊断,仍由实际请求回执决定计费覆盖。
|
|
10
|
+
|
|
11
|
+
这些信息用于兼容提示,不替代逐次请求回执。日志导入、失败重试、宿主补记与去重算法未改变;无 Loader 的嵌入场景保留已有自动适配与回执路径。
|
|
12
|
+
|
|
13
|
+
## 自动回归
|
|
14
|
+
|
|
15
|
+
- `test/billion-context-peer.mjs`:328 个无关包;冷识别仅打开 1 个目标 manifest;1,000 次缓存读取和 24 次实际计费定时器回调(模拟 72 秒)都产生 **0 次 `listBundles()` 调用、0 次空闲目标文件读取**。暂停异步文件读取期间心跳仍能运行,最大并发打开数为 1。
|
|
16
|
+
- 同一测试覆盖未安装、启用、有效禁用状态、加载失败、卸载、重载、版本变化、别名、文件链接、畸形/超大/FIFO 文件、发现请求合并与销毁,以及无代理时仍允许宿主计费补记。
|
|
17
|
+
- `test/billion-context-peer-host.mjs`:用真实 Cordis Loader 和发布版 PluginManager 在 DSH `0.2.0-rc.1` 与 `0.2.1-rc.3` 上验证生命周期。测试明确区分“同模块重新启用”和“实际新 callback 加载”,不能只改磁盘版本号就宣称升级完成。
|
|
18
|
+
- `test/billion-context-billing.mjs`、`test/billion-context-auto.mjs`:保留真实 billion-context 发布包矩阵;另有 null usage、回执、归档、恢复与增量目录扫描测试。
|
|
19
|
+
|
|
20
|
+
本地 Linux 的一次冷全量清单读取约 9 ms,1,000 次真实宿主缓存识别合计约 90 ms。数字随机器而变;关键可复验断言是空闲全量扫描和文件读取均为零。**这不是报告者 Windows 1.5–6 秒停顿已消失的实机验证。** Windows 需要升级、完全重启宿主,再运行原探针比较。
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# 2026-10-28 模型与套餐目录更新
|
|
2
|
+
|
|
3
|
+
本次新增或修正 32 条渠道价格记录。完整内置目录现有 20 个厂商 / 渠道键、358 条记录、223 个不同模型 ID;353 条已核价,5 条为 `unpriced`。DeepSeek 主表独立保存。机器可读文件为 [模型价格](provider-pricing.json)和[套餐目录](subscription-catalog.json)。
|
|
4
|
+
|
|
5
|
+
## 新模型与价格
|
|
6
|
+
|
|
7
|
+
以下为每百万 token 的美元价。缓存写入按默认 5 分钟 TTL;“—”表示该条目未提供独立写入价。
|
|
8
|
+
|
|
9
|
+
| 渠道 | 模型 ID | 输入 | 缓存读取 | 缓存写入 | 输出 |
|
|
10
|
+
|---|---|---:|---:|---:|---:|
|
|
11
|
+
| Kimi API | `kimi-k3.1-pro` | 2 | 0.2 | 2 | 10 |
|
|
12
|
+
| Kimi API | `kimi-k3.1-pro-highspeed` | 4 | 0.2 | 4 | 20 |
|
|
13
|
+
| MiniMax API | `MiniMax-M3.1-Flash` | 0.15 | 0.015 | — | 0.6 |
|
|
14
|
+
| 百炼国际站,新加坡 International | `qwen3.8-flash` | 0.15 | 0.016 | 0.2 | 0.47 |
|
|
15
|
+
| TokenHub,新加坡 | `hy4-preview` | 0.834 | 0.042 | — | 2.501 |
|
|
16
|
+
| OpenCode Go | `kimi-k3.1-pro` | 2 | 0.2 | 2 | 10 |
|
|
17
|
+
| OpenCode Go | `minimax-m3.1-flash` | 0.15 | 0.015 | — | 0.6 |
|
|
18
|
+
| OpenCode Go | `step-5-preview` | 1 | 0.1 | — | 2.7 |
|
|
19
|
+
| OpenCode Go | `gemini-4-argon` | 2 | 0.1 | — | 10 |
|
|
20
|
+
| OpenCode Zen | `muse-wonder-1.0` | 4 | 0.2 | — | 20 |
|
|
21
|
+
|
|
22
|
+
Kimi Pro / Highspeed 的人民币输入、读取、写入、输出分别为 13 / 1.3 / 13 / 68 和 26 / 1.3 / 26 / 136;MiniMax M3.1 Flash 为 1 / 0.1 / — / 4。它们按官方报价独立保存。Kimi 1 小时缓存写入费在条目说明中列出,当前默认价仍使用 5 分钟写入费。
|
|
23
|
+
|
|
24
|
+
Kimi Code 的 `k3.1-pro`、`k3.1-pro-highspeed`、`k3` 使用对应 API 价格展示 token 等值费用;`k3-256k`、`kimi-for-coding`(K2.8 Preview)及 `kimi-for-coding-highspeed` 保持未核价,额度仍由订阅查询显示。MiniMax 的 `MiniMax-M3.1-Flash-Preview` 兼容名称按官方现行 M3.1 Flash 价格记录。
|
|
25
|
+
|
|
26
|
+
OpenCode Zen 新增 `glm-5.3-flash-free`、`beam-free`、`flint-40b-free`、`nemotron-3.5-super-vl-free`;Go 新增 `beam-free`、`iceman-contributor-free`。免费价只属于列明的渠道。Gemini 4 Argon 的当前促销价截至 2026-11-30。
|
|
27
|
+
|
|
28
|
+
同时补齐 Zen / Go 的 Kimi K3 缓存写入价,并将 Zen GPT-6.1 Sol 缓存读取更新为 0.1,超过 272K 输入为 0.2。OpenRouter 增加 Kimi K3.1 Pro、MiniMax M3.1 Flash、Nemotron 3.5 Super VL(付费 / 免费)和 Muse Wonder 的启动快照,在线目录仍按原有机制刷新。
|
|
29
|
+
|
|
30
|
+
## 套餐与额度
|
|
31
|
+
|
|
32
|
+
| 产品 | 当前档位 | 本次适配 |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| Kimi | Go / Plus / Pro / Max / Ultra | Plus 起有 Kimi Code;Pro 起有高速版及 1M 上下文。新套餐显示 5 小时和月总额度;旧套餐保留周窗口 |
|
|
35
|
+
| MiniMax M Plan | Go / Explore / Build | 三档均含 M3.1 Flash,Explore / Build 另含 H3 视频;沿用现有额度接口 |
|
|
36
|
+
| MiniMax Token Plan | Plus / Max / Ultra | 保留原套餐与查询 |
|
|
37
|
+
| OpenCode | Go / Go Plus | 补入新模型;月费为 $10 / $40,各模型额度不同 |
|
|
38
|
+
| 腾讯 Token Plan | 通用 / Hy,均有 Lite / Standard / Pro / Max | 补充 Hy 名称与 provider 别名,使用现有套餐归属统计 |
|
|
39
|
+
|
|
40
|
+
Kimi 解析器同时接受当前嵌套响应、camelCase / snake_case 用量字段和旧版计数。旧计数存在时优先使用计数,避免把同一响应中的零比例当成真实剩余额度;没有周字段的新套餐不会生成周窗口。`TIME_UNIT_MINUTE: 300` 正确归为 5 小时。
|
|
41
|
+
|
|
42
|
+
新增的 Kimi Coding Plan、MiniMax M Plan provider 按订阅分类,查询开关不改变计费分类;用户指定的 API 分类仍优先。现有 `kimi-code` 沿用订阅插件识别规则,通用 `kimi` / `minimax` provider 保留原有配置。
|
|
43
|
+
|
|
44
|
+
## 游标修复与升级
|
|
45
|
+
|
|
46
|
+
[#434](https://github.com/Han-1413141/dsh-cost-meter/issues/434) 由 [@shutongX](https://github.com/shutongX) 报告:紧凑、经典及收起侧栏的峰谷游标固定在各段中间。修复后,工作日游标在当前峰 / 谷半段内按时间移动,周末和节假日在整条轨道上移动;页面恢复可见时立即刷新。
|
|
47
|
+
|
|
48
|
+
目录迁移只添加新 ID、更新未被修改的旧默认价。手动价格、主动取消挂载和既有账本金额保留。价格目录用于费用匹配,推理模型配置仍由 DSH 管理。
|
|
49
|
+
|
|
50
|
+
## 官方来源
|
|
51
|
+
|
|
52
|
+
- [Kimi API 定价](https://platform.kimi.ai/docs/pricing/chat)、[国内报价](https://www.kimi.com/resources/kimi-k3-1-pro-pricing)、[国际报价](https://www.kimi.ai/zh-hans/resources/kimi-k3-1-pro-pricing)
|
|
53
|
+
- [Kimi Code 模型](https://www.kimi.com/code/docs/kimi-code/models.html)、[会员权益](https://www.kimi.com/code/docs/kimi-code/membership.html)
|
|
54
|
+
- [MiniMax API 定价](https://platform.minimax.io/docs/pricing/overview)、[国内定价](https://platform.minimax.cn/docs/pricing/overview)、[M Plan](https://platform.minimax.io/docs/m-plan/intro)
|
|
55
|
+
- [Qwen3.8 Flash](https://www.alibabacloud.com/help/en/model-studio/qwen3-8-flash)、[TokenHub 模型价格](https://intl.cloud.tencent.com/document/product/1300/78937)、[腾讯套餐](https://cloud.tencent.com/document/product/1823/130060)
|
|
56
|
+
- [OpenCode 按量价格](https://opencode.ai/v2/docs/console/models/)、[Go 价格与额度](https://opencode.ai/v2/docs/console/go/)、[OpenRouter 模型接口](https://openrouter.ai/api/v1/models)
|
|
57
|
+
|
|
58
|
+
## English
|
|
59
|
+
|
|
60
|
+
This update adds or corrects 32 provider-scoped records, including Kimi K3.1 Pro / Highspeed, MiniMax M3.1 Flash, direct Qwen3.8 Flash and Hy4 preview, current OpenCode Go / Zen additions and five OpenRouter snapshots. It also updates Kimi and MiniMax plan names, supports current and legacy Kimi quota payloads, and fixes stationary peak-period markers in all four legacy sidebar layouts. Migration preserves customized prices, deliberate unmounts and recorded charges. Public sources are linked above; the complete checked data is shipped in the two JSON catalogs.
|
package/docs/display-settings.md
CHANGED
|
@@ -42,7 +42,7 @@ Codex 额度的真实数据来自已启用并登录的 `dsh-codex-subscription`
|
|
|
42
42
|
|
|
43
43
|
选中峰谷时段后,右侧以三张紧凑的实际效果卡片展示进度条、细条和分段样式,复用侧栏呈现函数,包含当前时段文字、橙蓝轨道和倒计时。蓝色边框和“已选”标明当前选择,样式说明放在悬停提示中,点击后立即更新左侧预览。右侧收窄并减少内边距和重复说明;桌面设置保持左侧预览、右侧调整,与其他组件使用相同的窄屏换行条件。显示时间的完整选项放在右侧卡片下方。预览中超长的时段文字以省略号收起,保留可见轨道,悬停或键盘聚焦可读取完整说明。样式示例只渲染峰谷组件,不挂载余额、额度和模型卡片,也不会把示例开关写入配置。
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
1.9.43 起,五个显示介绍合并为一个可关闭的首次提示,统一指向「设置 → 费用 → 显示」。已有任一介绍的已读记录会抑制新提示;关闭不会修改显示、查询或计费偏好。峰谷三种布局及预览仍可随时在显示设置中选择,原细条和分段样式保留。预览只读取配置和本机时间,不查询余额、不发送模型请求、不改变计价或历史记录。界面按需加载,页面隐藏时停止刷新,关闭组件时清理定时器和监听器。
|
|
46
46
|
|
|
47
47
|
“费用 → 显示”提供“跟随皮肤透明度”,默认关闭。开启后,费用页共用设置窗口的背景,统计正文不再另铺实心底色;费用明细、引导、提醒与下拉浮层使用皮肤层色,保留至少 90% 不透明度。关闭后立即恢复不透明遮挡效果。该开关只修改插件自己的界面,保存后重启仍生效。
|
|
48
48
|
|
|
@@ -53,3 +53,9 @@ Codex 额度的真实数据来自已启用并登录的 `dsh-codex-subscription`
|
|
|
53
53
|
“合并卡片”将今日 Token 与费用、余额和峰谷进度放入同一外框。选择时默认开启今日双项显示,之后仍可分别关闭。Codex 组件提供额度查询总开关;显式开启其显示时会启用查询。billion-context 的统计偏差说明放在“费用 → 概览”,使用普通灰色文字,不再自动弹窗或提供弹窗开关。
|
|
54
54
|
|
|
55
55
|
“费用 → 显示 → 侧栏”中的“今日消费与余额同行”是独立开关,可与现有布局组合使用。开启时默认只显示今日费用,Token 可在今日组件中单独开启;两项保留悬停详情,余额进度条照常显示,隐藏官方余额时使用第一条可见的自定义余额。排序在设置预览中调整,关闭开关恢复各组件独立排列。
|
|
56
|
+
|
|
57
|
+
## 点击名称隐藏余额
|
|
58
|
+
|
|
59
|
+
1.9.45 起,在“设置 → 费用 → 显示 → 侧栏 → 调整组件 → 余额(或自定义余额)”中可以开启“点击名称快速隐藏余额”。默认关闭。开启后,点击余额名称隐藏或显示金额,点击金额继续刷新。隐藏时不显示进度条及悬停金额;四种侧栏布局、同行显示和收起样式共用隐藏状态。本机浏览器记住隐藏状态;关闭选项即恢复原有点击刷新方式。
|
|
60
|
+
|
|
61
|
+
In Settings → Cost → Display → Sidebar → Balance (or Custom balance), enable **Click name to hide balance**. This is off by default. Click the label to hide/show the amount; click the amount to refresh. Hidden balances also hide progress bars and tooltip amounts across sidebar layouts. The browser remembers hidden state. Disabling this option restores the original click-to-refresh behavior.
|
|
@@ -17,30 +17,35 @@ OpenDesign uses shared subscription allowances and can fall back to its wallet;
|
|
|
17
17
|
|
|
18
18
|
### Quota queries
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
The OpenDesign desktop app is not required. Version 1.9.45 accepts either a web **Cookie** or the existing **Control Key**. Inference API keys from the API Keys page cannot read account quota.
|
|
21
21
|
|
|
22
|
-
1.
|
|
23
|
-
2.
|
|
24
|
-
3.
|
|
25
|
-
4. Enable the card and refresh.
|
|
22
|
+
1. Sign in to the [OpenDesign Cloud dashboard](https://open-design.ai/cloud/dashboard).
|
|
23
|
+
2. Open browser DevTools (**F12 → Network**), reload the dashboard, and select a `coding-plan-usage` or `wallet/balance` request to `amr-api.open-design.ai`. Under **Request Headers**, copy the full **Cookie** value (or the complete `Cookie: ...` line). Do not copy response `Set-Cookie` or run a script in the console.
|
|
24
|
+
3. Open **DSH Settings → Cost → Quotas → OpenDesign**, edit **Cookie / Control Key**, paste and save. Leave workspace ID blank to read the website's current workspace, or copy the ID between `/workspaces/` and `/billing/` or `/wallet/` in that request URL.
|
|
25
|
+
4. Enable the card, select its display location and refresh. If the Cookie expires, sign in on the website and copy it again.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Existing Control Keys still use the same editor and require an explicit workspace ID. The editor stores either credential in the existing DSH credential slot `OPENDESIGN_CONTROL_KEY` (named accounts use their own slots). Host environment aliases are checked in order: `OPENDESIGN_CONTROL_KEY`, `VELA_CONTROL_KEY`, `OPENDESIGN_COOKIE`. Clearing a saved credential does not remove environment values. The original editor mapping was reported and located by @unifilitence in [#317](https://github.com/Han-1413141/dsh-cost-meter/issues/317).
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
Only these fixed official HTTPS GET endpoints are used:
|
|
30
30
|
|
|
31
31
|
```text
|
|
32
|
-
https://amr-api.open-design.ai/api/v1/workspaces/
|
|
33
|
-
https://amr-api.open-design.ai/api/v1/workspaces/{workspaceId}/
|
|
32
|
+
https://amr-api.open-design.ai/api/v1/workspaces/current # Cookie, only if workspace ID is blank
|
|
33
|
+
https://amr-api.open-design.ai/api/v1/workspaces/{workspaceId}/billing/coding-plan-usage # Cookie
|
|
34
|
+
https://amr-api.open-design.ai/api/v1/workspaces/{workspaceId}/billing/preflight # Control Key
|
|
35
|
+
https://amr-api.open-design.ai/api/v1/workspaces/{workspaceId}/wallet/balance # same credential as quota, independent read
|
|
34
36
|
```
|
|
35
37
|
|
|
38
|
+
The Cookie routes, `activeWorkspaceId` field and API origin were checked against the official Cloud dashboard assets on 2026-10-29: `cloud-root-CUrPHDgS.js` and `pricing-refund-policy-Bamt0E9e.js`. Tests use synthetic credentials and responses; no authenticated real-account query was performed.
|
|
39
|
+
|
|
36
40
|
#### Endpoint permissions and 401 troubleshooting
|
|
37
41
|
|
|
38
|
-
- `/billing/preflight` and `/wallet/balance` run in parallel with `Authorization: Bearer ...` and `x-vela-workspace-id`.
|
|
42
|
+
- `/billing/preflight` and `/wallet/balance` run in parallel with `Authorization: Bearer ...` and `x-vela-workspace-id`. Cookie mode uses `coding-plan-usage` instead, sending only the Cookie header and the same workspace header. It never sends that Cookie as a Bearer token. Preflight nests the quota windows under `codingPlan`; both layers' workspace and member identities are validated before unwrapping.
|
|
39
43
|
- The wallet endpoint remains an independent query with its `billingScopeVersion: 2` contract. A valid wallet response is authoritative. When it cannot be read, a validated preflight result may display its `balanceUsd` as a fallback, including when no subscription is active. Failure on one side preserves the other; no missing value becomes a fabricated zero. The failing side and reason appear in the settings card, sidebar/strip tooltip and manual-refresh result. A fallback balance is labelled as coming from `billing/preflight`.
|
|
40
44
|
- The workspace ID is `items[].workspaceId` from `GET https://amr-api.open-design.ai/api/v1/workspaces`, not `profiles.prod.user.id` from `~/.amr/config.json`.
|
|
41
|
-
-
|
|
45
|
+
- In Cookie mode, a 401/403 means you should sign in again, copy the request Cookie and check workspace access.
|
|
46
|
+
- In Control Key mode, check that the Control Key is current, belongs to the selected workspace and can read that workspace. An inference key or a user ID in the workspace field will not work. If the account rejects preflight too, use the OpenDesign Cloud console to check quota; a readable wallet is still shown separately.
|
|
42
47
|
|
|
43
|
-
Quota and wallet responses must match the requested workspace. The wallet must identify its member; if the quota response provides a member identity, both must match. A preflight response that omits the redundant outer `workspaceId` is accepted only after the requested workspace has scoped the request; a body naming a different workspace is rejected. Credentials are never forwarded through a redirect
|
|
48
|
+
Quota and wallet responses must match the requested workspace. The wallet must identify its member; if the quota response provides a member identity, both must match. A preflight response that omits the redundant outer `workspaceId` is accepted only after the requested workspace has scoped the request; a body naming a different workspace is rejected. Credentials are never forwarded through a redirect. Control Key requests never attach cookies; Cookie requests never attach Bearer authorization. They use the existing DSH credential store and are excluded from the ledger and client snapshot.
|
|
44
49
|
|
|
45
50
|
Each returned allowance window has its own used percentage and reset time. The API's `durationSeconds` identifies the window: `18000` (5 hours) maps to `fiveHour`, and `604800` (7 days) maps to `weekly`, regardless of response order or time remaining until reset. Simultaneous windows are not added together or called unlimited. Wallet credit remains a separate USD-equivalent value, including a real zero. Quota and wallet are fetched independently, so a failure on one side keeps the other side visible; an `eligible: false` / empty-window answer is reported as **no active subscription** instead of a credential failure. Invalid, unauthorized or missing responses never fabricate a zero allowance; when both sides fail, the card shows an error/unavailable state. The workspace setting is kept across restarts and invalidates the previous query when changed.
|
|
46
51
|
|
|
@@ -65,30 +70,35 @@ OpenDesign 的 API 与客户端共用套餐,套餐用尽后可以继续扣钱
|
|
|
65
70
|
|
|
66
71
|
### 额度查询
|
|
67
72
|
|
|
68
|
-
|
|
73
|
+
不需要安装 OpenDesign 桌面版。1.9.45 起支持网页 **Cookie** 和原有 **Control Key** 两种查询方式。API Keys 页面生成的推理密钥不能查询账户额度。
|
|
69
74
|
|
|
70
|
-
1.
|
|
71
|
-
2.
|
|
72
|
-
3.
|
|
73
|
-
4.
|
|
75
|
+
1. 登录 [OpenDesign Cloud 网页](https://open-design.ai/cloud/dashboard)。
|
|
76
|
+
2. 按 **F12 → 网络(Network)**,刷新网页,选择发往 `amr-api.open-design.ai` 的 `coding-plan-usage` 或 `wallet/balance` 请求。在**请求标头(Request Headers)**中复制 **Cookie** 的完整值,也可连同 `Cookie:` 一起复制。不要复制响应的 `Set-Cookie`,不需要在控制台执行脚本。
|
|
77
|
+
3. 打开 **DSH 设置 → 费用 → 额度 → OpenDesign**,编辑 **Cookie / Control Key**,粘贴并保存。工作区 ID 留空时读取网页当前工作区;也可从刚才请求 URL 中复制 `/workspaces/` 后、`/billing/` 或 `/wallet/` 前的 ID。
|
|
78
|
+
4. 开启额度查询,选择显示位置并刷新。Cookie 失效后,重新登录网页并复制即可。
|
|
74
79
|
|
|
75
|
-
|
|
80
|
+
原有 Control Key 继续使用同一个凭据编辑器,需明确填写工作区 ID。两种凭据都保存在 DSH 凭据库原有的 `OPENDESIGN_CONTROL_KEY` 槽位,命名账号各自隔离。宿主环境变量依次支持 `OPENDESIGN_CONTROL_KEY`、`VELA_CONTROL_KEY`、`OPENDESIGN_COOKIE`。清除已保存凭据不会移除环境变量。原有凭据映射问题由 @unifilitence 在 [#317](https://github.com/Han-1413141/dsh-cost-meter/issues/317) 报告并定位。
|
|
76
81
|
|
|
77
|
-
查询只访问以下固定官方 HTTPS GET
|
|
82
|
+
查询只访问以下固定官方 HTTPS GET 端点:
|
|
78
83
|
|
|
79
84
|
```text
|
|
80
|
-
https://amr-api.open-design.ai/api/v1/workspaces/
|
|
81
|
-
https://amr-api.open-design.ai/api/v1/workspaces/{workspaceId}/
|
|
85
|
+
https://amr-api.open-design.ai/api/v1/workspaces/current # Cookie,工作区 ID 留空时读取
|
|
86
|
+
https://amr-api.open-design.ai/api/v1/workspaces/{workspaceId}/billing/coding-plan-usage # Cookie 查询套餐窗口
|
|
87
|
+
https://amr-api.open-design.ai/api/v1/workspaces/{workspaceId}/billing/preflight # Control Key 查询套餐窗口
|
|
88
|
+
https://amr-api.open-design.ai/api/v1/workspaces/{workspaceId}/wallet/balance # 使用同一查询凭据,独立读取钱包
|
|
82
89
|
```
|
|
83
90
|
|
|
91
|
+
2026-10-29 已核对官方网页资源 `cloud-root-CUrPHDgS.js` 与 `pricing-refund-policy-Bamt0E9e.js` 中的 Cookie 路径、`activeWorkspaceId` 字段和 API 地址。回归使用模拟凭据与响应,未进行真实账户的登录查询。
|
|
92
|
+
|
|
84
93
|
#### 端点权限与 401 排查
|
|
85
94
|
|
|
86
|
-
- `/billing/preflight` 和 `/wallet/balance` 使用 `Authorization: Bearer ...` 与 `x-vela-workspace-id`
|
|
95
|
+
- `/billing/preflight` 和 `/wallet/balance` 使用 `Authorization: Bearer ...` 与 `x-vela-workspace-id` 并行读取。Cookie 模式改用 `coding-plan-usage`,只发送 Cookie 与相同的工作区标头,不把 Cookie 当作 Bearer 密钥。preflight 把窗口放在 `codingPlan` 内;解析前会核对内外两层工作区和成员身份。
|
|
87
96
|
- 钱包保留独立查询,按 `billingScopeVersion: 2` 契约校验。成功读取的钱包金额优先;钱包不可读时,经校验的 preflight 响应可提供 `balanceUsd` 作为余额,包括没有生效套餐的情况。一侧失败保留另一侧,缺失数据不会变成零。设置卡片、侧栏/横条提示和手动刷新结果都会显示失败的一侧与原因;备用余额会注明来自 `billing/preflight`。
|
|
88
97
|
- 工作区 ID 来自 `GET https://amr-api.open-design.ai/api/v1/workspaces` 的 `items[].workspaceId`,不能填 `~/.amr/config.json` 中的 `profiles.prod.user.id`。
|
|
89
|
-
-
|
|
98
|
+
- Cookie 模式遇到 401/403,重新登录网页、复制请求 Cookie,并检查当前工作区权限。
|
|
99
|
+
- Control Key 模式遇到 401/403,检查 Control Key 是否有效、是否属于所填工作区、是否有读取权限。推理 API Key 不能代替 Control Key,用户 ID 不能代替工作区 ID。如果该账户连 preflight 也拒绝,可在 OpenDesign Cloud 控制台查看额度;可读的钱包仍单独显示。
|
|
90
100
|
|
|
91
|
-
查询只访问上文列出的固定官方 HTTPS GET 端点;核对工作区,钱包必须提供成员身份,额度响应提供成员身份时再核对二者一致。preflight 响应省略外层冗余 `workspaceId` 时,在已由请求范围校验工作区的前提下仍接受;若响应指向不同工作区则拒绝。凭据由 DSH
|
|
101
|
+
查询只访问上文列出的固定官方 HTTPS GET 端点;核对工作区,钱包必须提供成员身份,额度响应提供成员身份时再核对二者一致。preflight 响应省略外层冗余 `workspaceId` 时,在已由请求范围校验工作区的前提下仍接受;若响应指向不同工作区则拒绝。凭据由 DSH 凭据库管理,不回显、不写入账本,不跟随重定向。Control Key 请求不附带 Cookie,Cookie 请求不附带 Bearer 密钥。
|
|
92
102
|
|
|
93
103
|
所有实际返回的窗口分别显示已用百分比和重置时间,不相加、不标成无限。钱包作为独立的美元等值额度显示,真实零余额保留。额度与钱包独立查询:一侧失败时另一侧仍照常显示;`eligible: false`/空窗口回执会明确报告为**无生效订阅**,不再与凭据失效混为一谈。认证失败、缺失回执或身份不匹配不显示虚构的零额度,两侧都失败时才显示错误/不可用状态。工作区配置跨重启保留,改变后清理原查询缓存。
|
|
94
104
|
|
|
@@ -25,3 +25,35 @@ GitHub Actions 工作流 `plugin-compatibility-watch` 每日北京时间 08:23
|
|
|
25
25
|
基线更新为 `0.1.206 / 3.1.6 / 0.2.0-alpha.10`,保存对应发布包的 SHA-512 完整性。Connect 的账号、认证和额度服务使用本地模拟对象;原版插件初始化、OAuth 登录与外部模型请求没有执行。检查入口为 `test/codex-connect-published.mjs`,通过 `DSH_TEST_CONNECT_PACKAGE` 指定已下载的 npm 压缩包。
|
|
26
26
|
|
|
27
27
|
2026-10-26 已验证 `billion-context@0.1.208` 与 `dsh-codex-subscription@3.1.7`,处理 `github-actions[bot]` 的 [#416](https://github.com/Han-1413141/dsh-cost-meter/issues/416)、[#417](https://github.com/Han-1413141/dsh-cost-meter/issues/417)。前者接口指纹未变,实际发布包的四协议计费、压缩、重试、父子会话、历史回放与原版 CLI 自动接入检查通过。后者 RPC 分发变化涉及语音取消、错误分类及切换账号后的模型目录初始化,`usage/read` 分支未变;实际发布包的单周、双窗口、强制刷新与失败回退检查通过。两版加入 CI,保留旧版本及 Connect 基线。
|
|
28
|
+
|
|
29
|
+
## 2026-10-28:Codex Subscription 实际发布包复核
|
|
30
|
+
|
|
31
|
+
复核 `github-actions[bot]` 在 [#430](https://github.com/Han-1413141/dsh-cost-meter/issues/430) 报告的接入指纹变化。Issue 最后报告 `3.1.9`,处理时 [npm 官方 latest 元数据](https://registry.npmjs.org/dsh-codex-subscription/latest) 已是 `3.2.0`。下载并逐包核对官方 SHA-512,保留 `3.1.7` 对照,同时验证 `3.1.8`、`3.1.9` 和 `3.2.0`;通过运行回归后才把 Subscription 基线提升为 `3.2.0`,不改其他插件基线。
|
|
32
|
+
|
|
33
|
+
| 版本 | 与前版的接入差异 | 运行结论 |
|
|
34
|
+
| --- | --- | --- |
|
|
35
|
+
| [3.1.8](https://registry.npmjs.org/dsh-codex-subscription/3.1.8) | 宿主依赖范围变化;四个被监控函数的语法指纹不变。新增默认推理强度等功能不改变 `usage` → `usageReader.read`。 | 额度接入兼容。 |
|
|
36
|
+
| [3.1.9](https://registry.npmjs.org/dsh-codex-subscription/3.1.9) | 传输和 RPC 分发新增 native-voice 路由及本机 Origin 限制;额度路径仍为同源 `/api/codex-subscription/usage`。 | 额度解析、读取和失败回退兼容;无需修改费用插件运行时代码。 |
|
|
37
|
+
| [3.2.0](https://registry.npmjs.org/dsh-codex-subscription/3.2.0) | RPC 新增输入预测;额度解析器及 `usage` 分发分支不变,但实际 reader 改成按调用方管理共享请求的取消。 | 两个调用方中一个取消不会影响另一个;全部取消或清缓存会中止旧请求,后续读取不接收旧缓存。 |
|
|
38
|
+
|
|
39
|
+
监控额外纳入 `createCodexUsageReader` 指纹,并用合成回归确认:即使额度字段、解析器和 RPC 均未改变,reader 单独变化也会报告。它仍是变更提示,不能替代运行测试。
|
|
40
|
+
|
|
41
|
+
原测试把发布包的所有函数声明放进 VM;`3.1.9` 新增的、与额度无关的 remote-history 函数包含 `import.meta`,导致测试脚本先报语法错误。现仅运行审阅过的额度相关原版声明,不改写上游函数,不执行插件初始化、登录、模型、语音或远程控制功能。
|
|
42
|
+
|
|
43
|
+
`test/codex-subscription-published.mjs` 现在覆盖:
|
|
44
|
+
|
|
45
|
+
- 原版解析器的默认时间、单周、5h/周双窗口、0%/100%、缺失和非法字段、未知窗口,以及敏感字段不进入浏览器投影。
|
|
46
|
+
- 原版 `createCodexUsageReader`、RPC 分发和传输直至本插件解析:默认缓存、强制刷新、缓存过期、结果克隆、并发共享、切换账号清缓存,以及认证与凭据快照不一致时重读。
|
|
47
|
+
- 缺失登录、过期登录、401/403、429 `Retry-After`、错误正文脱敏;强制刷新不会绕过上游失败冷却。凭据仅为测试字符串,费用插件调用载荷只有 `{ force }`,不转发 Bearer 或账号 ID。
|
|
48
|
+
- 真实宿主 `HostConnectionService` 的认证/Origin 拒绝、POST 路由、非法 JSON/信封/批量请求、卸载与部分注册失败清理;支持独立 Peer 的宿主另验非 owner 拒绝。
|
|
49
|
+
- `subscription` 数据源从配置保存、宿主 schema 到浏览器解析的往返,以及默认 `auto` / 关闭状态。另跑现有客户端回归确认失败后的自动回退与旧来源竞态隔离。
|
|
50
|
+
|
|
51
|
+
本地矩阵:`3.1.2 / 3.1.4 / 3.1.6 / 3.1.7 / 3.1.8 / 3.1.9 / 3.2.0` × 真实 `dsh-client-connection@0.2.0-rc.1 / 0.2.1-rc.3`,共 14 次通过。CI 两个既有宿主任务均保留旧版本并加入三个新版本。测试在 Linux 执行,验证的是跨平台的原版 JavaScript 额度接入,不宣称实际 Windows 桌面/OAuth 已端到端验证。实际账户及付费模型请求均为 0;这不是对上游插件其他功能的完整认证。
|
|
52
|
+
|
|
53
|
+
复现(`DSH_TEST_NODE_MODULES` 指向已安装的测试宿主,`DSH_TEST_CODEX_PACKAGE` 指向核对完整性的官方 npm 压缩包):
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
DSH_TEST_NODE_MODULES=/path/to/host/node_modules \
|
|
57
|
+
DSH_TEST_CODEX_PACKAGE=/path/to/dsh-codex-subscription-3.2.0.tgz \
|
|
58
|
+
node test/codex-subscription-published.mjs
|
|
59
|
+
```
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
# 2026-10 模型价格目录与渠道选择 / Model pricing and routes
|
|
2
2
|
|
|
3
|
-
核对日期 / Checked: 2026-10-
|
|
3
|
+
核对日期 / Checked: 2026-10-28
|
|
4
4
|
|
|
5
5
|
## 中文
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
### 10 月 28 日更新
|
|
8
|
+
|
|
9
|
+
最新补充、套餐变更和来源见 [更新明细](catalog-2026-10-28.md)。当前 OpenCode 端点已按 10 月 28 日页面核对:Zen 83 个、Go 30 个;下文的 10 月 15 日数量和价格差异保留为当日记录。当前 Zen GPT-6.1 Sol 缓存读已为 $0.10,超过 272K 输入为 $0.20。
|
|
10
|
+
|
|
11
|
+
此前针对 #224 补齐 GPT-6 Sol/Luna、GPT-6.1 Sol、Gemini 3.8 Flash、Claude Fable 5.1、Opus 5.5 等模型,并按公开价格页面扩充其他模型。内置第三方目录包含 358 个「厂商 / 模型」条目、223 个不同模型 ID(含官方别名和历史快照 ID);其中 353 条有可执行价格,5 条明确未核价。DeepSeek 主表单独保留。OpenRouter 在启动及小时级定时检查时按跨重启的一小时冷却补充本渠道模型,失败或中断也保留冷却;手动同步仍可立即执行。静态目录的数量不是在线目录的上限。
|
|
8
12
|
|
|
9
13
|
### 10 月 15 日更新
|
|
10
14
|
|
|
@@ -15,8 +19,8 @@ Haiku 5.5 按 100,000 输入 Token 分档,缓存读取和写入也计入阈值
|
|
|
15
19
|
### 先选渠道,再选模型
|
|
16
20
|
|
|
17
21
|
- `openai`、`anthropic`、`google`、`xai`、`mistral`、`z-ai` 使用各自直接 API 的价格。已知厂商不会自动套用另一厂商的模型价
|
|
18
|
-
- `opencode-zen` 是本次明确区分的 **Zen
|
|
19
|
-
- `opencode-go` 使用 **Go 订阅参考价**,覆盖全部
|
|
22
|
+
- `opencode-zen` 是本次明确区分的 **Zen 按量渠道**,覆盖当前端点表全部 83 个模型(另外保留 13 个历史 ID)
|
|
23
|
+
- `opencode-go` 使用 **Go 订阅参考价**,覆盖全部 30 个模型(另外保留 11 个历史 ID);这些价格用于额度和等值费用估算,不代表每次请求额外扣款
|
|
20
24
|
- 为兼容本项目历史宿主配置,`zen` / `opencode` 仍按 Go 别名处理;用户在原渠道手写的价格条目及显式映射优先。按量 Zen 请选择 `opencode-zen` 的价格条目,不要依靠历史别名猜测。这是价格渠道键,不会创建宿主推理 Provider;宿主仍使用历史名字时,可显式映射到 `opencode-zen:<模型 ID>`,并把该宿主模型的 Plan/API 分类指定为 API。模型级 Plan/API 覆盖仍优先于自动分类
|
|
21
25
|
- 缺失渠道的旧宿主兼容推断只保留旧 Go 模型集合,并且要求该模型仍在 Go 渠道表中。新增目录条目不会仅因同名就把 API 消费变成订阅
|
|
22
26
|
- `openrouter` 使用完整模型 ID 精确匹配。`:free` / `:online` 等变体、其他路由及本地模型不会借用其价格
|
|
@@ -44,9 +48,9 @@ Haiku 5.5 按 100,000 输入 Token 分档,缓存读取和写入也计入阈值
|
|
|
44
48
|
|
|
45
49
|
## English
|
|
46
50
|
|
|
47
|
-
The third-party catalog now contains
|
|
51
|
+
The third-party catalog now contains 358 provider/model entries and 223 distinct model IDs, including official aliases and dated snapshots: 353 executable prices and 5 explicitly unpriced entries. The separate DeepSeek table remains intact. OpenRouter startup and hourly checks share a persistent one-hour cooldown, including after failures or interrupted downloads. Manual synchronization can refresh immediately.
|
|
48
52
|
|
|
49
|
-
Use direct vendor IDs for their own API prices, `opencode-zen` for all
|
|
53
|
+
Use direct vendor IDs for their own API prices, `opencode-zen` for all 83 currently published Zen PAYG endpoints, and `opencode-go` for all 30 currently published Go subscription-reference endpoints. Historical host IDs `zen` / `opencode` retain their Go meaning; manually entered prices and explicit mappings win. These are pricing keys, not newly registered inference providers. If a PAYG host uses a historical name, explicitly map its model to `opencode-zen:<model ID>` and set that host model’s Plan/API class to API. A model-level Plan/API override remains authoritative. Catalog growth does not infer new subscription usage from a bare model name.
|
|
50
54
|
|
|
51
55
|
Prices are USD per million tokens. Cache reads/writes and per-request context tiers are separate. OpenAI thresholds count complete input, including cached tokens; xAI's direct 200K boundary is inclusive while Zen's is exclusive. Claude generic cache writes use the published 5-minute tier; 1-hour TTL, Gemini cache storage charged per token-hour, modality-specific prices, tool fees and special processing tiers need separate accounting. Go's DeepSeek tiers use its UTC weekday schedule, not direct DeepSeek's Beijing holiday calendar.
|
|
52
56
|
|