usage

usage 0.28.0

工具與目錄
在這頁

新功能 1 項

01

Windows 全面支援:免安裝直接跑,還有專屬系統匣

Windows 使用者現在能獲得與 Mac 同等級的完整體驗,不用再經過繁瑣的設定就能直接查看 AI 的使用額度了。這次更新讓 usage 原生地支援 Windows 系統,包含 TUI(文字使用者介面,沒有滑鼠按鈕、純靠鍵盤在黑底白字命令列裡操作的畫面)、Claude Code 的 status-line hook(狀態列掛鉤,一種能把自己掛在命令列提示字元旁邊、隨時吐出剩餘額度的小程式),以及 Codex 歷史紀錄的解析。你可以在系統右下角看到一個動態的常駐圖示,隨時顯示 Claude 額度百分比,滑鼠懸停還能看見 Claude 與 Codex 兩者的視窗摘要。左鍵點擊會透過 Windows 內建的 WebView2(微軟內建用來在一般軟體裡顯示網頁的底層引擎)開啟那 11 款華麗的 HTML 報告面板;右鍵選單則能切換面板、重新整理、設定開機自動啟動、檢查更新以及結束程式。如果你不想自己安裝環境,GitHub Releases 現在直接提供打包好的 usage-windows.zip,解壓縮點開 usage.exe 就能用(需有 Windows 10/11 通常已內建的 Microsoft Edge WebView2 Runtime)。背後為了這件事,開發團隊的 CI(持續整合,每次開發者交程式碼時,在雲端自動幫忙測試並打包成軟體的機器人流水線)改用 PyInstaller(一種能把需要環境設定的 Python 程式碼,連同工具包全部壓成一個單一執行檔的打包軟體)來製作發布檔,並把原本 Mac 專用的依賴套件隔開。同時,狀態列掛鉤在讀寫檔案時的鎖定機制與指令引號寫法,也都針對跨平台做了調整。這就像是原本只在蘋果生態系發行的限定版精裝日曆,現在不但為 Windows 使用者重新開模做了一份,還直接升級成插電即用的免安裝電子版,並且附贈了一個隨時能看的精巧小時鐘釘在你的桌面上。

官方原文

**Full Windows support**: usage now runs natively on Windows, including the TUI, Claude Code status-line hook, and Codex history parsing.

**Windows system tray UI**: a dynamic tray icon shows the Claude quota percentage; its tooltip summarizes Claude and Codex windows. Left-click opens the same 11 HTML theme panels used on macOS through WebView2, while the right-click menu offers panel switching, refresh, launch at login, update checks, and quit.

**Portable Windows release**: GitHub Releases now include usage-windows.zip, containing usage.exe for unzip-and-run use. It requires the Microsoft Edge WebView2 Runtime, which is normally already present on Windows 10 and 11.

Windows packaging and CI now use PyInstaller and windows-latest for both checks and release artifacts. The optional windows extra installs pystray, pywebview, and Pillow; macOS-only PyObjC dependencies are guarded by a Darwin platform marker.

Status-line hook file locking and generated hook-command quoting are platform-aware, so they work on Windows as well as macOS.