ccpool

作者 hexxt-git

a cli to equally share a claude code subscription for low budget teams

63
Stars
2
Forks
TypeScript
语言
2026/8/24
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/hexxt-git/ccpool

快速入门

使用 ccpool 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

ccpool 👾

License: MIT Node Bun claude-code

Anthropic tells you the account is at 60%. ccpool tells you who got it there.

When a group shares one Claude subscription (Pro or Max), everyone collides on the same limits: someone burns the 5-hour window by noon, someone quietly eats the weekly cap, and nobody finds out until it's gone. ccpool gives the group a live, shared view of the account's usage broken down by person, so fair use becomes something you can see and negotiate instead of guess at.

combined

Available as a terminal dashboard (ccpool tui), a one-shot snapshot (ccpool status), and a Claude Code statusline (ccpool statusline).


What you get

  • Live usage bars for all three limits (the 5-hour window, the weekly cap, and the weekly Opus cap) with a countdown to each reset. These are pulled from Anthropic's own usage endpoint, so they match what the account enforces.
  • A per-person breakdown: each member's share of each limit, their token count, and whether they're coding right now.
  • A statusline for Claude Code, so you can watch the shared limits without leaving your editor.

Usage that ccpool can't tie to a person (someone using claude.ai in the browser, for example) shows up as unknown. And to be clear about what ccpool is: it observes and reports. It can't raise your limits or block anyone, and it deliberately has no budgets or quotas. It makes the sharing visible and leaves fair use to the group.


How it works

Everyone in the group runs ccpool on their own machine and joins one shared ledger. A small background daemon on each machine checks Anthropic's usage endpoint for the account-wide limits, watches your local Claude Code activity to figure out which part of that usage is yours, and writes both to the ledger under your name. Put everyone's entries together and you get one set of account-wide bars, split by person.

ccpool is read-only: it never proxies your requests or touches your login. It reads the token Claude Code already saved and the transcripts on your disk, and it only counts activity from the moment you start the daemon, not your history.

The ledger lives on a ccpool server. By default that's the hosted one, so there's nothing to deploy, but the server is open source and a group can run its own.


Requirements

  • Node.js ≥ 20 (or Bun)
  • Claude Code installed and signed in on each machine

Quick Start

npm install -g ccpool   # or run it once with: npx ccpool@latest
ccpool                  # onboarding, then the live view

The first run walks you through onboarding: pick a name, a group password everyone in the group shares (it's what lets a machine join), and a member password that's yours alone (it stops anyone else from reporting usage under your name). ccpool detects which Claude account you're on and starts the daemon for you. From then on ccpool opens straight to the live view.

The first person to run it creates the group; everyone after joins with the group password. Onboarding is also scriptable: every prompt has a flag (ccpool init --name sam --yes, with CCPOOL_GROUP_PASSWORD / CCPOOL_MEMBER_PASSWORD for CI).

image > there are multiple views

Usage

# the live shared view (opens onboarding if not set up yet)
ccpool

# print a one-shot snapshot and exit
ccpool status

# compact one-liner for Claude Code's status bar
ccpool statusline

# list everyone in the group
ccpool users

# hand this machine off to another person
ccpool config set name alex

ccpool and ccpool status show the same thing: the overall account tank on top and each person's slice below it.

 ▐▛███▜▌   ccpool · status  ·  you are sam
▝▜█████▛▘  account sam@example.com  ·  3 members (2 active)
  ▘▘ ▝▝    shared db · synced 12s ago · daemon running

overall
  5h      ██████████████████░░░░░░░░░░░░   60%  · resets 4h 02m
  weekly  █████████░░░░░░░░░░░░░░░░░░░░░   30%  · resets 6d 4h

members
   # member    usage                          5h   wk  state
   1 sam ◂     ███████████████░░░░░░░░░░░░░  45%  23%  active
   2 alex      █████░░░░░░░░░░░░░░░░░░░░░░░  15%   8%  active
   3 unknown   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░   0%   0%  idle

Usage is credited to whatever name the machine is set to, so switching the name switches who gets credited. The switch asks for that person's member password.


🖥️ Self-hosting the server

The server ships as its own package, ccpool-server. It's multi-tenant (many groups on one server, each ledger isolated by a group_id in one shared database) and runs on libSQL. One DATABASE_URL covers both a local SQLite file and a remote libsql:// (Turso):

# local file
DATABASE_URL=file:/var/lib/ccpool/server.db PORT=8787 npx ccpool-server

# remote libSQL / Turso
DATABASE_URL=libsql://your-db.turso.io CCPOOL_DB_AUTH_TOKEN=… PORT=8787 npx ccpool-server

Point CLIs at your server with CCPOOL_SERVER_URL=https://your-host when running ccpool init. Run it behind TLS: the bearer token rides on every request, so the CLI refuses plain http:// for anything but localhost. Passwords are stored as salted scrypt hashes and tokens as sha256 hashes; the server never keeps a usable credential.

🗂️ Project layout

packages/
  core/               # runtime-agnostic domain logic: Storage + IngestSink/ViewSource
  storage-libsql/     # the libSQL backend — server-side, the only DB code (file: and libsql://)
  daemon/             # the background observer (poll + jsonl + state.json)
apps/
  cli/                # Commander + Ink CLI (HTTP client only — never opens a DB)
  server/             # multi-tenant server (Hono; libSQL)
  web/                # marketing site (Astro)

Config lives in ~/.ccpool/ (config.json, the per-account state.json, logs, and a 0600 token file holding the server bearer). Override the location with CCPOOL_DIR.

🧪 Development

pnpm build        # build every package
pnpm type-check   # type-check the workspace
pnpm lint
pnpm test         # run the suite on Node
pnpm test:bun     # run the same suite on Bun

CI runs the full suite on both Node and Bun. The storage and registry contract suites and the server integration tests use a libSQL :memory: database, so nothing needs to be provisioned or spun up.


🤝 Contributing

Contributions welcome, whether bugs, features, or docs. See the GitHub repository to get started.

📜 License

Open-sourced under the MIT License.

常见问题

What is ccpool?

ccpool is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by hexxt-git. a cli to equally share a claude code subscription for low budget teams. It has 63 GitHub stars.

Is ccpool safe to use?

ccpool failed SkillsLLM's automated security scan, which flagged one or more high-severity issues. Review the Security Report section carefully before using it.

How do I install ccpool?

Clone the repository with "git clone https://github.com/hexxt-git/ccpool" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is ccpool written in?

ccpool is primarily written in TypeScript. It is open-source under hexxt-git on GitHub, so you can review or fork the full source.

Are there alternatives to ccpool?

Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ccpool against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ui-ux-pro-max-skill

by nextlevelbuilder

12

An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.

119,92012,870Python
CLI 工具ai-skillsantigravity
查看详情

happy

by slopus

Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully featured

23,4501,980TypeScript
CLI 工具
查看详情

claudecodeui

by siteboon

Use Claude Code, OpenCode, Cursor CLI, and Codex on mobile and web with CloudCLI (aka Claude Code UI). CloudCLI is a free open source webui/GUI that helps you manage your Claude Code session and projects remotely.

13,3941,866TypeScript
CLI 工具
查看详情

CRS-自建Claude Code镜像,一站式开源中转服务,让 Claude、OpenAI、Gemini、Droid 订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

12,5471,869JavaScript
CLI 工具
查看详情

ccstatusline

by sirmalloc

🚀 Beautiful highly customizable statusline for Claude Code CLI with powerline support, themes, and more.

12,508545TypeScript
CLI 工具
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情