ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Tokmeter — AI Agent Usage & Cost

โดย sriinnuรุ่น 1.21.0i★ –iรันบนเครื่อง
ชื่อใน registryio.github.sriinnu/tokmeter

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Tokens and cost for Claude Code, Codex and 22 more AI coding agents, from local session files.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "tokmeter": {
      "command": "npx",
      "args": [
        "-y",
        "@sriinnu/tokmeter-mcp",
        "serve"
      ]
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add tokmeter -- npx -y @sriinnu/tokmeter-mcp serve

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "tokmeter": {
      "command": "npx",
      "args": [
        "-y",
        "@sriinnu/tokmeter-mcp",
        "serve"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "tokmeter": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@sriinnu/tokmeter-mcp",
        "serve"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub sriinnu ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 32599 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 92% ของอีก 32599 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 32599 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Tokmeter — AI Agent Usage & Cost ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.21.0) เข้า registry เมื่อวานซืน

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Zendesk

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

รันบนคลาวด์★ 211อัปเดต เมื่อวาน
ติดตั้ง

Zendesk

โดย pipeworx-io

Zendesk MCP Pack — tickets, users, organizations via OAuth.

บนเครื่องหรือคลาวด์อัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

Tokmeter

Every AI coding agent you run, on one ledger.

Tokmeter reads the session files your agents already write to disk and turns them into token and cost totals by project, model, provider, and day — across 24 agents and editors, including Claude Code, Codex, Gemini CLI, Cursor, Muse, Cline, Augment, Copilot CLI, Kimi Code and DeepSeek Harness. An agent it has no built-in parser for can register a path and emit a simple usage line to show up too. No API keys, no telemetry, no account. Your data never leaves the machine.


Why

Every agent bills you separately and shows you its own slice. Claude Code knows what Claude Code cost. Codex knows what Codex cost. Nothing knows what *today* cost, or which project is quietly burning the most, or whether the model you switched to is actually cheaper for the work you do.

Tokmeter answers that from data already on your disk. It parses each agent's local session logs, prices them against a live model catalog, and keeps an append-only daily ledger so history survives even after the agents rotate their own logs away.

npx @sriinnu/tokmeter --today

Docs and the theme gallery: [tokmeter.srinivas.dev](https://tokmeter.srinivas.dev).

What it looks like

CLI — usage by project, model and providerDigest — a weekly report card

macOS menubar — today's tokens and cost, always visible

There is also a terminal UI (tokmeter-tui), a local web dashboard, a statusline for Claude Code, and an MCP server so an agent can query its own spending.

Install

Requires Node.js 22+. Tools that keep history in SQLite need 22.13+, and DeepSeek Harness logs need 22.15+. Reading session files needs no provider credentials. Pricing fetches public catalogs, and --light skips that for one command.

# Try it without installing

npx @sriinnu/tokmeter --today

Install the CLI, and the daemon/MCP server

npm install -g @sriinnu/tokmeter @sriinnu/tokmeter-mcp

PackageContents
@sriinnu/tokmeterCore API, CLI, and terminal UI
@sriinnu/tokmeter-mcpMCP server, daemon, statusline, and live terminal UI

packages/core, packages/cli, and packages/tui are private workspace packages bundled into @sriinnu/tokmeter. packages/web is a separate private workspace app run from source.

To keep the daemon always-on (so the menubar and statusline survive reboots), install the launchd agent once: tokmeter-mcp daemon install-agent (macOS). It auto-starts at login and respawns on crash.

Claude Code and Codex are the primary validation targets. See provider compatibility for the other parsers and their known limits.

CLI

tokmeter --today

tokmeter models --project my-app --json tokmeter daily --week tokmeter projects tokmeter stats --month tokmeter digest --period week tokmeter pricing sonnet

Filters include --project, --claude, --codex, --week, --month, and --since YYYY-MM-DD --until YYYY-MM-DD. Use --json for machine-readable output and --light for token-only reports.

  • Aliases: merge display names, tag projects, or hide them from lists.
  • Backup and restore: portable snapshots, cleanup preview, restore. Cleanup deletes source files; keep the confirmation and backup steps.
  • CLI reference: every command with examples.
  • How the numbers work: what each bucket means and where estimates enter.

TypeScript API

The root export provides the core API. Convenience query helpers use the /cli subpath.

import { TokmeterCore } from "@sriinnu/tokmeter";

import { loadTokmeterSummary } from "@sriinnu/tokmeter/cli";

const core = new TokmeterCore(); await core.scan({ providers: ["codex", "claude-code"], today: true }); const models = core.getModelCosts(); const daily = core.getDailyBreakdown();

const summary = await loadTokmeterSummary({ week: true, light: true });

Reuse one core scan when querying several breakdowns. See integration guidance, core API usage, and the tokmeter agent skill (npx skills add sriinnu/tokmeter-skill --skill tokmeter -g) for agent-facing integration instructions.

Daemon, MCP, and statusline

tokmeter-mcp daemon start

tokmeter-mcp daemon status tokmeter-mcp serve # MCP server over stdio tokmeter-mcp statusline # one statusline tick tokmeter-mcp live # live terminal UI

The daemon uses local HTTP port 9877 for queries and WebSocket port 9876 for live registration. Private reads and WebSocket connections require the per-user token in ~/.tokmeter/daemon/daemon.token; /api/ready is the public health check. The macOS app, statusline, and MCP server read that credential at use time. Daemon commands belong to @sriinnu/tokmeter-mcp; install it for these surfaces.

MCP tools use the tokmeter_ prefix and cover usage queries, comparisons, forecasts, export, and cleanup previews. All 22 are read-only: deleting and restoring sessions stays in the CLI and TUI, where you confirm it. See the MCP tool reference for every tool grouped by purpose, and the package MCP README for configuration and programmatic exports.

tokmeter-mcp editors lists installer targets. tokmeter-mcp install-mcp and tokmeter-mcp install-statusline write editor configuration; inspect the generated settings for your editor. For Claude Code, register the MCP server with claude mcp add tokmeter --scope user -- npx -y @sriinnu/tokmeter-mcp serve (from 1.15.0, install-mcp runs claude mcp add itself; 1.14.1 and earlier wrote the entry to ~/.claude/settings.json, which Claude Code doesn't read). See architecture for registration, authentication, refresh, storage, and daemon lifecycle details.

Terminal and web interfaces

# After installing @sriinnu/tokmeter

tokmeter-tui

Without a global install

npx -p @sriinnu/tokmeter tokmeter-tui

The terminal UI supports overview, model, daily, statistics, and cleanup views. See its keys and commands.

Run the web workspace from a source checkout:

bun install

bun run dev:web

Vite opens the dashboard in your browser on 127.0.0.1:3000 with a per-launch session link; a plain request to that port can't read your usage. See web setup and data sources.

macOS app

Release builds target Apple silicon and macOS 14+. Node.js 22+ with npx is also required for the local daemon.

Install it with brew install --cask sriinnu/homebrew-tap/tokmeterbar, or download TokmeterBar- .zip from GitHub Releases and move it to /Applications. The app starts the version-matched @sriinnu/tokmeter-mcp daemon itself when none is running, and updates through Sparkle.

The popup gives today's tokens and estimated API cost equal prominence, with models and projects below. Chart hover cards show exact daily tokens and cost. Usage details expands lifetime totals, trends, and signals. Themes: Terminal, Paper, Prism, Lagoon, Carbon, Glass, and (since 1.15.0) the instrument themes Meter, Pump, Rams, Deck, and Passbook. A $/M button in the models header shows each model's list price per million tokens (input, output, cache read, cache write) and where that price came from, and the dashboard port is configurable. The Hub provides larger breakdowns and settings. Settings → Open web dashboard starts its local server on demand; Stop web dashboard or quitting the app stops it.

See macOS build and runtime details, first-use checks, and popover validation. The completion tracker records remaining fresh-machine, reliability, update, accounting, accessibility, and trial gates.

The synthetic walkthrough documents how the example images were generated; it is not a capture of a current local candidate.

Documentation

  • MCP tool reference — all 22 tokmeter_ tools, grouped
  • Consuming tokmeter — MCP, daemon HTTP, CLI, and in-process integration
  • How the numbers work — bucket semantics and where estimates enter
  • Backup, snapshot & restore — the confirmation/backup model and cross-machine restore
  • Troubleshooting — daemon, bar updates, "shrinking" history, performance
  • Architecture — daemon lifecycle, storage, refresh
  • Security and privacy — what is read, what leaves the machine, and how releases are signed

Privacy

Tokmeter reads session files your agents already wrote, sends no credentials and no telemetry, and requires no account. Your usage data doesn't leave the machine.

It does download public price catalogs: the daemon refreshes them about daily on its own, and --light skips that only for the command it's on. The macOS app also checks GitHub for updates. Security and privacy lists every host and how to check.

Support

Tokmeter is free and open source. If it saves you money, consider chipping in to keep it maintained:

License

AGPL-3.0-only. See licensing notes for what that means if you embed Tokmeter in another product.

ถาม PopNx