claude-pace

作者 Astro-Han已验证

Claude Code statusline and rate limit tracker with pace-aware quota monitoring. Pure Bash + jq, single file.

207
Stars
15
Forks
Shell
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/Astro-Han/claude-pace

快速入门

使用 claude-pace 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Claude Pace

A lightweight Claude Code status line and rate limit tracker that shows your 5-hour and 7-day quota usage in real time. Pure Bash + jq, single file, zero npm.

If you are searching for a Claude Code statusline, a Claude Code quota monitor, or a Claude Code usage tracker, claude-pace is built for that narrow job. It shows not only how much quota you have used, but whether your current burn rate is sustainable before the window resets.

claude-pace statusline demo

TL;DR

  • Claude Code status line with 5h and 7d quota usage, reset countdowns, and pace delta
  • Pace-aware rate limit tracking, ⇡15% means overspending, ⇣15% means headroom
  • Pure Bash + jq, single file, no Node.js runtime and no lockfile churn
  • Install as a Claude Code plugin, with npx, or as a single script

Most statuslines show "you used 60%." That number means nothing without context. 60% with 30 minutes left? Fine, the window resets soon. 60% with 4 hours left? You are about to hit the wall. claude-pace compares your burn rate to the time remaining and shows the delta.

  • ⇣15% green = you've used 15% less than expected. Headroom. Keep going.
  • ⇡15% red = you're burning 15% faster than sustainable. Slow down.
  • 15% / 20% = used in the 5h and 7d windows. 3h = resets in 3 hours.
  • Top line: model, effort, project (branch), 3f +24 -7 = git diff stats

Claude Code supports custom status lines through its statusLine setting and /statusline workflow in the official docs:

Table of Contents

Install This Claude Code Statusline

Requires jq.

Plugin (recommended):

Inside Claude Code:

/plugin marketplace add Astro-Han/claude-pace
/plugin install claude-pace
/reload-plugins
/claude-pace:setup

npx:

npx claude-pace

Restart Claude Code. Done.

Manual:

mkdir -p ~/.claude
curl -fsSL -o ~/.claude/statusline.sh.new \
  https://github.com/Astro-Han/claude-pace/releases/latest/download/claude-pace.sh
mv ~/.claude/statusline.sh.new ~/.claude/statusline.sh
chmod +x ~/.claude/statusline.sh

This installs the latest release, not the current state of main. To pin an exact version, swap latest/download for download/v0.9.4 (or any other tag).

Add to ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "~/.claude/statusline.sh"
  }
}

Restart Claude Code. Done.

To remove: delete the statusLine block from ~/.claude/settings.json.

Upgrade

  • Plugin:

    /plugin marketplace update claude-pace-marketplace
    /plugin update claude-pace
    /reload-plugins
    /claude-pace:setup
    
  • npx: npx claude-pace@latest

  • Manual: Re-run the curl command above.

Every channel installs a tagged release. /claude-pace:setup copies the script the plugin ships rather than downloading one, so the plugin version you have is the version you run. Nothing installs from main.

Release notifications: Watch this repo → Custom → Releases.

Claude Code Statusline Comparison

claude-paceclaude-hudCCometixLineccstatusline
RuntimejqNode.js 18+ / npmCompiled (Rust)Node.js / npm
CodebaseSingle Bash file1000+ lines + node_modulesCompiled binary1000+ lines + node_modules
Rate limit tracking5h + 7d usage %, pace delta, reset countdownUsage %Usage % (planned)None (formatting only)
Execution~10ms~90ms~5ms~90ms
Memory~2 MB~57 MB~3 MB~57 MB

Execution and memory measured on Apple Silicon, 300 runs, same stdin JSON.

Need themes, powerline aesthetics, or TUI config? Try ccstatusline. The entire source of claude-pace is one file. Read it.

How Claude Pace Tracks Quota

Claude Code polls the statusline every ~300ms:

DataSourceCache
Model, context, coststdin JSON (single jq call)None needed
Quota (5h, 7d, pace)stdin rate_limits (live, no fallback)None
Git branch + diffgit commandsPrivate cache dir, 5s TTL

Requires Claude Code 2.1.80+, where rate_limits is available in statusline stdin. When stdin omits rate_limits (older Claude Code, or providers that do not surface the field), claude-pace shows -- for 5h/7d quota and the session cost if available. No cached or stale quota is ever shown, because a cached account-level snapshot cannot be proven to belong to the current provider/account.

Git cache files live in a private per-user directory ($XDG_RUNTIME_DIR/claude-pace or ~/.cache/claude-pace, mode 700). All cache reads are validated before use. No files are ever written to shared /tmp.

Claude Code Statusline FAQ

Does it need Node.js? No. Only jq (available via brew install jq or your package manager). No npm, no node_modules, no lock files.

How does pace tracking work? claude-pace compares your current usage percentage to the fraction of time elapsed in each window (5-hour and 7-day). If you've used 40% of your quota but only 30% of the time has passed, the pace delta shows ⇡10% (red, burning too fast). If you've used 30% with 40% of time elapsed, it shows ⇣10% (green, headroom).

Does it make network calls? No. Quota data comes from stdin rate_limits on Claude Code 2.1.80+. If rate_limits is absent (older Claude Code, or providers that omit it), claude-pace shows -- for 5h/7d and the local session cost when present. No stale quota fallback — see the removal decision.

Can I inspect the source? The entire tool is one Bash file. Read it before you install it.

Also by the Author

diffpane - Real-time TUI diff viewer for AI coding agents. See what Claude Code changes as it happens.

License

MIT

Last updated: 2026-07-28 · v0.9.4

常见问题

What is claude-pace?

claude-pace is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Astro-Han. Claude Code statusline and rate limit tracker with pace-aware quota monitoring. Pure Bash + jq, single file. It has 207 GitHub stars.

Is claude-pace safe to use?

Yes. claude-pace passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install claude-pace?

Clone the repository with "git clone https://github.com/Astro-Han/claude-pace" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is claude-pace written in?

claude-pace is primarily written in Shell. It is open-source under Astro-Han on GitHub, so you can review or fork the full source.

Are there alternatives to claude-pace?

Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-pace against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ui-ux-pro-max-skill

by nextlevelbuilder

12

An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.

119,92012,870Python
CLI 工具ai-skillsantigravity
查看详情

happy

by slopus

Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully featured

23,4501,980TypeScript
CLI 工具
查看详情

claudecodeui

by siteboon

Use Claude Code, OpenCode, Cursor CLI, and Codex on mobile and web with CloudCLI (aka Claude Code UI). CloudCLI is a free open source webui/GUI that helps you manage your Claude Code session and projects remotely.

13,3941,866TypeScript
CLI 工具
查看详情

CRS-自建Claude Code镜像,一站式开源中转服务,让 Claude、OpenAI、Gemini、Droid 订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

12,5471,869JavaScript
CLI 工具
查看详情

ccstatusline

by sirmalloc

🚀 Beautiful highly customizable statusline for Claude Code CLI with powerline support, themes, and more.

12,508545TypeScript
CLI 工具
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情