/ 目錄 / 演練場 / ccstatusline
● 社群 sirmalloc ⚡ 即開即用

ccstatusline

作者 sirmalloc · sirmalloc/ccstatusline

Claude Code CLI 的真實狀態列——powerline 風格、可自訂小工具、即時成本/使用量追蹤,工作時一目了然。

ccstatusline 以 tmux/powerline 風格的狀態列取代裸提示。小工具顯示模型、消耗的 token、當前成本、git 分支等。讓你實際了解 session 的費用。

為什麼要用

核心特性

即時演示

實際使用效果

就緒

安裝

選擇你的客戶端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "sirmalloc-ccstatusline": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sirmalloc/ccstatusline"
      ],
      "_inferred": true
    }
  }
}

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "sirmalloc-ccstatusline": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sirmalloc/ccstatusline"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "sirmalloc-ccstatusline": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sirmalloc/ccstatusline"
      ],
      "_inferred": true
    }
  }
}

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "sirmalloc-ccstatusline": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sirmalloc/ccstatusline"
      ],
      "_inferred": true
    }
  }
}

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "sirmalloc-ccstatusline",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sirmalloc/ccstatusline"
      ]
    }
  ]
}

Continue 使用伺服器物件陣列,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "sirmalloc-ccstatusline": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/sirmalloc/ccstatusline"
        ]
      }
    }
  }
}

加入 context_servers。Zed 儲存後熱重載。

claude mcp add sirmalloc-ccstatusline -- git clone https://github.com/sirmalloc/ccstatusline

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: ccstatusline

即時查看 session 費用累積

👤 Claude Code 使用者 ⏱ ~15 min intermediate

何時使用: 你曾被意外的帳單嚇到。

步驟
  1. 安裝
    將 ccstatusline 加入你的執行環境設定。✓ 已複製
    → 狀態列可見
  2. 設定
    固定成本 + token 小工具。✓ 已複製
    → 成本追蹤中
  3. 工作
    即時查看費用增長。✓ 已複製
    → 更好的預算管理

結果: 不再有意外的 Anthropic 帳單。

組合

與其他 MCP 搭配,撬動十倍槓桿

sirmalloc-ccstatusline + claude-code-safety-net

狀態列 + 安全 hook = 更好的日常 UX

結合 sirmalloc-ccstatusline 與 claude-code-safety-net:狀態列 + 安全 hook 提升日常 UX✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
statusline-widgets (詳見文件) 可設定的小工具,非可呼叫的工具 1 次呼叫

成本與限制

運行它的成本

API 配額
不適用
每次呼叫 Token 數
0
費用
免費
提示
選 3-4 個小工具;過多會變成噪音

安全

權限、密鑰、影響範圍

憑證儲存:
資料出站:

故障排查

常見錯誤與修復

字形缺失

安裝 Nerd Font;powerline 字形需要它

替代方案

ccstatusline 對比其他方案

替代方案何時用它替代權衡
預設提示你不介意裸提示無成本可視性

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills