ccg-router / Tutorials

Track Claude Code and Codex CLI usage locally

When AI coding tools share one local router, you can record useful request metadata without adding a hosted analytics service. ccg-router writes usage records to a local SQLite ledger.

What the ledger is for

What the ledger does not store

The ledger does not store provider API keys and does not store prompts. Keep provider keys in local environment variables or local config.

Health check

ccg-router doctor

The doctor command checks config, ledger, and registry health. The read-only UI is available at http://127.0.0.1:17180/ui/.

Search fit

This page is for users looking for Claude Code usage tracking, Codex CLI usage tracking, local AI coding usage ledger, or local LLM router observability.