openclaude-improved
OpenClaude is an open-source CLI coding agent that runs on any platform and supports a wide range of LLM providers, offering the same tools and workflows as Claude Code.
It requires no API keys or network access, runs entirely offline using existing session logs, and provides a lightweight dashboard built with Python's standard library.
tokentab reads the session logs that Claude Code, Codex, Cursor and Gemini CLI already leave on disk and adds up token usage and cost - broken down by model, by project, by day, and by the kind of work each session was doing. It runs entirely locally: no account, no API key, nothing leaves your machine.
Clone the repo and install it into your environment:
git clone https://github.com/sequilade/tokentab
cd tokentab
pip install -e .
tokentab
That puts a tokentab command on your path. You can also run it without installing at all - see From source.
It understands three tools out of the box, plus a Cursor slot that's wired up but not finished (more on that below).
| Tool | Where its logs live |
|---|---|
| Claude Code | ~/.claude/projects/**/*.jsonl |
| Codex | ~/.codex/sessions/**/rollout-*.jsonl |
| Gemini CLI | ~/.gemini/tmp/**/session-*.json |
| Cursor | (stub - see below) |
If a tool isn't installed, it's just skipped. You'll only ever see the tools you actually use.
The bare command gives you the last 7 days across everything:
tokentab
Some other things it does:
tokentab today # just today
tokentab month # this calendar month
tokentab -p all # everything you've ever run
tokentab --provider claude # one tool only
tokentab --project myapp # one project
tokentab --from 2026-06-01 --to 2026-06-15 # a specific window
tokentab --json | jq . # machine-readable, pipe it wherever
tokentab web # the same thing, in a browser, with charts
Colour drops automatically when you pipe the output somewhere, so pasting into a PR or a chat doesn't drag a load of escape codes along with it.
tokentab web
Opens http://localhost:4747 and lays the same numbers out as a monthly statement - total up top, everything itemised below. It reads from disk on every request (the data's tiny, so there's no reason to cache and risk showing you something stale) and binds to localhost only - nothing gets uploaded, same as the CLI. It doesn't even pull fonts from a CDN; it uses whatever serif and mono your system already has, so it works with the network unplugged. Pick a port with --port, or pass --no-open i
A CLI that reads Claude Code, Codex, and Gemini CLI session logs and works out how much they cost, by model, project, and day.
Similar projects matched by category, topics, and programming language.
OpenClaude is an open-source CLI coding agent that runs on any platform and supports a wide range of LLM providers, offering the same tools and workflows as Claude Code.

A collection of notes on building coding agents, derived from the production development of the desktop agent Reina, with each mechanism simplified into a zero-dependency, single-file Node.js demo.
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.