Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
tokidex
tokidex is a macOS terminal UI for inspecting local Codex token usage.
It reads local Codex state only: no network calls, no Codex auth token access, and no billing guesses.
Highlights
- View Codex token usage by session.
- Switch between today, last 7 days, and all local history.
- Inspect input, cached input, output, reasoning output, and total tokens when local JSONL details are available.
- Search sessions by title, model, cwd, or id.
- Refresh in place from a small terminal UI.
Data Sources
tokidex resolves the Codex home directory in this order:
--codex-home <path>$CODEX_HOME~/.codex
It reads state_5.sqlite for session summaries and totals, then parses each
session rollout_path JSONL file for the latest token_count event. When JSONL
details are missing or malformed, the UI falls back to the SQLite total.
Usage
Install from crates.io:
cargo install places the binary in ~/.cargo/bin. If tokidex is not found
after installation, add Cargo's bin directory to your shell PATH:
Update an existing install:
Use privacy mode before sharing screenshots or streaming:
Privacy mode hides full session titles, local paths, rollout JSONL paths, full session ids, and rate limit details. Token counts and model names remain visible.
Remove an old local/path install, then reinstall from crates.io:
Run without installing:
Install from a local checkout for development:
Safety
tokidex is a local read-only viewer. It reads Codex's local SQLite and JSONL
state files, never reads auth.json, and does not send usage data anywhere.
For public screenshots, use --privacy.
Keys
q: quitUp/Downork/j: move selection/: searchEsc: clear searchd: todayw: weeka: allr: refresh
Verification