codex-usage-tracker — плагин для Claude Code: установка
Плагин codex-usage-tracker для Claude Code собирает локальную статистику токенов Codex и выдаёт сводки, детали сессий, CSV и дашборды.
MIT ★ 1 596 обновлён 2026-10-29
/plugin marketplace add hashgraph-online/awesome-codex-plugins
/plugin install codex-usage-tracker@awesome-codex-pluginsЧто делает codex-usage-tracker
Плагин codex-usage-tracker читает локальные метаданные сессий Codex и отдаёт MCP-инструменты для сводок, просмотра отдельных сессий, экспорта CSV и создания дашбордов. Данные остаются локальными, а результаты строятся на фактах из журналов сессий.
Для запуска нужен Python-пакет codex-usage-tracking==0.28.0, установленный через pipx. В Claude Code плагин добавляется из marketplace, а после установки нужна новая задача, чтобы обнаружился каталог MCP-инструментов. Сервер использует SQLite и не открывает базу данных нового рантайма при переходе на следующую версию.
Какие задачи решает
- сводить расход токенов по локальным сессиям Codex
- просматривать детали отдельной сессии и её вызовов
- выгружать данные об использовании в CSV
- создавать дашборд по журналам Codex
Примеры запросов агенту
- Собери сводку расхода токенов Codex за последние сессии.
- Покажи детали сессии с её вызовами инструментов и ресурсами.
- Экспортируй данные об использовании Codex в CSV и создай дашборд.
Как установить codex-usage-tracker
Через маркетплейс плагинов
/plugin marketplace add hashgraph-online/awesome-codex-plugins/plugin install codex-usage-tracker@awesome-codex-pluginsПо шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой
Вопросы о codex-usage-tracker
Как установить codex-usage-tracker в Claude Code?
После установки начни новую задачу Claude Code.
Что делает codex-usage-tracker?
Плагин анализирует локальные метаданные сессий Codex через MCP-инструменты. Он формирует сводки, показывает детали сессий, экспортирует CSV и создаёт дашборды.
Что нужно для работы codex-usage-tracker?
Нужен Python-пакет codex-usage-tracking==0.28.0, установленный через pipx, и локальные журналы сессий Codex. После установки плагина нужна новая задача, чтобы Claude Code обнаружил его каталог инструментов.
Исходный текст
codex-usage-tracker · MIT
# Codex Usage Tracker [](https://pypi.org/project/codex-usage-tracking/) [](https://pypi.org/project/codex-usage-tracking/) [](https://github.com/douglasmonsky/codex-usage-tracker/actions/workflows/ci.yml) [](LICENSE) Codex Usage Tracker is a local usage-data product for answering questions about how Codex work consumes tokens, time, tools, allowance, credits, and cost. It turns local session metadata into exact, bounded facts and stable evidence that an agent can explore and explain. ## Current release and next direction Version 0.28.0 is the current public release. Its six-tool MCP surface, Evidence Console, and SQLite kernel remain supported while the replacement is qualified. The next product is a clean, agent-first kernel rather than a larger dashboard: - fast recent-history setup with explicit 24-hour through all-time coverage; - incremental reuse on every later invocation; - exact session, turn, call, tool, resource, allowance, token, credit, and cost facts; - compact named queries and stable evidence selectors; - agent-owned interpretation instead of server-authored narrative findings; - installed Codex qualification measured for latency, MCP calls, response bytes, model tokens, accuracy, and usefulness. The 0.28 code remains a frozen oracle during the rewrite and is removed before the clean replacement release. The new runtime does not migrate or open its database. Start with the [documentation authority](docs/INDEX.md), read the [product direction](docs/decisions/PRODUCT_DIRECTION.md), or follow the [clean-cutover roadmap](docs/roadmap/AGENT_FIRST_CLEAN_CUTOVER.md). Progress is tracked in the [checkbox ledger](docs/roadmap/TASK_PACKETS.md), with one complete contract per file under [`docs/roadmap/tasks/`](docs/roadmap/tasks/). ## Install 0.28.0 Install the Python runtime into an isolated executable environment, then add the matching tagged repository as a Codex plugin marketplace: ```bash pipx install "codex-usage-tracking==0.28.0" codex plugin marketplace add douglasmonsky/codex-usage-tracker --ref v0.28.0 codex plugin add codex-usage-tracker@codex-usage-tracker ``` The plugin launches the `codex-usage-tracker` executable from the pipx environment. Start a fresh Codex task after installation so it discovers the new plugin tool catalog. ## Develop ```bash python3 -m venv .venv .venv/bin/python -m pip install -e ".[dev]" just v ``` Use synthetic fixtures only. Do not commit or share real Codex logs, prompts, responses, tool-output bodies, credentials, private paths, or local databases.
© Douglas Monsky · MIT · hashgraph-online/awesome-codex-plugins