Time and token tracking for Gemini CLI
Gemini CLI keeps every session on your machine, in ~/.gemini/tmp/<project>/chats. Inlinr reads them and turns them into time, lines written and token counts per project, next to your editor time and Claude Code.
Get it on GitHubSet it up
- 1
Already use the Inlinr plugin for Claude Code? Nothing to install: it reads Gemini CLI sessions on the same machine. Otherwise, with Node 18 or later, download the script:
Terminalcurl -fsSL https://github.com/inlinrhq/inlinr-claude-code/raw/main/dist/index.js -o inlinr.js - 2
Connect this machine, then open the link and approve with GitHub:
Terminalnode inlinr.js activate --editor gemini-cli - 3
Have Gemini CLI send its sessions after each turn:
Terminalnode inlinr.js setup gemini-cli
What gets recorded
- Time spent in each session, per project and branch
- Files edited and lines added or removed by Gemini CLI
- Input, output and cached tokens, and the model
Good to know
- · Never your prompts, the assistant's replies or file contents.
- · Tracking starts when you activate; past sessions are not uploaded.
- · setup adds an AfterAgent and a SessionEnd hook to ~/.gemini/settings.json. Sessions from Gemini CLI 0.38 and older are not read.
- · No cost figure yet for OpenAI and Google models: Inlinr shows a cost only for prices it has checked.
Never file contents, prompts or replies. The full list of what is sent · Tracking Claude Code: terminal, desktop, IDE and cloud
Start tracking Gemini CLI
Free for solo use. Sign in with GitHub, install, and your first session shows up on the dashboard.
No card to start · no source code leaves your machine