OpenTab CLI
A terminal and browser viewer for coding agent spend: sessions by turn, subagent and context window, with API price estimates.
- 99 ★ on the repository
- Last commit
- MIT
Minimal access
Why this level
- Reads your agents' local history, including prompts and tool calls, but read-only.
Install
- Works in
In your terminal, with SkillFoxx CLI
npx skillfoxx add cli/opentabDetects the agents on your machine, shows the access level and pins the version.
Other ways to install
Access and checks
How we reviewMinimal accessThe tool runs nothing and makes no network calls.
- Reads your agents' local history, including prompts and tool calls, but read-only.
This is third-party code. Review the repository files before installing.
What it does
OpenTab brings the history your tools already keep into one interactive browser. You can drill from a month into a project, a session, its subagents and individual turns. The Context view shows how the window filled and where compactions happened. It works with Claude Code, Codex, OpenCode, Copilot and more. For subscription sessions that record zero dollars, OpenTab adds labeled API-equivalent estimates, and the `$` key switches to recorded spend. Token economics compares each token type's share of volume and of cost, and model comparison re-prices your actual usage at another model's rates. Agent files are opened read-only. `opentab web` serves a browser view on localhost, and a local MCP server gives programmatic access.
Who it is for. Developers and team leads working with several coding agents who want to understand where tokens, time and money go.
Good fit when
- The monthly bill grew and the most expensive session must be found and broken down by turn.
- An AI agent subscription should be compared with API-priced usage.
- A session bloated and you need to see what filled the context window and when it compacted.
- Usage should be re-priced at another model's rates to decide whether to switch.
Not a fit when
- You need exact invoice totals: API-equivalent estimates ignore subscriptions, discounts and credits.
- You need server-side spend tracking for a whole organization: OpenTab reads local agent files.
- An agent tool keeps no history on disk, so there will be no details.
Example request
Show last week's most expensive sessions, break down the costliest by subagent and turn, and say what filled its context.Limitations
API-equivalent estimates are labeled as estimates: a provider invoice may include subscriptions, discounts, credits and markups that local records cannot know. Depth of analysis depends on what each tool records, and missing data is shown as missing. Python 3.9 or newer is required, and native Windows adds `windows-curses`. The price catalog is bundled, while price refresh and remote pulls from machines you choose reach the network only on your command.
How to disable. Remove the package with `pipx uninstall opentab-ai` or `brew uninstall opentab`. OpenTab's own preferences, notes, caches and exports are stored separately, and it never changed agent files.
FAQ
How do I install OpenTab?
With `pipx install opentab-ai`, then run `opentab`. `brew install hamidi-dev/tap/opentab` and `pip install --user opentab-ai` also work.
How do I open it in a browser?
Run `opentab web` and the interface opens on localhost. For a single-file report use `opentab web --html full.html`.
What if my tool is missing from the list?
Run `opentab doctor`: it reports which tools were found and what is missing.
Does any data leave my machine?
Not without your command. Local browsing needs no account and sends no telemetry, and the web interface binds to localhost by default.
Which tools does OpenTab read?
Claude Code, Codex, OpenCode, Copilot and more. The full list is in the "The tools it reads" section, and `opentab doctor` finds what is missing.
Discussion
No questions or reviews yet.
Related
CLI toolsReads local logs of Claude Code, Codex, Cursor and other agents and shows token spend, time and failures in a TUI
Local dashboard for tokens, cost and tool calls across Claude Code, Codex, Gemini CLI and many other coding agents.
A terminal monitor for Claude Code, Codex CLI and OpenCode sessions: tokens, context window, rate limits and ports in real time
A TUI that shows what Claude Code, Codex, Gemini CLI and opencode do in a project: the open file, last-commit diff, live commands
An OpenCode TUI sidebar plugin that shows live token cache hit rate, session cost and the money the cache saved.
Session monitor for Claude Code, Cursor, Codex and six more agents in a terminal, window or HTTP API, with chat cleanup and search
README in short
Start with a recent day, open Sessions and pick one you remember. Enter drills in, Esc steps back and `?` shows the keys. `opentab --demo` uses synthetic data for screen sharing.