Claude Code status line

CC Aicodemirror Statusline Plus

Claude Code 状态栏增强插件 - 显示 aicodemirror.com 积分余额

44 stars 16 forksStatus lines Source

Install

From source
git clone https://github.com/Bozhu12/cc-aicodemirror-statusline-plus.git

From the README

Claude Code 状态栏增强插件 v2.0

这是一个用于 Claude Code 的状态栏增强插件,可以在状态栏显示 aicodemirror.com 的余额、实时使用量、计划类型、当前模型、Git 分支状态等信息。

✨ 功能特性

- 💎 余额显示:实时显示 aicodemirror.com 余额和计划类型
- 📊 使用量监控 :显示最近1小时的实时使用量,精确掌握消费情况
- 🤖 模型信息:显示当前使用的 Claude 模型版本
- 🎨 输出风格:显示当前 Claude 输出风格配置
- 🌿 Git 集成:显示当前分支和修改文件数量
- 📁 工作区路径:显示当前工作目录
- 🔄 自动刷新:支持会话结束时自动刷新缓存
- 🚨 动态颜色预警:API请求失败时自动切换为红色警告,直观提示Cookie过期或网络异常

📦 安装步骤

1. 从 GitHub 拉取代码

Windows 系统:

Linux/macOS 系统:

2. 配置 settings.json

在 ~/.claude/settings.json 中添加状态栏配置:

Windows 系统配置:

Linux/macOS 系统配置:

3. 获取并配置 Cookie

步骤 1:登录 aicodemirror.com

1. 打开浏览器,访问 https://www.aicodemirror.com/dashboard
2. 使用你的账号登录

步骤 2:获取 Cookie

1. 按 F12 打开开发者工具
2. 切换到 Network 标签页
3. 刷新页面 (F5 或 Ctrl+R)
4. 在网络请求中找到 aicodemirror 任意请求
5. 点击该请求,在右侧面板中找到 Request Headers
6. 复制 Cookie 字段的完整值

步骤 3:保存 Cookie

成功保存后会显示:

4. 重启 Claude Code

保存配置后,重启 Claude Code 即可在状态栏看到实时信息。

📊 状态栏显示格式示例

正常状态

格式说明:

- 👑 - 订阅计划图标(👑=ULTRA, 💎=MAX, ⭐=PRO, 🆓=FREE)
- 924.87 - 当前总余额(保留两位小数)
- 13.36 - 最近1小时实时使用量(保留两位小数)
- ¥ - 单位标识
- (auto) - 当前模型(haiku/sonnet/opus/auto)
- main(2) - Git 分支名(修改文件数)
- 路径部分 - 当前工作目录

警告状态

当API请求失败时,整个状态栏文字会变为红色加粗显示,提醒你检查Cookie或网络连接。

颜色状态:

- 🟣 紫色 (#BD93F9):正常运行,API请求成功
- 🔴 红色加粗:警告状态,API请求失败(Cookie过期/网络异常)

🔧 配置文件说明

aicodemirror-config.json

插件的主配置文件,包含 Cookie 和缓存数据。

📋 配置模板文件

项目包含一个配置模板文件 aicodemirror-config.example.json,你可以复制它来创建自己的配置:

⚠️ 重要提示:
- aicodemirror-config.json 包含你的真实 Cookie,不应该提交到 Git 仓库
- aicodemirror-config.example.json 是模板文件,可以安全提交到 Git
- 项目已在 .gitignore 中排除 aicodemirror-config.json,确保不会意外泄露

📊 配置文件结构

基础配置字段:

缓存数据 (v2.0 更新):

此部分由插件自动管理,无需手动编辑。缓存有效期为 30 秒。

credits_cache - 用户信息:
- user.plan (string): 用户订阅计划
  - 可能值: ULTRA, MAX, PRO, FREE
  - 对应图标: 👑, 💎, ⭐, 🆓
- user.credits (number): 当前总余额(单位:千分之一,需除以1000)
- user.status (string): 账户状态
- user.id…
Read the full README on GitHub

How status lines work

  • A status line is a command Claude Code runs to draw the bar under the prompt. It gets the session as JSON on stdin (model, folder, cost, context) and prints one or more lines.
  • Point the statusLine setting in ~/.claude/settings.json at it: { "statusLine": { "type": "command", "command": "<the command from the README>" } }.
  • Or run /statusline inside Claude Code and describe what you want.
Claude Code docs

Details

Language
JavaScript
Last updated
14 December 2025

FAQ

What is CC Aicodemirror Statusline Plus?

Claude Code 状态栏增强插件 - 显示 aicodemirror.com 积分余额 It is a status line for Claude Code, from Bozhu12/cc-aicodemirror-statusline-plus on GitHub.

How do I install CC Aicodemirror Statusline Plus?

Clone Bozhu12/cc-aicodemirror-statusline-plus from GitHub and follow the setup steps in its README.

Is CC Aicodemirror Statusline Plus popular?

Bozhu12/cc-aicodemirror-statusline-plus has 44 GitHub stars and 16 forks. It was last updated on 14 December 2025.

More status lines

Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.