CC Logins 是一个托盘应用,用于显示多个 Claude Code 订阅的配额用量,并支持一键或自动切换账号。

Stars

6

7 天增长

暂无数据

Fork 数

0

开放 Issue

1

开源协议

NOASSERTION

最近更新

2026-07-29

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它提供带有历史使用图表的本地数据库、Windows 下对 WSL 环境的感知能力,以及安全的默认设置(自动切换默认关闭、60 秒宽限期),强调用户对凭据处理的掌控与透明。

适合谁使用

  • 拥有多个 Claude 订阅的开发者
  • 全天使用 Claude Code 的重度用户
  • 在 Windows 上同时使用原生和 WSL 环境的用户

典型使用场景

  • 在达到速率限制前切换到另一个 Claude 账号
  • 通过本地历史记录监控数天或数周的配额消耗速度
  • 在任意平台通过单个托盘图标管理多个订阅

项目优势

  • 本地 SQLite 数据库记录使用历史,这是其他账号切换工具没有的功能
  • 可检测并处理 Windows 上独立的 WSL 环境,且不会唤醒休眠的发行版
  • 自动切换默认关闭,并包含 60 秒宽限期和暂停按钮
  • 凭据在 Windows 和 macOS 上使用平台原生加密(DPAPI 或 Keychain),在 Linux 上透明地说明未加密的现状

使用前须知

  • 二进制文件未签名,导致操作系统警告,需要用户手动信任
  • 在 Linux 上,存储的凭据未加密(仅 0600 权限的明文)
  • 项目尚处于早期版本(v0.1.0),可能存在粗糙之处

README 快速开始

CC Logins

Quota visibility and account switching for Claude Code

A tray application for developers who hold more than one Claude subscription and run Claude Code all day. It shows which account is active and how much 5-hour and 7-day quota each account has left, and switches between them — one click, or automatically before a limit lands. Windows, macOS, and Linux.

This project is young. 0.1.0 is the first tagged release; expect rough edges, and see Before you install this for what it does with your credentials.

Before you install this: what it does with your tokens

This app reads ~/.claude/.credentials.json — the same file Claude Code itself uses — refreshes OAuth tokens when they're near expiry, polls Anthropic's usage endpoint to compute quota, and writes that same credentials file when you switch accounts, so the official Claude Code binary picks up the new identity on its next request.

What it does not do:

  • It does not proxy, relay, or intercept model traffic. There is no server. Every inference request still goes straight from Claude Code to Anthropic, unmodified.
  • It does not export tokens to a UI, a file you can copy elsewhere, or anywhere off your machine. There is no cloud sync.
  • It never shows or sends token material anywhere other than the Anthropic OAuth endpoints and your own disk.

This distinction matters because Anthropic's terms treat it as the line between what's allowed and what isn't. They accept per-profile switching between real, individually-authenticated accounts using the official client — refresh a token, hand it to the real binary, done. They ban relay servers that pool tokens and impersonate the official client to multiple users or sessions at once. Running several accounts you legitimately hold is not itself a violation; evading rate limits through token sharing or relaying is. This app only ever does the former: it moves credentials on your own machine, into the same binary you'd otherwise run by hand.

That's a description of what the app does, not a legal opinion — read Anthropic's terms yourself if you're deciding whether multi-account use fits your si

项目描述

Quota visibility and account switching for Claude Code

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

NUber-dev
精选
NUber-dev GitHub avatar

YTubic

YTubic is a fast, responsive, open-source YouTube Music desktop client for Windows, Linux, and macOS that uses direct InnerTube API communication and aggressive caching to provide instant navigation and playback.

Web 开发前端框架
226
makecindy
精选
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI 与机器学习大语言模型
958
l0ng-ai
精选
l0ng-ai GitHub avatar

tty7

tty7 is a fast, GPU-accelerated terminal workbench with persistent sessions, built-in input tools, SSH support, and coding agent awareness.

开发者工具CLI 与终端
359