tokenlenses
v0.1.2
Published
TokenLens CLI for local AI coding token attribution and cloud-safe sync.
Readme
tokenlenses
TokenLens explains where AI coding tokens were spent. The CLI installs local Claude Code and Codex hooks, runs the local collector, imports existing usage, and links the machine to a TokenLens account.
npx tokenlenses install all --link <code>For local or staging clouds, use the command shown by the web app. It may include:
npx tokenlenses install all --link <code> --cloud-api-base http://127.0.0.1:8080/v1Useful commands:
npx tokenlenses collector
npx tokenlenses status
npx tokenlenses detect
npx tokenlenses import --provider allRaw prompts, code, tool output, terminal output, and raw adapter events stay in the local TokenLens SQLite database. Optional cloud sync sends derived summaries only.
