usage

usage 0.28.12

工具與目錄
在這頁

新功能 1 項

01

離席時,讓下一個 5 小時額度窗口先起跑

要離開電腦吃飯或出門,卻不想回來才開始等下一輪 Claude 額度嗎?usage 新增可自行開啟的「Auto-start 5-hour Session」選項。它發現 5 小時 quota window(Claude 額度每 5 小時重新計算的一段時間)剛重設、而且目前沒有執行中的 session(一次持續運作的工作階段)時,會在背景送出一次 claude -p ok --model haiku,立刻替下一個窗口起跑。像替洗衣機設好延後啟動:你人不在,倒數仍先開始;每個窗口最多只送一次,不會反覆叫醒它。這項功能預設關閉,不會碰 Anthropic 的 quota API(查詢額度的程式介面);找不到 claude CLI(從終端機下指令操作 Claude 的工具)也會安靜略過。開啟時會先說明 usage 和 Mac 必須保持醒著,但闔上筆電仍照常讓 Mac 睡眠。

官方原文

**New opt-in menu toggle: Auto-start 5-hour Session.** When enabled, usage detects that your Claude 5-hour quota window has just reset and no session is currently running, then fires a single claude -p ok --model haiku in the background to immediately start the next window — useful if you're stepping away and want the next 5 hours counting down before you're back. Off by default; sends at most once per 5-hour window (self-throttled), never touches the Anthropic quota API, and silently no-ops if the claude CLI can't be found. Enabling it shows a one-time dialog explaining that it needs usage (and the Mac) to stay awake to fire — closing the lid always sleeps the Mac regardless of this setting.