cache-ttl-statusline is a Claude Code usage mod by JerrettDavis.
Draws session, plan-limit, and Headroom lines with model, cost, context, and a cache TTL that turns yellow then red, below the prompt or, in mod mode, above it.
Draws
Install
The marketplace name is claude-statusline-widgets.
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
Version
1.6.1
License
MIT
Repo stars
4
Last change
2026-10-26
What it can reach
Draws in the session
Reads usage or context figures
Reaches the network or an outside service
Calls another program on this machine
Or the same two lines with claude plugin from a shell. Restart Claude Code, or run /reload-plugins. The default hook mode writes a classic statusLine command to settings.json at session start and draws below the prompt. /statusline-mode mod switches to the mod, which draws above the prompt with no settings.json entry and needs Claude Code 2.1.287 or later. The usage line fetches your rate limits every 60 seconds with the OAuth credentials in ~/.claude/.credentials.json. The Headroom line needs ANTHROPIC_BASE_URL pointed at a Headroom proxy. The ccfooter-config TUI, a separate npm install that needs Node.js 22.12 or newer, arranges the 62 widgets.
The marketplace name is claude-statusline-widgets, and it holds only this plugin; the README calls it Claude StatusLine Widgets. The context, cost, and plan-limit lines are why this page files it under usage. cache-timer, by arasovic, draws a countdown above the prompt until the prompt cache expires. statuspane, by xuanji86, draws a card with the model, a context gauge, the plan limits, and session cost. This one draws up to three lines from 62 widgets you arrange in a TUI: the session line ends in the cache TTL, a clock time that turns yellow then red as it nears expiry, the usage line has the 5-hour and 7-day bars, and the Headroom line shows a compression proxy's savings. By default it is a classic status line below the prompt; only mod mode draws it in the session, above the prompt.
Demo
From the author's repo.
What it hooks into
session.startWhen a session starts
command.runWhen you run its slash command/statusline-mode
classic.SessionStartA Claude Code event
turn.completeWhen a turn ends
session.measureWhen usage is measured
ui.renderDraws into the sessionAbovePrompt
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/statusline-modeShow or switch the status line install mode (hook | mod)