Skip to content

[开源推荐] cc-costline — Claude Code 增强状态栏,实时显示花费和用量限制 #3148

@Ventuss-OvO

Description

@Ventuss-OvO

项目地址

https://github.com/Ventuss-OvO/cc-costline?target=https://github.com

类别

JS、CLI、AI

项目标题

cc-costline:Claude Code 终端增强状态栏,实时显示 Token 花费、用量限制和排行榜排名

项目描述

Claude Code 用户最头疼的问题之一是「用了多少钱完全没概念」。cc-costline 在终端底部添加一行状态栏,把关键信息一目了然地呈现出来:当前会话的 Token 数和花费、上下文占比、5 小时 / 7 天用量限制、30 天累计花费,以及 ccclub 排行榜排名。

一行命令安装:npm i -g cc-costline && cc-costline install,零配置开箱即用。

亮点

  • 实时显示当前会话的 Token 数、花费金额、上下文占比和模型名称
  • 用量限制可视化:5h / 7d 使用率随占比自动变色(绿→橙→红)
  • 支持 7 天或 30 天滚动花费统计
  • 自动集成 ccclub 排行榜排名(可选)
  • OAuth 凭证自动从 macOS Keychain 读取,真正零配置

截图

cc-costline screenshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions