lr00rl/ccli

9 stars · Last commit 2026-11-12

Terminal tool for every Claude Code, Codex, Pi and Cursor session on your machine, across accounts: tokens and list-price cost, turn-by-turn logs, subagent trees, rate limits, moving sessions between accounts, and clearing out empty ones.

README preview

# ccli

A terminal tool for every Claude Code, Codex, Pi, and Cursor session on your
machine, across all of your accounts. The Cursor CLI and the Cursor IDE are
separate accounts: the same conversation is not merged across them. It shows
what each session used and what that cost, turn by turn: every prompt you
typed, what the model did with it, which subagents and workflow runs it
started and what they cost. It also shows where your subscription limits
stand, moves a Claude Code session from one account to another and back
without mixing up whose usage is whose, and clears out sessions that hold
nothing.

![ccli stats: totals, daily usage, projects, models, accounts, active hours, session shape and skills](docs/images/stats.png)

An account is one Claude Code config dir: `~/.claude` (shown as `default`) or
`~/.claude-<name>` (shown as `<name>`), the dir you select with
`CLAUDE_CONFIG_DIR`. A Codex home is an account too: `~/.codex` (shown as
`codex`) or `~/.codex-<name>`. Pi's agent dir `~/.pi/agent` is `pi`
(`PI_CODING_AGENT_DIR` for another). The Cursor CLI home `~/.cursor` is
`cursor`. The Cursor IDE user directory is `cursor-ide`. If you keep a

View full repository on GitHub →