Skip to content

CCometixLine 状态栏 ​

CCometixLine 是可选的第三方 Claude Code 状态栏,可显示模型、上下文占用、会话时间等信息。它只负责展示,不会改变 LAYSO AI 的 Base URL、API Key 或计费。

安装状态栏 ​

bash
npm install -g @cometix/ccline
ccline --version

连接 Claude Code ​

编辑 ~/.claude/settings.json,加入 statusLine 配置:

json
{
  "statusLine": {
    "type": "command",
    "command": "ccline",
    "padding": 0
  }
}

如果全局命令无法被 Claude Code 找到,可把 command 改为 ccline 的绝对路径。

自定义显示 ​

打开交互式配置:

bash
ccline --config

根据需要选择主题、字段和排列方式。建议优先保留模型名称、上下文占用和 Git 分支,避免状态栏过长。

验证效果 ​

  1. 完全退出当前 Claude Code 会话。
  2. 重新进入项目并运行 claude。
  3. 确认终端底部出现状态栏。
  4. 发起一次请求,检查模型与上下文信息是否更新。

更新与移除 ​

更新:

bash
npm update -g @cometix/ccline

移除:

bash
npm uninstall -g @cometix/ccline

卸载后同时删除 ~/.claude/settings.json 中的 statusLine 配置。

安全说明 ​

CCometixLine 属于第三方工具。安装前检查发布者、源代码和权限;不要把 LAYSO AI API Key 写进状态栏命令、主题配置、截图或日志。

常见问题 ​

现象处理方式
没有显示检查 JSON 格式,重启 Claude Code
提示找不到 ccline使用 which ccline 查找绝对路径
显示内容过多运行 ccline --config 精简字段
状态不更新更新 CCometixLine 与 Claude Code 后重启会话

LAYSO AI API 文档