ccusage 现在已经与 Claude Code 的新状态栏功能集成, 你的状态栏会显示:
• 当前会话的费用 • 今天的总费用 • 当前活跃的 5 小时区块费用 & 剩余时间 • 实时消耗速率(带颜色指示)
快速设置 在你的 ~/.claude/settings.json 中添加:
{
"statusLine": {
"type": "command",
"command": "bun x ccusage statusline"
}
}
就这样!你就能在状态栏中实时查看使用情况了。