Claudlytics: Self-Hosted Dashboard for Tracking Claude Code Token Usage and Costs

What Claudlytics Does
Claudlytics is a self-hosted dashboard that tracks Claude Code token usage and costs in real time. It's specifically useful for developers running Claude Code headlessly on remote VPS or servers where the desktop app's local machine tracking isn't sufficient.
How It Works
Claude Code writes every conversation to ~/.claude/projects/**/*.jsonl files. Claudlytics reads these files, parses the token usage, and calculates costs using Sonnet 4.6 pricing. No Claude API calls are needed for basic usage — everything is processed locally.
Dashboard Features
- Current session token counts and cost
- Rolling 5-hour window usage with reset countdown (aligns with Claude Pro/Max session limits)
- Today / Last 7 days / Billing cycle breakdowns
- Session and weekly message counts
Setup and Installation
Setup requires three commands:
git clone https://github.com/iansugerman/Claudlytics.git
cd Claudlytics
node server.jsAfter running these commands, open http://localhost:3031 in your browser.
Security and Remote Access
The server binds to 127.0.0.1 only, so it's never publicly exposed. For remote server access, use an SSH tunnel:
ssh -L 3031:localhost:3031 user@your-serverThen browse to localhost:3031 on your local machine.
Production Deployment
Claudlytics can run as a systemd service for background availability. Full instructions are available in the GitHub repository's README.
📖 Read the full source: r/ClaudeAI
👀 See Also

Jeeves: TUI for Browsing and Resuming AI Agent Sessions
Jeeves is a terminal user interface that lets you search, preview, and resume AI agent sessions from Claude Code, Codex, and OpenCode in a single view. It's written in Go and available via multiple package managers including Homebrew, Nix, and Go install.

Practical Findings from 11 Multi-Agent Software Builds Without Programmatic Scaffolding
Analysis of 11 autonomous multi-agent builds shows scope enforcement works mechanically (20/20 success) not via prompts (0/20), orchestration costs are dominated by memory re-ingestion (~95% of input spend), and worker model capability creates 9.8x throughput gaps.

agentcache: Python Library for Multi-Agent LLM Prefix Caching
agentcache is a Python library that enables multi-agent LLM frameworks to share cached prompt prefixes, achieving up to 76% cache hit rates and cutting inference time by more than half in tests with GPT-4o-mini.

bareguard: A Lightweight Safety Gate for AI Agents — Now on npm
bareguard v1.0 is a ~1000-line, single-dependency safety layer for AI agents that blocks destructive actions (rm -rf, DROP TABLE) and enforces budget limits with human escalation. Part of the bare suite, live on npm.