プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

codexwatch

作者:psychofictバージョン 1.0.2i★ –iパソコンで動く
レジストリ名io.github.psychofict/codexwatch

インストール

概要

作者による説明(英語の原文)

OpenAI Codex usage from your local logs: tokens, API-equivalent cost and plan limits.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 検索・AIの記憶

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • PyPIPythonのuvのインストール(uvxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "codexwatch": {
      "command": "uvx",
      "args": [
        "codexwatch-cli",
        "mcp"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add codexwatch -- uvx codexwatch-cli mcp

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "codexwatch": {
      "command": "uvx",
      "args": [
        "codexwatch-cli",
        "mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "codexwatch": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "codexwatch-cli",
        "mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント psychofict で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

検索・AIの記憶のほかのサーバーとの比較i

  • このカテゴリのほかの7234件のうち0%よりスターが多い
  • このカテゴリのほかの7234件のうち96%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの7234件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

codexwatchは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.0.2)がレジストリに届いたのは昨日です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:Context7, Codebase Memory, Exa

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Context7

作者:upstash

Up-to-date docs for AI agents

パソコンでもクラウドでも★ 64,224MIT3 日前更新
インストール

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

パソコンで動く★ 48,148MIT20 日前更新
インストール

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

クラウドで動く★ 5,213MIT44 日前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

codexwatch shows where your OpenAI Codex usage goes: tokens and their API-equivalent cost per day, project, model, session and tool, your plan's 5-hour and weekly limits as they stand now, and what each percent of those limits cost you. By default it reads only the session logs Codex already writes on your machine, never opens your login, and makes no network request; fetching prices and refreshing codexhop accounts are things you ask for.

pipx install codexwatch-cli  # or: pip install --user codexwatch-cli

codexwatch # the overview in your terminal codexwatch dashboard # the web dashboard

You need nothing beyond the Codex logs already on this machine, so the first command already has your numbers. On Linux, ./install.sh --tray --desktop from a clone also adds an app-menu entry, a desktop shortcut and the tray.

What it does differently

Every response is counted once

Codex gives each model response an id. codexwatch keys every row on it, so a forked session that copies its parent's history, a subagent, a repeated token event or the same logs synced from another machine never add tokens twice. Those are the four ways Codex usage has been overcounted, and each one has a test that reproduces it.

Your plan limits come from your own logs

After every response Codex writes the plan's rate-limit reading into the session log: how full the 5-hour and weekly windows are and when they reset. codexwatch reads those, so the live figures need no network call and no login.

Quota forensics

Because each reading follows a known response, codexwatch can set the tokens spent in a window against how far the window moved. You get an exchange rate (dollars of API usage per percent of your plan, per window and per day) and a flag on any rise your local logs do not account for, such as usage from another machine or from ChatGPT itself.

Fast on large logs

Lines are filtered on their first bytes, so tool output and reasoning text are never decoded, and a growing session is read from where the last scan stopped. On the machine it was built on, 1.85 GB of logs in 59 sessions took about 2 seconds to scan the first time (measured, 2026-11-04); later scans read only new lines.

Prices you can check

Every bundled price was copied from OpenAI's pricing pages, with the date and the page. A model with no published price is shown as unpriced and left out of dollar totals, never counted as $0. Fast mode is priced at the Fast tier, and prompts over 272K tokens at the long-context rate.

The dashboard

codexwatch dashboard opens a page on 127.0.0.1. It works offline, follows your system's light or dark setting, and refreshes as you work.

The top of the page is your plan: both windows with their reset times, the burn rate over the last hour, the time the window fills at that pace, and what you have spent since it reset. The red band below compares the last 30 days of usage with what your plan costs. After that come the totals for the period you pick, a daily chart, models and projects, quota forensics, recent sessions, a weekday-by-hour map, tool calls, and how your work ran (CLI, IDE or codex exec, Standard or Fast, main sessions or subagents).

Light theme and phone

Share card

codexwatch card writes a 1200 × 630 image of your month, and the dashboard's Share card button saves it as SVG or PNG. It leads with what your plan returned. Project names stay off the card unless you pass --projects, because a project name can be a client's name.

Plan prices come from OpenAI's Codex pricing page. Enterprise and Edu have no public price, so set yours with codexwatch config set plan_price 60.

In your menu bar, tray, status bar and prompt

codexwatch bar -f FORMAT prints one line, or a small menu, in the shape each bar expects. It reads only new log lines, so calling it every few seconds is cheap.

WhereHow
macOS menu barInstall SwiftBar or xbar, then copy extras/swiftbar/codexwatch.30s.sh into its plugin folder (or run ./install.sh --swiftbar).
Linux traycodexwatch tray, or ./install.sh --tray to start it now and at every login (--desktop also puts a shortcut on the desktop). A ring shows the 5-hour window; the menu holds both windows, today's value and your codexhop accounts. It uses your distribution's GTK bindings (python3-gi and an AppIndicator package), even when codexwatch itself was installed with pipx.
waybar"custom/codex": {"exec": "codexwatch bar -f waybar", "return-type": "json", "interval": 30}
tmuxset -g status-right '#(codexwatch bar -f tmux)'
polybar, i3blocks-f polybar, -f i3blocks
Shell promptPS1='$(codexwatch bar -f prompt --no-scan) \$ '

Desktop notifications fire as a window passes 75%, 90% and 100%, once each per window. The tray sends them, or run codexwatch notify from a timer.

Ask about it from Codex or Claude

codexwatch mcp is an MCP server, so an agent can check your usage mid-session:

codex mcp add codexwatch -- codexwatch mcp     # OpenAI Codex

claude mcp add codexwatch -- codexwatch mcp # Claude Code

Then ask "how much of my 5-hour window is left?" or "what did this week cost?". The tools are usage_summary, plan_limits, quota_forensics, sessions, daily and budget_status. The server is in the official MCP Registry as io.github.psychofict/codexwatch.

Several ChatGPT accounts

codexhop keeps several ChatGPT logins for Codex and switches between them. When it is installed, codexwatch shows every account's latest reading and the one with the most room, names the account behind each plan window in the quota report, and codexwatch limits --refresh asks codexhop for fresh readings of all of them. codexwatch itself never opens a login file; it runs codexhop for anything that needs one.

codexwatch autohop moves Codex to another of your saved accounts when the live one is nearly spent. It is for accounts that are yours, such as a personal plan and your own seat in a company workspace, never a login someone shared with you; each account keeps its own limits, and OpenAI's terms of use apply to each one. It is off until you run it, and without --apply it only says what it would do:

$ codexwatch autohop

15:41:56 stay work is at 31% of its 5-hour window and 29% weekly; below 92% / 97%, so stay

With --apply it hops when the live account reaches 92% of its 5-hour window or 97% of its week, only to an account with at least 25% of its 5-hour window free, and at most once every 20 minutes. Every number can be changed in the autohop block of config.json. extras/systemd runs it every 3 minutes, and creating a file called autohop.off in the codexwatch folder stops it.

Budgets

codexwatch budget add --name "Monthly" --usd 300 --every month

codexwatch budget add --name "atlas daily" --usd 20 --every day --scope project:atlas-api codexwatch budget add --name "5h headroom" --pct 80 --window 5h codexwatch budget list

A dollar or token budget adds up API-equivalent usage over the local calendar day, week (from Monday) or month, for everything or one project or model. A percent budget watches the plan's own window. Each sends a notification at 80% of its limit (--notify-pct) and again when it is spent. codexwatch budget check exits 1 when any budget is over, for scripts and CI.

Several machines

Copy or sync another machine's ~/.codex (or just its sessions folder) somewhere and add it:

codexwatch sources add ~/sync/laptop-codex --machine laptop

codexwatch machines

Responses that appear in both places are counted once, by their response id.

Commands

Every report takes -p/--period (today, 7d, 30d, week, month, year, all, 2026-10, 2026-10-31), --since and --until, filters (--project, --model, --client, --machine, --account) and --json.

CommandWhat it shows
codexwatchPlan limits, totals for today, 7 days, this month and all time, a 30-day strip, top models and projects
daily, weekly, monthlyTokens (input, cached, output, reasoning) and API value per period; --csv
projects, models, clients, machines, tiers, efforts, agentsThe same, grouped another way
sessionsRecent sessions with title, model, turns, tokens, value and compactions; subagents under their parent
toolsWhich tools Codex called and how often
latencyMedian and 90th-percentile turn time and time to first token, per model
hoursA weekday-by-hour map of when you use Codex
limitsEvery plan window, burn rate, when it fills, and codexhop accounts; --refresh
quotaDollars per percent of each window and day, and rises the logs cannot explain
liveA full-screen view that redraws every few seconds
dashboardThe web dashboard on 127.0.0.1:7878
cardThe share card; --projects, --theme light, --plan-price
barOne line for a status bar or prompt
trayThe Linux tray icon
budgetadd, list, rm, check
notifySend any due notification once
autohopMove to another of your own codexhop accounts when the live one is nearly spent (dry run unless --apply)
mcpThe MCP server
demoThe dashboard on invented data; --terminal for the overview
exportEvery response as CSV or JSON
pricesThe price list; update pulls LiteLLM's, path shows where your overrides go
sourcesadd or rm another machine's logs

| scan | Read new log lin

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く