Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By 404Mayankv0.11.0MITIn 2 marketplaces
Keeps the prompt cache warm while a session sits idle: shortly before the cache would go cold, a small background request re-reads it, without touching the transcript. A beating heart under the prompt shows it working, and Claude can read and change it for you. Each beat counts toward your usage.
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; reads environment variables (CLAUDE_AFK_TIMEOUT_MS, CLAUDE_CODE_PROMPT_CACHE_TTL, ENABLE_PROMPT_CACHING_1H, FORCE_PROMPT_CACHING_5M); reads your settings; calls a model on your account; reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
prompt-cache, prompt-caching, keepalive, cost-saving, usage, idle, heartbeat, mod ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Keep Claude Code's prompt cache warm while you're away.

When a Claude Code session sits idle, its prompt cache goes cold, and your next message has to rebuild it from scratch. That's slower, and it uses more of your usage limits. cachebeat gives the session a heartbeat: shortly before the cache would go cold, it sends a tiny background request that reads the conversation and keeps the cache alive. Your transcript never sees it.
You come back from lunch, type your next message, and it picks up right where you left off.
| Command | What it does |
|---|---|
/cachebeat on | Keeps this session's cache warm, with no time limit |
/cachebeat 2h | Keeps it warm for a set time, then turns off |
[!IMPORTANT] Changed in 0.10.0:
/cachebeat onworks as before./cachebeat <time>now sets how long to keep the cache warm, and needs a unit:/cachebeat 2hkeeps it warm for two hours, then turns this session off. It used to set the beat interval in minutes (/cachebeat 30). A bare number now changes nothing and says so. The interval is a setting: Beat after idle in/cachebeat settings, or/cachebeat global <minutes>.
/cachebeat on starts them/cachebeat 2h keeps the cache warm through a break of that long, then turns itself offclaude --version and update with claude update.claude -p.In your terminal:
claude plugin marketplace add 404Mayank/cachebeat
claude plugin install cachebeat@cachebeat
Or from inside Claude Code:
/plugin marketplace add 404Mayank/cachebeat
/plugin install cachebeat@cachebeat
/reload-plugins
If /cachebeat isn't there afterwards, restart Claude Code.
Update:
claude plugin marketplace update cachebeat
claude plugin update cachebeat@cachebeat
Then restart Claude Code. To get new versions automatically, turn on auto-update under /plugin → Marketplaces → cachebeat.
Uninstall:
claude plugin uninstall cachebeat@cachebeat
claude plugin marketplace remove cachebeat
In any session:
/cachebeat on
The prompt heart appears under the prompt, and starts beating once the session has had a turn. To have every new session start with it on:
/cachebeat global on
Or only the sessions in this folder, such as one repo:
/cachebeat local on
To keep the cache warm for a set time, such as through a long meeting, and have it turn itself off after:
/cachebeat 2h
Or ask Claude: "keep the cache warm in this session", "keep it warm for the next 2 hours", "always start it in this repo", "make 30 minutes the default beat time".
To have Claude watch its own context, add a line to your CLAUDE.md, such as: "Before a long task, read your context with mcp__cachebeat__state (only: ["context"])."
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub 404mayank/cachebeat --plugin cachebeatPlugins from other owners that cover similar ground