Skip to content
Grok

Tokmeter — AI Agent Usage & Cost for Grok

io.github.sriinnu/tokmeter

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

client:Grok transport:stdio runtime:npm

Install Tokmeter — AI Agent Usage & Cost in Grok

.mcp.json (in your project root)

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

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Tokmeter — AI Agent Usage & Cost in other clients