Token and cost tracking for AI coding agents. Reads the local session logs of Claude Code, Codex, Gemini CLI, Cursor and 20+ more. No API keys, no telemetry, nothing leaves your machine.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add tokmeter-ai-agent-usage-cost -- npx -y @sriinnu/tokmeter-mcp~/.codex/config.toml
[mcp_servers.tokmeter-ai-agent-usage-cost]
command = "npx"
args = ["-y", "@sriinnu/tokmeter-mcp"]
# codex mcp add tokmeter-ai-agent-usage-cost -- npx -y @sriinnu/tokmeter-mcp~/.cursor/mcp.json
{
"mcpServers": {
"tokmeter-ai-agent-usage-cost": {
"command": "npx",
"args": [
"-y",
"@sriinnu/tokmeter-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"tokmeter-ai-agent-usage-cost": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sriinnu/tokmeter-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tokmeter-ai-agent-usage-cost": {
"command": "npx",
"args": [
"-y",
"@sriinnu/tokmeter-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"tokmeter-ai-agent-usage-cost": {
"command": "npx",
"args": [
"-y",
"@sriinnu/tokmeter-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"tokmeter-ai-agent-usage-cost": {
"command": "npx",
"args": [
"-y",
"@sriinnu/tokmeter-mcp"
]
}
}
}