tokdash 2.7.2__tar.gz → 2.7.4__tar.gz
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.
- {tokdash-2.7.2/src/tokdash.egg-info → tokdash-2.7.4}/PKG-INFO +1 -1
- {tokdash-2.7.2 → tokdash-2.7.4}/pyproject.toml +1 -1
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/__init__.py +1 -1
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/pricing_db.json +143 -6
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/claude.py +46 -3
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/index.html +46 -5
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/release-notes.json +39 -1
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/release-notes.zh.json +18 -0
- {tokdash-2.7.2 → tokdash-2.7.4/src/tokdash.egg-info}/PKG-INFO +1 -1
- {tokdash-2.7.2 → tokdash-2.7.4}/LICENSE +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/MANIFEST.in +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/README.md +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/setup.cfg +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/__main__.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/activity_insights.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/api.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/assets.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/cli.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/cli_help.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/clientpaths.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/codex_quota_windows.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/compute.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/dateutil.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/dev_fixtures.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/filelock.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/insights.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/instance_identity.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/model_normalization.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/__init__.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/detect.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/engine.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/launchd.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/manifest.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/paths.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/plan.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/runtime.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/service_base.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/systemd.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/tailscale.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/update_auth.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/update_control.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/update_eligibility.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/update_helper.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/update_jobs.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/update_mechanics.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/updatecheck.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/onboard/winsched.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/osinfo.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/output_speed.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/output_speed_readers.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/pricing.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/session_speed.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sessions.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/__init__.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/coding_tools.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/dsh_log.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/openclaw.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/pi_forks.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/__init__.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/antigravity.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/codex.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/commandcode.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/config.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/credential_sources.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/grok.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/kimi.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/minimax.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/opencode_go.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/types.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/sources/quota/zai.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/speed_cache.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/speed_mode.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/speed_native.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/speed_process.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/speed_report.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/speed_results.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/speed_trend.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/speed_worker.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/README.md +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/amp.svg +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/antigravity.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/claude.svg +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/cline.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/codex-transparent.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/codex.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/commandcode.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/copilot.svg +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/crush.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/cursor.svg +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/devin.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/dsh.svg +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/freebuff.svg +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/gemini.svg +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/grok-transparent.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/grok.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/hermes.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/kilocode.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/kimi.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/mimo.svg +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/minimax.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/omp.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/openclaw.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/opencode.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/pi.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/qoder.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/qwen_code.svg +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/reasonix.svg +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/workbuddy.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/zcode.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/agents/zed.svg +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/icon-192.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/icon-512.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/icons/logo.png +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/animations/anime-stop.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/animations/charts.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/animations/counters.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/animations/index.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/animations/loader.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/animations/micro.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/animations/reduced-motion.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/animations/scroll.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/animations/sse-pulse.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/animations/table-rows.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/animations/theme.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/animations/transitions.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/js/anime.esm.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/manifest.webmanifest +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/sw.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/theme-config.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/themes.css +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/vendor/NOTICE.txt +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/vendor/chart-4.4.0.umd.min.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/vendor/flatpickr-4.6.13.min.css +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/vendor/flatpickr-4.6.13.min.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/vendor/tailwindcss-3.4.17.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/static/vendor/three-0.160.0.min.js +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/store_logging.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/tui/__init__.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/tui/app.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/tui/charts.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/tui/data.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/tui/formatting.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/tui/ranges.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/tui/remote.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/tui/report.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/tui/terminal.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/tui/views.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/usage_buckets.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash/usage_store.py +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash.egg-info/SOURCES.txt +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash.egg-info/dependency_links.txt +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash.egg-info/entry_points.txt +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash.egg-info/requires.txt +0 -0
- {tokdash-2.7.2 → tokdash-2.7.4}/src/tokdash.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
3
|
-
"lastUpdated": "2026-11-
|
|
2
|
+
"version": "2.0.43",
|
|
3
|
+
"lastUpdated": "2026-11-20T06:54:01Z",
|
|
4
4
|
"note": "Comprehensive pricing database with all Moonshot, MiniMax, GLM, and OpenAI models from OpenRouter. Cache pricing estimated at 10% of input for cache_read, 100% of input for cache_write.",
|
|
5
5
|
"aliases": {
|
|
6
6
|
"Qwen/Qwen3.8-Flash-Next": "qwen3.8-flash",
|
|
@@ -20,8 +20,11 @@
|
|
|
20
20
|
"fable-5": "claude-fable-5",
|
|
21
21
|
"fable-5-1": "claude-fable-5.1",
|
|
22
22
|
"fable-5.1": "claude-fable-5.1",
|
|
23
|
+
"fable-5-2": "claude-fable-5.2",
|
|
24
|
+
"fable-5.2": "claude-fable-5.2",
|
|
23
25
|
"fable5": "claude-fable-5",
|
|
24
26
|
"fable5.1": "claude-fable-5.1",
|
|
27
|
+
"fable5.2": "claude-fable-5.2",
|
|
25
28
|
"gemini-3-flash-a": "antigravity-gemini-3-flash",
|
|
26
29
|
"gemini-3.7-flash-control": "gemini-3.7-flash",
|
|
27
30
|
"gemini-3.8-flash-n": "gemini-3.8-flash",
|
|
@@ -54,6 +57,8 @@
|
|
|
54
57
|
"moonshotai/k3-256k": "kimi-k3-256k",
|
|
55
58
|
"mythos-5-1": "claude-mythos-5.1",
|
|
56
59
|
"mythos-5.1": "claude-mythos-5.1",
|
|
60
|
+
"mythos-5-2": "claude-mythos-5.2",
|
|
61
|
+
"mythos-5.2": "claude-mythos-5.2",
|
|
57
62
|
"opus-4.7": "claude-opus-4.7",
|
|
58
63
|
"opus-4.8": "claude-opus-4.8",
|
|
59
64
|
"opus-5": "claude-opus-5",
|
|
@@ -1184,6 +1189,42 @@
|
|
|
1184
1189
|
"unit": "per_million_tokens",
|
|
1185
1190
|
"source": "openrouter.ai/openai/gpt-6.1-terra-pro"
|
|
1186
1191
|
},
|
|
1192
|
+
"gpt-6.2-astra": {
|
|
1193
|
+
"provider": "openai",
|
|
1194
|
+
"input": 8.0,
|
|
1195
|
+
"output": 40.0,
|
|
1196
|
+
"cache_read": 0.4,
|
|
1197
|
+
"cache_write": 10.0,
|
|
1198
|
+
"unit": "per_million_tokens",
|
|
1199
|
+
"source": "openrouter.ai/openai/gpt-6.2-astra"
|
|
1200
|
+
},
|
|
1201
|
+
"gpt-6.2-astra-pro": {
|
|
1202
|
+
"provider": "openai",
|
|
1203
|
+
"input": 8.0,
|
|
1204
|
+
"output": 40.0,
|
|
1205
|
+
"cache_read": 0.4,
|
|
1206
|
+
"cache_write": 10.0,
|
|
1207
|
+
"unit": "per_million_tokens",
|
|
1208
|
+
"source": "openrouter.ai/openai/gpt-6.2-astra-pro"
|
|
1209
|
+
},
|
|
1210
|
+
"gpt-6.2-sol": {
|
|
1211
|
+
"provider": "openai",
|
|
1212
|
+
"input": 2.0,
|
|
1213
|
+
"output": 10.0,
|
|
1214
|
+
"cache_read": 0.1,
|
|
1215
|
+
"cache_write": 2.5,
|
|
1216
|
+
"unit": "per_million_tokens",
|
|
1217
|
+
"source": "openrouter.ai/openai/gpt-6.2-sol"
|
|
1218
|
+
},
|
|
1219
|
+
"gpt-6.2-sol-pro": {
|
|
1220
|
+
"provider": "openai",
|
|
1221
|
+
"input": 2.0,
|
|
1222
|
+
"output": 10.0,
|
|
1223
|
+
"cache_read": 0.1,
|
|
1224
|
+
"cache_write": 2.5,
|
|
1225
|
+
"unit": "per_million_tokens",
|
|
1226
|
+
"source": "openrouter.ai/openai/gpt-6.2-sol-pro"
|
|
1227
|
+
},
|
|
1187
1228
|
"_comment_anthropic": "=== Anthropic Claude Models ===",
|
|
1188
1229
|
"claude-fable-5": {
|
|
1189
1230
|
"provider": "anthropic",
|
|
@@ -1434,10 +1475,11 @@
|
|
|
1434
1475
|
"provider": "anthropic",
|
|
1435
1476
|
"input": 2.0,
|
|
1436
1477
|
"output": 10.0,
|
|
1437
|
-
"cache_read": 0.
|
|
1478
|
+
"cache_read": 0.1,
|
|
1438
1479
|
"cache_write": 2.5,
|
|
1439
1480
|
"unit": "per_million_tokens",
|
|
1440
|
-
"
|
|
1481
|
+
"note": "Cache hits are 0.05x input ($0.10), not the usual 0.1x.",
|
|
1482
|
+
"source": "platform.claude.com/docs/en/about-claude/pricing"
|
|
1441
1483
|
},
|
|
1442
1484
|
"claude-haiku-5.5": {
|
|
1443
1485
|
"provider": "anthropic",
|
|
@@ -1446,7 +1488,8 @@
|
|
|
1446
1488
|
"cache_read": 0.01,
|
|
1447
1489
|
"cache_write": 0.125,
|
|
1448
1490
|
"unit": "per_million_tokens",
|
|
1449
|
-
"
|
|
1491
|
+
"note": "Prompts up to 100K tokens. Prompts over 100K bill at $0.50/$2.50 (cache $0.05/$0.625), which a flat per-model rate cannot express.",
|
|
1492
|
+
"source": "platform.claude.com/docs/en/about-claude/pricing"
|
|
1450
1493
|
},
|
|
1451
1494
|
"claude-fable-5.2": {
|
|
1452
1495
|
"provider": "anthropic",
|
|
@@ -1455,7 +1498,38 @@
|
|
|
1455
1498
|
"cache_read": 0.2,
|
|
1456
1499
|
"cache_write": 10.0,
|
|
1457
1500
|
"unit": "per_million_tokens",
|
|
1458
|
-
"
|
|
1501
|
+
"note": "1M context at standard pricing (no long-context tier). cache_write is the 5-minute rate; 1-hour writes are $16.",
|
|
1502
|
+
"source": "platform.claude.com/docs/en/about-claude/pricing"
|
|
1503
|
+
},
|
|
1504
|
+
"claude-fable-5.2-fast": {
|
|
1505
|
+
"provider": "anthropic",
|
|
1506
|
+
"input": 16.0,
|
|
1507
|
+
"output": 80.0,
|
|
1508
|
+
"cache_read": 0.4,
|
|
1509
|
+
"cache_write": 20.0,
|
|
1510
|
+
"unit": "per_million_tokens",
|
|
1511
|
+
"note": "Fast mode, 2x standard claude-fable-5.2 rates.",
|
|
1512
|
+
"source": "platform.claude.com/docs/en/about-claude/pricing"
|
|
1513
|
+
},
|
|
1514
|
+
"claude-mythos-5.2": {
|
|
1515
|
+
"provider": "anthropic",
|
|
1516
|
+
"input": 8.0,
|
|
1517
|
+
"output": 40.0,
|
|
1518
|
+
"cache_read": 0.2,
|
|
1519
|
+
"cache_write": 10.0,
|
|
1520
|
+
"unit": "per_million_tokens",
|
|
1521
|
+
"note": "Limited availability. Same pricing as claude-fable-5.2.",
|
|
1522
|
+
"source": "platform.claude.com/docs/en/about-claude/pricing"
|
|
1523
|
+
},
|
|
1524
|
+
"claude-mythos-5.2-fast": {
|
|
1525
|
+
"provider": "anthropic",
|
|
1526
|
+
"input": 16.0,
|
|
1527
|
+
"output": 80.0,
|
|
1528
|
+
"cache_read": 0.4,
|
|
1529
|
+
"cache_write": 20.0,
|
|
1530
|
+
"unit": "per_million_tokens",
|
|
1531
|
+
"note": "Fast mode, 2x standard claude-mythos-5.2 rates.",
|
|
1532
|
+
"source": "platform.claude.com/docs/en/about-claude/pricing"
|
|
1459
1533
|
},
|
|
1460
1534
|
"_comment_deepseek": "=== DeepSeek Models ===",
|
|
1461
1535
|
"deepseek-chat": {
|
|
@@ -2562,6 +2636,15 @@
|
|
|
2562
2636
|
"unit": "per_million_tokens",
|
|
2563
2637
|
"source": "openrouter.ai/qwen/qwen3.8-max-prime"
|
|
2564
2638
|
},
|
|
2639
|
+
"qwen4-max": {
|
|
2640
|
+
"provider": "qwen",
|
|
2641
|
+
"input": 1.425,
|
|
2642
|
+
"output": 4.275,
|
|
2643
|
+
"cache_read": 0.07125,
|
|
2644
|
+
"cache_write": 1.78125,
|
|
2645
|
+
"unit": "per_million_tokens",
|
|
2646
|
+
"source": "openrouter.ai/qwen/qwen4-max"
|
|
2647
|
+
},
|
|
2565
2648
|
"_comment_meituan": "=== Meituan Models ===",
|
|
2566
2649
|
"longcat-2.0": {
|
|
2567
2650
|
"provider": "meituan",
|
|
@@ -2719,6 +2802,15 @@
|
|
|
2719
2802
|
"unit": "per_million_tokens",
|
|
2720
2803
|
"source": "openrouter.ai/tencent/hy4"
|
|
2721
2804
|
},
|
|
2805
|
+
"hy4-flash": {
|
|
2806
|
+
"provider": "tencent",
|
|
2807
|
+
"input": 0.035,
|
|
2808
|
+
"output": 0.1405,
|
|
2809
|
+
"cache_read": 0.0015,
|
|
2810
|
+
"cache_write": 0.035,
|
|
2811
|
+
"unit": "per_million_tokens",
|
|
2812
|
+
"source": "openrouter.ai/tencent/hy4-flash"
|
|
2813
|
+
},
|
|
2722
2814
|
"_comment_xai": "=== xAI Grok Models ===",
|
|
2723
2815
|
"grok-4.20": {
|
|
2724
2816
|
"provider": "xai",
|
|
@@ -2831,6 +2923,15 @@
|
|
|
2831
2923
|
"unit": "per_million_tokens",
|
|
2832
2924
|
"source": "openrouter.ai/baidu/ernie-4.5-vl-424b-a47b"
|
|
2833
2925
|
},
|
|
2926
|
+
"ernie-light-dt-1.0-intl": {
|
|
2927
|
+
"provider": "baidu",
|
|
2928
|
+
"input": 1.13,
|
|
2929
|
+
"output": 3.94,
|
|
2930
|
+
"cache_read": 0.113,
|
|
2931
|
+
"cache_write": 1.13,
|
|
2932
|
+
"unit": "per_million_tokens",
|
|
2933
|
+
"source": "openrouter.ai/baidu/ernie-light-dt-1.0-intl"
|
|
2934
|
+
},
|
|
2834
2935
|
"_comment_mistral": "=== Mistral Models ===",
|
|
2835
2936
|
"codestral-2508": {
|
|
2836
2937
|
"provider": "mistral",
|
|
@@ -3021,6 +3122,15 @@
|
|
|
3021
3122
|
"unit": "per_million_tokens",
|
|
3022
3123
|
"source": "openrouter.ai/mistralai/mistral-large-4-0"
|
|
3023
3124
|
},
|
|
3125
|
+
"pixtral-large-2502": {
|
|
3126
|
+
"provider": "mistral",
|
|
3127
|
+
"input": 2.0,
|
|
3128
|
+
"output": 6.0,
|
|
3129
|
+
"cache_read": 0.2,
|
|
3130
|
+
"cache_write": 2.0,
|
|
3131
|
+
"unit": "per_million_tokens",
|
|
3132
|
+
"source": "openrouter.ai/mistralai/pixtral-large-2502"
|
|
3133
|
+
},
|
|
3024
3134
|
"_comment_cohere": "=== Cohere Models ===",
|
|
3025
3135
|
"command-a": {
|
|
3026
3136
|
"provider": "cohere",
|
|
@@ -3306,6 +3416,33 @@
|
|
|
3306
3416
|
"unit": "per_million_tokens",
|
|
3307
3417
|
"source": "openrouter.ai/google/gemini-omni-1.2-flash"
|
|
3308
3418
|
},
|
|
3419
|
+
"gemini-4-carbon": {
|
|
3420
|
+
"provider": "google",
|
|
3421
|
+
"input": 2.0,
|
|
3422
|
+
"output": 10.0,
|
|
3423
|
+
"cache_read": 0.1,
|
|
3424
|
+
"cache_write": 0.1875,
|
|
3425
|
+
"unit": "per_million_tokens",
|
|
3426
|
+
"source": "openrouter.ai/google/gemini-4-carbon"
|
|
3427
|
+
},
|
|
3428
|
+
"gemini-4-hydrogen": {
|
|
3429
|
+
"provider": "google",
|
|
3430
|
+
"input": 1.5,
|
|
3431
|
+
"output": 7.5,
|
|
3432
|
+
"cache_read": 0.075,
|
|
3433
|
+
"cache_write": 0.083333,
|
|
3434
|
+
"unit": "per_million_tokens",
|
|
3435
|
+
"source": "openrouter.ai/google/gemini-4-hydrogen"
|
|
3436
|
+
},
|
|
3437
|
+
"gemini-4-neon": {
|
|
3438
|
+
"provider": "google",
|
|
3439
|
+
"input": 3.0,
|
|
3440
|
+
"output": 15.0,
|
|
3441
|
+
"cache_read": 0.15,
|
|
3442
|
+
"cache_write": 0.083333,
|
|
3443
|
+
"unit": "per_million_tokens",
|
|
3444
|
+
"source": "openrouter.ai/google/gemini-4-neon"
|
|
3445
|
+
},
|
|
3309
3446
|
"_comment_meta": "=== Meta Models ===",
|
|
3310
3447
|
"llama-3.1-70b-instruct": {
|
|
3311
3448
|
"provider": "meta",
|
|
@@ -38,6 +38,15 @@ CLAUDE_USAGE_USER_AGENT = f"claude-cli/{CLAUDE_CODE_UA_VERSION} (external, cli)
|
|
|
38
38
|
# are still worth having, so those statuses get one retry at the plain URL. 429 is kept out
|
|
39
39
|
# on purpose: retrying a rate-limited endpoint doubles the traffic it just asked us to cut.
|
|
40
40
|
_RESET_FLAG_REJECTED = frozenset({400, 404, 405, 422})
|
|
41
|
+
# A 403 whose error `type` is "forbidden" ("Request not allowed") is Anthropic refusing the
|
|
42
|
+
# network the request came from, not the token: on 2026-11-21 one live token got it on a
|
|
43
|
+
# direct connection and a 200 through a proxy, a minute apart. It is not one of the API's
|
|
44
|
+
# documented error types -- a token problem is `authentication_error` (401) or
|
|
45
|
+
# `permission_error` (403) -- so it cannot be mistaken for one, and telling the user to open
|
|
46
|
+
# Claude Code to refresh a sign-in that works sends them the wrong way.
|
|
47
|
+
_NETWORK_BLOCKED_ERROR_TYPES = frozenset({"forbidden"})
|
|
48
|
+
# Enough for any JSON error body; a proxy's HTML error page is cut short and parses as none.
|
|
49
|
+
_ERROR_BODY_LIMIT = 4096
|
|
41
50
|
RESET_CREDITS_BUCKET = "reset_credits"
|
|
42
51
|
# A grant holds a handful of resets. Anything past this is junk, and rejecting it keeps the
|
|
43
52
|
# total's `float()` from overflowing: `json.loads` builds arbitrarily long integers, and an
|
|
@@ -733,7 +742,7 @@ def _fetch_usage(token: str, *, opener, timeout: float) -> dict[str, Any]:
|
|
|
733
742
|
"""GET the usage body with the reset flag, falling back once to the plain URL.
|
|
734
743
|
|
|
735
744
|
5xx keeps its retry-once-after-200ms rule at each URL; anything else propagates for
|
|
736
|
-
the caller to map
|
|
745
|
+
the caller to map to a status (see `_http_error_status`).
|
|
737
746
|
"""
|
|
738
747
|
headers = {
|
|
739
748
|
"Authorization": f"Bearer {token}",
|
|
@@ -762,6 +771,40 @@ def _fetch_usage(token: str, *, opener, timeout: float) -> dict[str, Any]:
|
|
|
762
771
|
return get(CLAUDE_USAGE_URL)
|
|
763
772
|
|
|
764
773
|
|
|
774
|
+
def _anthropic_error(exc: HTTPError) -> tuple[str, str]:
|
|
775
|
+
"""The ``(type, message)`` of an Anthropic error body, or empty strings without one.
|
|
776
|
+
|
|
777
|
+
A body that cannot be read or is not Anthropic's ``{"error": {...}}`` shape is simply
|
|
778
|
+
absent: the status code still decides the outcome, so a bad body never fails the poll.
|
|
779
|
+
"""
|
|
780
|
+
try:
|
|
781
|
+
payload = json.loads(exc.read(_ERROR_BODY_LIMIT).decode("utf-8", "replace"))
|
|
782
|
+
except Exception:
|
|
783
|
+
return "", ""
|
|
784
|
+
error = payload.get("error") if isinstance(payload, dict) else None
|
|
785
|
+
if not isinstance(error, dict):
|
|
786
|
+
return "", ""
|
|
787
|
+
return str(error.get("type") or "").strip().lower(), str(error.get("message") or "").strip()[:200]
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
def _http_error_status(exc: HTTPError) -> tuple[str, str]:
|
|
791
|
+
"""Status row and stored error for a failed usage request.
|
|
792
|
+
|
|
793
|
+
401/403 is the sign-in (``stale_token``), except the network refusal described at
|
|
794
|
+
`_NETWORK_BLOCKED_ERROR_TYPES`, which is ``network_blocked``: the card then names the
|
|
795
|
+
network instead of telling the user to refresh a sign-in that works. Anything else is
|
|
796
|
+
``fetch_error``. The error keeps Anthropic's own message when the body has one.
|
|
797
|
+
"""
|
|
798
|
+
error_type, message = _anthropic_error(exc)
|
|
799
|
+
if exc.code == 403 and error_type in _NETWORK_BLOCKED_ERROR_TYPES:
|
|
800
|
+
status = "network_blocked"
|
|
801
|
+
elif exc.code in {401, 403}:
|
|
802
|
+
status = "stale_token"
|
|
803
|
+
else:
|
|
804
|
+
status = "fetch_error"
|
|
805
|
+
return status, f"HTTP {exc.code}: {message or exc.reason}"
|
|
806
|
+
|
|
807
|
+
|
|
765
808
|
def _profile_snapshots(
|
|
766
809
|
profile: ClaudeProfile,
|
|
767
810
|
token: str | None,
|
|
@@ -793,8 +836,8 @@ def _profile_snapshots(
|
|
|
793
836
|
try:
|
|
794
837
|
payload = _fetch_usage(token, opener=opener, timeout=timeout)
|
|
795
838
|
except HTTPError as exc:
|
|
796
|
-
status =
|
|
797
|
-
return [_status_snapshot(status, captured_at, {**meta, "error":
|
|
839
|
+
status, error = _http_error_status(exc)
|
|
840
|
+
return [_status_snapshot(status, captured_at, {**meta, "error": error}, profile)]
|
|
798
841
|
except Exception as exc:
|
|
799
842
|
return [_status_snapshot("fetch_error", captured_at, {**meta, "error": str(exc)}, profile)]
|
|
800
843
|
if not isinstance(payload, dict):
|
|
@@ -7691,6 +7691,8 @@
|
|
|
7691
7691
|
consumptionUnitDay: '% of window consumed per day',
|
|
7692
7692
|
consumptionUnitHour: '% of window consumed per hour',
|
|
7693
7693
|
quotaStaleToken: 'Sign-in token expired — open {app} once to refresh it. Tokdash never refreshes tokens itself.',
|
|
7694
|
+
quotaNetworkBlocked: 'The {app} quota API refused requests from this network (HTTP 403), usually a region block. Your sign-in is fine; if you use a proxy, the Tokdash service needs it too.',
|
|
7695
|
+
quotaResetAfterReading: 'reset {time} · reading taken before the reset',
|
|
7694
7696
|
quotaProviderIssue: 'Unable to refresh quota ({status}). Last checked {time}.',
|
|
7695
7697
|
quotaUpdatedAgo: 'Updated {time}',
|
|
7696
7698
|
quotaRemainingPct: '{pct}% left',
|
|
@@ -8482,6 +8484,8 @@
|
|
|
8482
8484
|
consumptionUnitDay: '每天消耗的窗口百分比',
|
|
8483
8485
|
consumptionUnitHour: '每小时消耗的窗口百分比',
|
|
8484
8486
|
quotaStaleToken: '登录令牌已过期 — 请打开一次 {app} 以刷新它。Tokdash 不会自动刷新令牌。',
|
|
8487
|
+
quotaNetworkBlocked: '{app} 的额度接口拒绝了来自当前网络的请求(HTTP 403),通常是地区限制,与登录无关。如果你通过代理访问,Tokdash 服务也需要使用该代理。',
|
|
8488
|
+
quotaResetAfterReading: '已于 {time} 重置 · 该读数早于此次重置',
|
|
8485
8489
|
quotaProviderIssue: '无法刷新额度({status})。上次检查时间:{time}。',
|
|
8486
8490
|
quotaUpdatedAgo: '更新于 {time}',
|
|
8487
8491
|
quotaRemainingPct: '剩余 {pct}%',
|
|
@@ -9274,6 +9278,8 @@
|
|
|
9274
9278
|
consumptionUnitDay: 'ウィンドウ消費率(1 日あたり %)',
|
|
9275
9279
|
consumptionUnitHour: 'ウィンドウ消費率(1 時間あたり %)',
|
|
9276
9280
|
quotaStaleToken: 'サインイントークンの有効期限が切れました — {app} を一度開いて更新してください。Tokdash 自身はトークンを更新しません。',
|
|
9281
|
+
quotaNetworkBlocked: '{app} のクォータ API がこのネットワークからのリクエストを拒否しました(HTTP 403)。通常は地域制限によるもので、サインインは問題ありません。プロキシ経由で接続している場合は、Tokdash サービスにも同じプロキシを設定してください。',
|
|
9282
|
+
quotaResetAfterReading: '{time} にリセット済み · この値はリセット前のものです',
|
|
9277
9283
|
quotaProviderIssue: 'クォータを更新できません({status})。最終確認: {time}。',
|
|
9278
9284
|
quotaUpdatedAgo: '更新: {time}',
|
|
9279
9285
|
quotaRemainingPct: '残り {pct}%',
|
|
@@ -10066,6 +10072,8 @@
|
|
|
10066
10072
|
consumptionUnitDay: '1일당 창 소비 비율(%)',
|
|
10067
10073
|
consumptionUnitHour: '1시간당 창 소비 비율(%)',
|
|
10068
10074
|
quotaStaleToken: '로그인 토큰 만료 — {app}을(를) 한 번 열어 갱신하세요. Tokdash는 토큰을 자체적으로 갱신하지 않습니다.',
|
|
10075
|
+
quotaNetworkBlocked: '{app} 할당량 API가 현재 네트워크의 요청을 거부했습니다(HTTP 403). 보통 지역 제한 때문이며 로그인에는 문제가 없습니다. 프록시를 통해 접속한다면 Tokdash 서비스에도 같은 프록시를 설정하세요.',
|
|
10076
|
+
quotaResetAfterReading: '{time}에 리셋됨 · 이 값은 리셋 이전 기록입니다',
|
|
10069
10077
|
quotaProviderIssue: '쿼터를 새로고침할 수 없음 ({status}). 마지막 확인: {time}.',
|
|
10070
10078
|
quotaUpdatedAgo: '{time}에 업데이트됨',
|
|
10071
10079
|
quotaRemainingPct: '{pct}% 남음',
|
|
@@ -10858,6 +10866,8 @@
|
|
|
10858
10866
|
consumptionUnitDay: '% de la ventana consumido por día',
|
|
10859
10867
|
consumptionUnitHour: '% de la ventana consumido por hora',
|
|
10860
10868
|
quotaStaleToken: 'Token de sesión caducado — abre {app} una vez para renovarlo. Tokdash nunca renueva tokens por sí mismo.',
|
|
10869
|
+
quotaNetworkBlocked: 'La API de cuota de {app} rechazó las solicitudes desde esta red (HTTP 403), normalmente por un bloqueo regional. Tu sesión está bien; si usas un proxy, el servicio de Tokdash también lo necesita.',
|
|
10870
|
+
quotaResetAfterReading: 'se reinició {time} · esta lectura es anterior al reinicio',
|
|
10861
10871
|
quotaProviderIssue: 'No se pudo actualizar la cuota ({status}). Última comprobación: {time}.',
|
|
10862
10872
|
quotaUpdatedAgo: 'Actualizado {time}',
|
|
10863
10873
|
quotaRemainingPct: 'queda {pct}%',
|
|
@@ -11650,6 +11660,8 @@
|
|
|
11650
11660
|
consumptionUnitDay: '% da janela consumido por dia',
|
|
11651
11661
|
consumptionUnitHour: '% da janela consumido por hora',
|
|
11652
11662
|
quotaStaleToken: 'Token de login expirado — abra {app} uma vez para renová-lo. O Tokdash nunca renova tokens por conta própria.',
|
|
11663
|
+
quotaNetworkBlocked: 'A API de cota do {app} recusou as solicitações desta rede (HTTP 403), geralmente por bloqueio regional. Seu login está ok; se você usa um proxy, o serviço do Tokdash também precisa dele.',
|
|
11664
|
+
quotaResetAfterReading: 'reiniciou {time} · esta leitura é anterior ao reinício',
|
|
11653
11665
|
quotaProviderIssue: 'Não foi possível atualizar a cota ({status}). Última verificação: {time}.',
|
|
11654
11666
|
quotaUpdatedAgo: 'Atualizado {time}',
|
|
11655
11667
|
quotaRemainingPct: 'resta {pct}%',
|
|
@@ -19233,6 +19245,20 @@
|
|
|
19233
19245
|
return formatResetCountdownFromSeconds(Math.floor(resetsAtNum - Date.now() / 1000));
|
|
19234
19246
|
}
|
|
19235
19247
|
|
|
19248
|
+
// Whether a bar's reading was taken before its window's reset and that reset has since
|
|
19249
|
+
// passed. The window it measured is over, so its percentage is history, not what is left
|
|
19250
|
+
// now. A provider whose polls keep failing keeps showing that last reading under its
|
|
19251
|
+
// error, and "resets soon · Oct 31" three weeks later read as a live meter. Only that
|
|
19252
|
+
// case changes: a bucket without a capture time, or one captured after its reset (the
|
|
19253
|
+
// API can report a reset that already passed), keeps the countdown, whose tiers are
|
|
19254
|
+
// shared with the companion apps (see `formatResetCountdownFromSeconds`).
|
|
19255
|
+
function quotaReadingPredatesReset(bucket, nowSeconds) {
|
|
19256
|
+
const resetsAt = Number(bucket?.resets_at);
|
|
19257
|
+
const capturedAt = Number(bucket?.captured_at);
|
|
19258
|
+
if (!resetsAt || !capturedAt || !Number.isFinite(resetsAt) || !Number.isFinite(capturedAt)) return false;
|
|
19259
|
+
return capturedAt < resetsAt && resetsAt <= nowSeconds;
|
|
19260
|
+
}
|
|
19261
|
+
|
|
19236
19262
|
function quotaProviderLabel(provider) {
|
|
19237
19263
|
if (provider === 'codex') return 'Codex';
|
|
19238
19264
|
if (provider === 'claude') return 'Claude Code';
|
|
@@ -19562,9 +19588,12 @@
|
|
|
19562
19588
|
}
|
|
19563
19589
|
const unlimited = bucket?.unlimited === true;
|
|
19564
19590
|
const remaining = unlimited ? 100 : quotaRemainingPercent(bucket);
|
|
19591
|
+
// A reading from before a reset that has since passed stays visible (it is the last
|
|
19592
|
+
// thing known) but loses the remaining-quota colours, which would claim it is current.
|
|
19593
|
+
const outdated = quotaReadingPredatesReset(bucket, Date.now() / 1000);
|
|
19565
19594
|
const pct = document.createElement('span');
|
|
19566
19595
|
pct.className = 'mono font-extrabold';
|
|
19567
|
-
pct.style.color = remaining === null ? 'var(--color-muted)' : quotaRemainingColor(remaining);
|
|
19596
|
+
pct.style.color = remaining === null || outdated ? 'var(--color-muted)' : quotaRemainingColor(remaining);
|
|
19568
19597
|
pct.textContent = unlimited
|
|
19569
19598
|
? t('quotaUnlimited')
|
|
19570
19599
|
: remaining === null ? '—' : t('quotaRemainingPct').replace('{pct}', remaining.toFixed(1));
|
|
@@ -19577,7 +19606,9 @@
|
|
|
19577
19606
|
const fill = document.createElement('div');
|
|
19578
19607
|
fill.className = 'h-full rounded-full';
|
|
19579
19608
|
fill.style.width = `${remaining === null ? 0 : remaining}%`;
|
|
19580
|
-
fill.style.background = remaining === null
|
|
19609
|
+
fill.style.background = remaining === null
|
|
19610
|
+
? 'var(--color-primary)'
|
|
19611
|
+
: outdated ? 'var(--color-muted)' : quotaRemainingColor(remaining);
|
|
19581
19612
|
bar.appendChild(fill);
|
|
19582
19613
|
|
|
19583
19614
|
const sub = document.createElement('div');
|
|
@@ -19588,7 +19619,11 @@
|
|
|
19588
19619
|
// already covers "last updated".
|
|
19589
19620
|
const resetAbs = formatEpochSeconds(bucket.resets_at);
|
|
19590
19621
|
const countdown = formatResetCountdown(bucket.resets_at);
|
|
19591
|
-
|
|
19622
|
+
if (outdated) {
|
|
19623
|
+
sub.textContent = t('quotaResetAfterReading').replace('{time}', resetAbs);
|
|
19624
|
+
} else {
|
|
19625
|
+
sub.textContent = countdown ? `${countdown} · ${resetAbs}` : `reset ${resetAbs}`;
|
|
19626
|
+
}
|
|
19592
19627
|
|
|
19593
19628
|
row.appendChild(top);
|
|
19594
19629
|
row.appendChild(bar);
|
|
@@ -19990,11 +20025,17 @@
|
|
|
19990
20025
|
if (!detail || detail === 'ok') return;
|
|
19991
20026
|
const box = document.createElement('div');
|
|
19992
20027
|
box.className = 'text-xs mt-3 p-2 rounded';
|
|
19993
|
-
|
|
20028
|
+
// Both name something the user has to fix outside Tokdash, so both get the amber call
|
|
20029
|
+
// to action. They must not share copy: a refused network (`network_blocked`, a 403
|
|
20030
|
+
// from Anthropic's edge) has a sign-in that works, and "open Claude Code to refresh
|
|
20031
|
+
// it" was the advice that sent people looking at the wrong thing.
|
|
20032
|
+
const actionKey = detail === 'stale_token' ? 'quotaStaleToken'
|
|
20033
|
+
: detail === 'network_blocked' ? 'quotaNetworkBlocked' : null;
|
|
20034
|
+
if (actionKey) {
|
|
19994
20035
|
box.style.background = 'color-mix(in srgb, #D97706 16%, transparent)';
|
|
19995
20036
|
box.style.color = '#D97706';
|
|
19996
20037
|
box.style.fontWeight = '600';
|
|
19997
|
-
box.textContent = t(
|
|
20038
|
+
box.textContent = t(actionKey).replace('{app}', quotaProviderLabel(providerKey));
|
|
19998
20039
|
} else {
|
|
19999
20040
|
box.style.color = 'var(--color-muted)';
|
|
20000
20041
|
box.textContent = t('quotaProviderIssue')
|
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
{
|
|
2
|
-
"current": "2.7.
|
|
2
|
+
"current": "2.7.4",
|
|
3
3
|
"releases": [
|
|
4
|
+
{
|
|
5
|
+
"version": "2.7.4",
|
|
6
|
+
"date": "2026-11-22",
|
|
7
|
+
"sections": [
|
|
8
|
+
{
|
|
9
|
+
"type": "added",
|
|
10
|
+
"items": [
|
|
11
|
+
"Pricing DB 2.0.43 adds eight models: gpt-6.2-sol, gpt-6.2-sol-pro, gpt-6.2-astra, gpt-6.2-astra-pro, gemini-4-neon, qwen4-max, hy4-flash and pixtral-large-2502. Existing model rates are unchanged."
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "fixed",
|
|
16
|
+
"items": [
|
|
17
|
+
"When Anthropic refuses Claude quota requests from your network, the quota card now says so and confirms your sign-in is fine. Previously it said the sign-in token had expired. If your terminal reaches Anthropic through a proxy, the Tokdash service needs that proxy too; the troubleshooting guide shows how to set it.",
|
|
18
|
+
"A quota bar whose reading was taken before its window reset is now greyed out and labelled as older than the reset, instead of showing \"resets soon\" beside an old date."
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"version": "2.7.3",
|
|
25
|
+
"date": "2026-11-16",
|
|
26
|
+
"sections": [
|
|
27
|
+
{
|
|
28
|
+
"type": "added",
|
|
29
|
+
"items": [
|
|
30
|
+
"Pricing DB 2.0.42 adds claude-fable-5.2-fast, claude-mythos-5.2, claude-mythos-5.2-fast, ernie-light-dt-1.0-intl, gemini-4-carbon and gemini-4-hydrogen, and claude-fable-5.2 now takes its rates from Anthropic's pricing page. The fable-5.2 and mythos-5.2 short names resolve to them."
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "fixed",
|
|
35
|
+
"items": [
|
|
36
|
+
"Claude Sonnet 5.5 cache reads are now priced at $0.10 per million tokens, matching Anthropic's pricing page. Previously they were counted at $0.20, which overstated cache cost."
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
|
|
4
42
|
{
|
|
5
43
|
"version": "2.7.2",
|
|
6
44
|
"date": "2026-11-10",
|
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
"source": "release-notes.json",
|
|
4
4
|
"comment": "简体中文更新日志。项与 release-notes.json 按下标一一对齐;未翻译的版本回落英文。",
|
|
5
5
|
"releases": {
|
|
6
|
+
"2.7.4": {
|
|
7
|
+
"added": [
|
|
8
|
+
"定价数据库升级到 2.0.43,新增八个模型:gpt-6.2-sol、gpt-6.2-sol-pro、gpt-6.2-astra、gpt-6.2-astra-pro、gemini-4-neon、qwen4-max、hy4-flash 和 pixtral-large-2502。既有模型的价格保持不变。"
|
|
9
|
+
],
|
|
10
|
+
"fixed": [
|
|
11
|
+
"当 Anthropic 拒绝来自当前网络的 Claude 额度请求时,额度卡片现在会如实说明,并确认登录状态正常。此前会误报登录令牌已过期。如果你的终端通过代理访问 Anthropic,Tokdash 服务也需要使用同一个代理,设置方法见故障排查指南。",
|
|
12
|
+
"如果某个额度条的读数早于其窗口的重置时间,现在会以灰色显示并注明该读数早于重置,而不再在旧日期旁显示“即将重置”。"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"2.7.3": {
|
|
16
|
+
"added": [
|
|
17
|
+
"定价数据库升级到 2.0.42,新增 claude-fable-5.2-fast、claude-mythos-5.2、claude-mythos-5.2-fast、ernie-light-dt-1.0-intl、gemini-4-carbon 和 gemini-4-hydrogen;claude-fable-5.2 的价格改为以 Anthropic 官方定价页为准。fable-5.2、mythos-5.2 等简写也会正确计价。"
|
|
18
|
+
],
|
|
19
|
+
"fixed": [
|
|
20
|
+
"Claude Sonnet 5.5 的缓存读取价格改为每百万 token 0.10 美元,与 Anthropic 官方定价页一致。此前按 0.20 美元计算,会高估缓存费用。"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
|
|
6
24
|
"2.7.2": {
|
|
7
25
|
"added": [
|
|
8
26
|
"定价数据库升级到 2.0.41,新增九个模型:gpt-6.1-terra、gpt-6.1-terra-pro、kimi-k3.1-pro、gemini-omni-1.1-flash、gemini-omni-1.2-flash、glm-5.3-flashx-legal、hy4、claude-fable-5.2 和 muse-ember。既有模型的价格保持不变。"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|