usage

usage 0.34.18

工具與目錄
在這頁

新功能 5 項

01

額度感知模式在對話中通報新模型與新額度池

換上剛推出的 AI 模型趕報告,你可能會納悶 Claude 到底知不知道這個新選項。⟦就像電信公司剛推出新的漫遊方案,以前專員沒收到通報只能自己猜,現在總機會在每通來電提示一次新名稱與費率表有沒有列。⟧現在只要最近七天內出現新模型或新的 Antigravity 額度池(共用同一個用量上限的分組),額度感知模式就會在每個對話告訴 Claude 一次,並附上 usage 的價目表認不認得它。其中 Codex 的新模型會從 Codex 自己的模型清單抓到,其他工具的新模型則在你使用過一次後才會出現。當你剛試過一款新模型、接著開新對話問 Claude 目前有哪些可用額度時,它就能立刻知道這個新成員已經進來了。

官方原文

**Quota-aware mode tells Claude once per conversation when new models or Antigravity quota groups appear.** When a new model or Antigravity quota group shows up in the last seven days, Claude hears about it once per conversation along with whether usage's price table knows it yet. New Codex models are picked up from Codex's own model list; models from other tools appear after you use them once.

02

HTML 報表重認 Antigravity 模型並計入思考花費

想在 HTML 報表查看 Antigravity 用量帳單,明細上卻整排列成「沒有價格」。⟦好比核對工程報價單,以前型號多了尾碼就整項留白、還少算一欄工時,現在先裁掉尾碼對上牌價,再把漏計的工時補進帳單。⟧Antigravity 記下的 gemini-4-argon-s 等型號原本對不到價目表,現在會先去掉 -n、-s、-medium 等尾碼並找 gemini/ 開頭的價格,Gemini 4 Hydrogen 也算得出花費。報表分開讀取輸出與思考欄位後,原本漏掉 Antigravity 的思考 token(AI 計費的文字單位)。現在比照 Codex 把思考 token 計入輸出並以輸出單價計費,花費會明顯變高,這只是補算漏掉的部分,不是漲價。

官方原文

**Antigravity thinking tokens are included in report totals and cost.** After output and thinking tokens were separated, Antigravity thinking tokens were left out of the report's output count and cost calculation. Thinking tokens are now billed at the output rate, matching Codex. Antigravity cost in the report will be noticeably higher: that is the share that was missing before, not a price change.

**Antigravity usage is priced again in the HTML report.** The model IDs that Antigravity now records (such as gemini-4-argon-s, gemini-3.8-flash-n and claude-sonnet-5-5-medium) matched no entry in the price table, so all Antigravity tokens were listed as unpriced. usage now drops Antigravity's own suffixes (-n, -s, -trial, -tiered, -low, -medium, -high, -xhigh) and also looks up gemini/-prefixed prices. Gemini 4 Hydrogen is priced too.

03

價目表下載等待重試、換表清快取並補上 Muse 定價

離線環境或長時間開著選單列程式算費用,價目表有時會卡在重複下載、舊表沒清或模型缺價。

離線或連不上網且沒有未過期價目快取(暫存查詢資料)時,以前每次算費都重開連線下載,現在失敗後會等 10 分鐘再試。

選單列程式長時間執行並多次更新價目表時,啟用新表會順手清掉記憶體裡的舊表查詢快取,不再一直留著。

離線表原本只有 Muse Spark,下載表又缺 Meta 條目時,Muse Wonder 的 muse-wonder-1.0 與 Muse Ember 的 muse-ember-1.0 token(AI 計費單位)全被列成「沒有價格」。現在兩款都用 Meta 公布的標準價,但 Ember 單次輸入逾 200K token 的長文價位因工作階段紀錄沒記,一律採標準價。

以前斷網每算一次就重連、用這兩款模型也算不出費用,現在都已修好。

官方原文

**Failed price table downloads wait 10 minutes before retrying.** When offline or behind a blocked network with an expired or missing price cache, each cost calculation started a new download attempt. usage now waits 10 minutes after a failed download before trying again.

**Replaced price tables are no longer kept in memory.** When the price table was refreshed repeatedly in a long-running menu bar session, earlier tables stayed cached in memory. usage now clears old lookup entries whenever a new price table takes effect.

**Muse Wonder and Muse Ember are priced in the HTML report.** The offline price table only knew Muse Spark, so tokens from muse-wonder-1.0 and muse-ember-1.0 sessions were listed as unpriced whenever the downloaded table had no Meta entries. Both now carry Meta's published standard-mode prices; Ember's long-context tier (over 200K input tokens per request) is not told apart because session logs do not record it.

04

額度感知模式相容同帳號多對話與 Windows 中文

你開著好幾個視窗同時跑 Claude Code,或在 Windows 終端機裡輸入字句,有時會漏掉警示或突然沒反應。現在同帳號別的對話更新狀態檔時,其他對話仍收得到額度警告,新對話也能直接拿到起始總覽;用 /login 換帳號後,閒置對話隨後切換也不再誤記成舊帳號額度。讀寫標準輸入與輸出改固定用 UTF-8(跨語言通用文字編碼),遇中日韓文不再靜默或不同步,寫入狀態失敗也會清掉暫存檔。「Other agy model groups still have quota」現在只會在該回合實際通報 Antigravity 模型組跨過門檻時才附上。⟦跟辦公室共用交接白板一樣,以前換人簽收或寫進外文就容易漏看、還常附帶不相干備註,現在照統一格式交接,沒過線就不亂貼。⟧

官方原文

**Quota-aware mode keeps working across multiple conversations on the same Claude Code account.** When another conversation on the same account updates the status file last, existing conversations still receive Claude Code quota warnings and new conversations get their starting overview without waiting. After a /login switch in one conversation, idle conversations that switch later no longer mistake the already-updated numbers for the old account's limits.

**Quota-aware mode handles non-ASCII text on Windows, cleans up failed state writes, and stops adding unrelated Antigravity group notes.** It now reads stdin and writes stdout as UTF-8 instead of the system code page so CJK text no longer silences it or desynchronizes saved state from output, and removes its temporary file if saving state fails. The "Other agy model groups still have quota" line now appears only on turns that actually report an Antigravity model group crossing a threshold.

05

Antigravity 狀態列改用在地語言顯示 xhigh 強度

Gemini 4 Hydrogen 切到 xhigh 思考強度後,畫面上的狀態列(顯示即時設定資訊的文字欄)以前只會印出英文原名。現在這個顯示問題已經修好,狀態列會像其他思考強度一樣顯示在地化標籤,例如英文介面顯示為 Extended。⟦彷彿洗衣機面板原本只有幾段行程翻成中文、某個檔位卻硬生生留著英文代號,現在把最後那顆標籤也換成中文,瞄一眼就知道切到哪一檔。⟧

官方原文

**The Antigravity status line names the xhigh effort level.** Gemini 4 Hydrogen at xhigh used to show the raw English name. It now shows a localized label like the other levels, such as Extended in English.

修正 2 項

06

修正 Antigravity 登出閘門與 Gemini 週額度歸類

背景執行額度檢查遇到暫時驗證錯誤或開窗逾時,Antigravity 過去容易反覆彈出登入頁或錯記數字。

背景執行 CLI(指令列工具)檢查若因暫時性驗證錯誤而鎖住閘門,六小時後只要備援管道用同一份憑證仍抓得到額度,usage 就會清掉標記並恢復使用 CLI。

自動開窗送訊號若因等待驗證而逾時,usage 現在會跟額度檢查一樣記下未登入狀態,不再重複啟動 CLI 在背景開出登入頁。未登入標記也改為原子寫入(寫完整才算數、不讓讀檔看到半成品),自動開窗同時讀檔時不會再誤開閘門。

先前透過 CLI 記下 Gemini 週額度重置時間後,改走備援管道若看到重置時間相差在十分鐘內,會直接更新週額度,不再把同一個數字重複填進 5 小時那一列。以前驗證偶爾卡住就得面對背景冒出的登入頁或錯位的額度欄,現在這些狀態都會自動對正。

官方原文

**The Antigravity CLI recovers automatically after a temporary sign-out error.** When a background CLI check fails once with an authentication error and locks the gate, if the fallback quota check still succeeds with the same credential after six hours, usage clears the marker and resumes using the CLI.

**The Antigravity window keeper also stops launching sign-in pages after a timed-out ping.** When the auto-start ping times out while waiting on an authentication prompt, usage now records the CLI as signed out just like the quota check does.

**The Antigravity sign-out marker is now written atomically.** Concurrent reads by the window keeper can no longer see a half-written file and accidentally reopen the CLI gate.

**A Gemini weekly quota close to its reset is no longer mistaken for the 5-hour quota.** After a CLI check has recorded the weekly reset time, a fallback check whose reset estimate lands within ten minutes of that weekly reset now updates the weekly row instead of duplicating the number into the 5-hour row.

07

修正 Antigravity token 讀取並重算年度歷史

過去在年度檢視裡看到的 Antigravity 每日用量,常常偏高卻降不下來。⟦宛如發現以前錯把箱號當貨數、又把進貨與退貨抄反,現在只要原始單據還在,先前虛胖的舊日報表也跟著一起更正。⟧usage 以前每次回應都把約 1,300 到 1,500 的內部模型編號算進 input token(AI 計費的文字單位),還把 output 和 thinking 讀反。現在 input 只讀 input 欄位、output 與 thinking 不再對調、只帶模型編號的回應也不計入,更新後還會重算一次 Antigravity 的快取(暫存結果)。年度檢視的每日歷史以前只在新總量不小於舊紀錄時才替換,現在只要當天所有對話紀錄與工作階段都還留在本機,偏高的舊日子就會改成正確數值,紀錄缺漏的日子則保留原總量。

官方原文

**Earlier Antigravity days in the year view update to the corrected numbers.** The saved daily history used to replace a day only when the recalculated total was at least as large, so days recorded before the Antigravity token and pricing fixes stayed stuck at the old inflated totals. After updating, those earlier days switch to the corrected numbers as long as all of that day's conversation logs and sessions are still on disk; days with missing history keep their saved totals.

**Antigravity token counts are read from the right fields.** usage added Antigravity's internal model ID (about 1,300–1,500) to the input tokens of every response, so Antigravity input was overcounted. It also swapped output and thinking tokens. Input now comes only from the input field, thinking and output are no longer swapped, and responses that carry nothing but the model ID are no longer counted. Cached Antigravity results are rebuilt once after updating.