usage

usage 0.30.21

工具與目錄
在這頁

新功能 2 項

01

離線價目表補齊 GPT-6 模型,斷網也能精準記帳

當你在沒有網路的環境下使用 Codex 寫程式,工具依然能準確計算最新模型的花費。線上的 LiteLLM 價目表原本就包含 GPT-6-Sol 與 GPT-6-Luna 這兩款新模型,但過去程式內建的備援(fallback,下載線上資料失敗時才會啟用的備用方案)價目表尚未更新。一旦網路斷線或是連線下載失敗,這兩個新模型的消耗金額就會漏算。現在內建備援表已經同步補上相同的價格資訊。⟦就像水電師傅隨身帶著備用紙本報價單,就算在地下室收不到訊號,翻開來照樣查得到新進特殊零件的工料費,算帳時不會漏掉任何項目。⟧

官方原文

**The offline price table knows Codex's GPT-6-Sol and GPT-6-Luna.** The live LiteLLM table already priced them; the built-in fallback, used only when that download fails, now carries the same prices, so spending on the two new models is not left out while offline.

02

Windows 首次啟動說明,教你放行 SmartScreen 警告

第一次在 Windows 電腦上下載並打開 usage 時,如果遇到系統安全提示擋下,現在有明確步驟可依循。官方說明文件(README,專案隨附的說明檔案)與網站正式補上操作教學:當 Windows Defender SmartScreen 跳出「Windows 已保護您的電腦」提示時,只要先點擊「其他資訊」,再按下「仍要執行」即可正常啟動程式,不必擔心被系統防護卡住。⟦跟大樓門禁初次攔下訪客一樣,只要依提示點擊確認,就能順利放行進門。⟧

官方原文

**Windows first launch.** The README and website explain how to get past SmartScreen's "Windows protected your PC" prompt: More info → Run anyway.

修正 1 項

03

Grok 狀態列支援 Windows,舊設定不再誤當備份還原

在 Windows 上使用 Grok 搭配 usage 時,狀態列(status line,顯示在終端機最底下的狀態列)現在能正常運作。過去 Grok 會把 [ui.status_line] command 視為單一程式路徑而觸發 os error 123 錯誤。現在 usage 會寫入 ~/.grok/usage-statusline-grok.cmd 包裝檔並指向它,既有安裝由自我修復自動切換,macOS 維持不變。過去若 Python 路徑不同,安裝程式會把舊指令誤存為使用者設定並在移除時還原;現在只要指向 usage 腳本或包裝檔,解除安裝便會直接捨棄備份。⟦如同將工序封裝成專用料理包避免出錯,退租點交時也能認出外加包裝直接丟棄,不再誤當成原本餐具放回抽屜。⟧

官方原文

**Grok's status line works on Windows.** Grok on Windows starts the whole [ui.status_line] command as one program path, so usage's "python.exe script.py" command failed with os error 123. usage now writes ~/.grok/usage-statusline-grok.cmd and points the command at it; existing installs are switched over by the self-repair check. macOS is unchanged.

**usage no longer backs up its own older Grok status line as yours.** Setup compared the exact command, so a usage row written for another Python path was saved as the user's status line and brought back on uninstall. It now recognizes any row that points at usage's script or wrapper, and uninstall drops such a backup instead of restoring it.