I
isHeSatoshi/omarchy-tokenbar
Token usage and estimated cost for every coding agent, in the Omarchy bar
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
- Star count
- 0 ★ · isHeSatoshi/omarchy-tokenbar · read from the GitHub search API · (checked 2026-11-13 20:00:50)
- Source
- read directly from its GitHub page · type: open-source project
- Harvest history
- first seen 2026-11-06 · last seen 2026-11-14 · seen 9× · listed by 1 sources
- Score
- score 103 · 1 sources · repo
FAQ (answers come from our records)
Who is it for?
We filed it under these tags: 开源项目. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository
isHeSatoshi/omarchy-tokenbar;first catalogued 2026-11-06;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.# Tokenbar
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Token usage and estimated cost for every coding agent on the machine, in the
Omarchy bar.
The bar shows one number: what today cost. Click it and the dashboard opens
with the same data Tokenbar's desktop app shows — ranges, a daily chart, a
breakdown per agent and per model, and a detail view for any agent you pick.
Nothing is uploaded and nothing is scraped: the plugin reads the session logs
the agents already write to disk.
## Install
bash
omarchy plugin add https://github.com/isHeSatoshi/omarchy-tokenbar.git --enable
Then pick a spot in the bar. --enable places it where the manifest asks
(the right section, beside the tray); to move it:
bash
omarchy bar move io.github.ishesatoshi.tokenbar --before omarchy.monitor
## What it reads
Every source is a local file. If a tool has never run on the machine, its
source is skipped and the panel's source count stays honest about it.
| Agent | Path |
| Droid | ~/.factory/logs/droid-log-single.log, ~/.factory/sessions/ |
| Antigravity | ~/.gemini/antigravity-cli/brain/ |
| Claude Code | ~/.claude/projects//.jsonl |
| Codex | ~/.codex/sessions//.jsonl |
| OpenCode | ~/.local/share/opencode/opencode.db |
| Gemini CLI | ~/.gemini/tmp//chats/session-.json |
| Anything Omarchy tracks | ~/.local/state/omarchy/agents/usage/.json |
The Omarchy records are the fallback: an agent with its own parser here is not
counted twice, and one without a parser still shows up through what Omarchy
recorded for it.
## How cost is estimated
Token counts are read from each agent's own logs. Cost is those counts times a
built-in price table per million tokens, split into input, output, cache read
and cache write, the same way ccusage prices a session. Models the table does
not know are still counted in the token totals and listed at the bottom of the
panel as unpriced, so a missing price never silently changes the token number.
The price table lives in bin/tokenbar-scan as PRICES, one regex per model
family, and was checked against LiteLLM's published per-model prices. Prices
change; the table is a snapshot and the totals are an estimate, not a bill.
## Settings
Each setting is a key on the widget in ~/.config/omarchy/shell.json:
| Key | Values | Default | Meaning |
| display | cost, tokens, both | cost | What the bar readout shows |
| range | today, 7d, 30d | today | Window the bar readout covers |
| refreshSec | 30–3600 | 120 | How often the scanner checks for appended log lines |
| showIcon | true, false | true | Draw the chart glyph beside the value |
bash
omarchy bar set io.github.ishesatoshi.tokenbar display both
omarchy bar set io.github.ishesatoshi.tokenbar range 7d
Clicking with the middle button cycles display without opening a file, and
the right button forces a rescan.
## The panel
Ranges: 1D, 7D, 30D, 90D, 1Y, plus week/month/quarter/year to date.
Calendar: pick any day or any month the logs cover, or click a bar in the
chart to drill into it.
Agents: rows with their share of the range's spend. Click one for its
own cost, cost per million tokens, cache hit rate, cost per active day,
sessions, prompts, chart, and models.
Models: the top models in range, or the full list behind All models.
Omarchy bar.
The bar shows one number: what today cost. Click it and the dashboard opens
with the same data Tokenbar's desktop app shows — ranges, a daily chart, a
breakdown per agent and per model, and a detail view for any agent you pick.
Nothing is uploaded and nothing is scraped: the plugin reads the session logs
the agents already write to disk.
## Install
bash
omarchy plugin add https://github.com/isHeSatoshi/omarchy-tokenbar.git --enable
Then pick a spot in the bar. --enable places it where the manifest asks
(the right section, beside the tray); to move it:
bash
omarchy bar move io.github.ishesatoshi.tokenbar --before omarchy.monitor
## What it reads
Every source is a local file. If a tool has never run on the machine, its
source is skipped and the panel's source count stays honest about it.
| Agent | Path |
| Droid | ~/.factory/logs/droid-log-single.log, ~/.factory/sessions/ |
| Antigravity | ~/.gemini/antigravity-cli/brain/ |
| Claude Code | ~/.claude/projects//.jsonl |
| Codex | ~/.codex/sessions//.jsonl |
| OpenCode | ~/.local/share/opencode/opencode.db |
| Gemini CLI | ~/.gemini/tmp//chats/session-.json |
| Anything Omarchy tracks | ~/.local/state/omarchy/agents/usage/.json |
The Omarchy records are the fallback: an agent with its own parser here is not
counted twice, and one without a parser still shows up through what Omarchy
recorded for it.
## How cost is estimated
Token counts are read from each agent's own logs. Cost is those counts times a
built-in price table per million tokens, split into input, output, cache read
and cache write, the same way ccusage prices a session. Models the table does
not know are still counted in the token totals and listed at the bottom of the
panel as unpriced, so a missing price never silently changes the token number.
The price table lives in bin/tokenbar-scan as PRICES, one regex per model
family, and was checked against LiteLLM's published per-model prices. Prices
change; the table is a snapshot and the totals are an estimate, not a bill.
## Settings
Each setting is a key on the widget in ~/.config/omarchy/shell.json:
| Key | Values | Default | Meaning |
| display | cost, tokens, both | cost | What the bar readout shows |
| range | today, 7d, 30d | today | Window the bar readout covers |
| refreshSec | 30–3600 | 120 | How often the scanner checks for appended log lines |
| showIcon | true, false | true | Draw the chart glyph beside the value |
bash
omarchy bar set io.github.ishesatoshi.tokenbar display both
omarchy bar set io.github.ishesatoshi.tokenbar range 7d
Clicking with the middle button cycles display without opening a file, and
the right button forces a rescan.
## The panel
Ranges: 1D, 7D, 30D, 90D, 1Y, plus week/month/quarter/year to date.
Calendar: pick any day or any month the logs cover, or click a bar in the
chart to drill into it.
Agents: rows with their share of the range's spend. Click one for its
own cost, cost per million tokens, cache hit rate, cost per active day,
sessions, prompts, chart, and models.
Models: the top models in range, or the full list behind All models.
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/ishesatoshi-omarchy-tokenbar/)
- Source
- github · https://github.com/isHeSatoshi/omarchy-tokenbar
- Browse by field
- Open source
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.