Home / Claude Code mods / Cost & usage / cache-keepalive

cache-keepalive

cache-keepalive is a Claude Code mod by federbenjamin that keeps an idle session's prompt cache warm with a short prompt 2 min before it expires; capped per model, the last one a handoff.

Updated 2026-10-08

What is cache-keepalive?

cache-keepalive is a Claude Code mod by federbenjamin that keeps an idle session's prompt cache warm with a short prompt 2 min before it expires; capped per model, the last one a handoff. It is listed under Cost & usage and has 3 GitHub stars.

TypeClaude code mod
Authorfederbenjamin
Repositoryfederbenjamin/cache-keepalive
Popularity3 GitHub stars
CategoryCost & usage
SecurityReview before installing (60/100)
Rank#796 of 5,272 Claude Code mods; #154 in Cost & usage
LicenseMIT
Last commit2026-10-08
Hooks7 events
Seesevery prompt
Draws onnothing

Is cache-keepalive safe to install?

cache-keepalive scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 4 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.every
$.clock.now
$.command.register
$.env.getreads env vars
$.process.runruns processes
$.prompt.submitdrives Claude
$.state.get
$.state.set
$.ui.statusdraws interface

How do I install cache-keepalive?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/federbenjamin/cache-keepalive
    claude plugin validate ./cache-keepalive/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add federbenjamin/cache-keepalive && claude plugin install cache-keepalive@cache-keepalive

Or ask Claude to set it up

Paste this into Claude Code and it installs cache-keepalive for you:

Install the "cache-keepalive" Claude Code mod from https://github.com/federbenjamin/cache-keepalive. Run claude plugin validate on it first and show me what it can access before you enable it.