Tracking Claude Code, Codex and Gemini CLI: terminal, desktop, IDE and cloud

How to install the inlinr plugin for Claude Code once and have it cover the terminal, the desktop app, the IDE extensions, Codex and Gemini CLI, and the one line cloud sessions need because they do not install plugins.

Setup5 min readBy

: From plugin 0.9.0, /inlinr:activate asks before it adds its hooks to your Claude Code settings: the plugin runs nothing until you agree.

Installing the inlinr plugin for Claude Code, with the terminal, desktop app, IDE extensions and cloud sessions tracked
In this guide

The inlinr plugin for Claude Code reads the session files Claude Code already writes on your machine, and those of Codex and Gemini CLI, and turns them into time, token counts and assistant-written lines. It is installed once per machine. What differs between the terminal, the desktop app, an IDE and a cloud session is only where the assistant runs.

Which surfaces need what

The terminal, the desktop app and the VS Code and JetBrains extensions all run Claude Code on your own machine and share its plugins. Cloud sessions run in a fresh container that installs none.

Where the assistant runsWhat it needs
Terminal, desktop app, VS Code, JetBrainsOne install and /inlinr:activate, once per machine
Claude Code on the webOne line in the environment's setup script, once
Codex and Gemini CLI, beside Claude CodeNothing more: the same plugin reads their sessions
Codex or Gemini CLI aloneThe plugin's script, run from that assistant's own hook
Each surface, and the steps below that set it up.

Terminal

Add the marketplace and install the plugin:

Terminal
claude plugin marketplace add inlinrhq/inlinr-claude-code
claude plugin install inlinr@inlinr --scope user

Keep --scope user. It installs the plugin for every project on the machine. Installed for one project only, the plugin runs in that project's sessions and nowhere else, which looks exactly like an activation that only works sometimes.

Then, once, inside any Claude Code session:

Claude Code
/inlinr:activate

It prints a link and a code. Open the link, sign in with GitHub and approve the device. The token is saved in ~/.inlinr. Claude then asks to add inlinr's hooks to your ~/.claude/settings.json: they run the sync in the background after your prompts, tool calls and replies. Say yes, and from the next session on every session on this machine is tracked.

The plugin runs nothing until you agree. From version 0.9.0 it declares no hook of its own: the hooks live in your settings, marked --from claude-code, where you can read them. Updates of the plugin reach them without activating again, and /inlinr:deactivate takes them out. A machine set up before 0.9.0 runs /inlinr:activate once after updating.

One connection per machine. The token is the machine's, shared with the inlinr extension for VS Code, Cursor and Windsurf and with the inlinr command. If one of them is already signed in on this machine, /inlinr:activate asks for no approval: it only adds the hooks, and /inlinr:status says connected (this machine's). Activating from here signs them in too. On a machine already connected, /inlinr:activate keeps its account instead of asking for a new approval; to move the machine to another account, ask for activation with --replace. From version 0.7.0 of the plugin.

Tracking starts when you activate, not before. Claude Code keeps every transcript it has written, and uploading months of past work the moment you connect is not something anybody asks for by activating a plugin.

Desktop app

If you installed and activated from the terminal, there is nothing to do: the desktop app uses the same plugins and the same ~/.inlinr token.

Without a terminal, install from the app's /plugin menu: add the marketplace inlinrhq/inlinr-claude-code, then install inlinr. The desktop chat has no shell, so ask in plain words instead of typing commands. “Connect inlinr” runs the activation and gives you the link; “Is inlinr tracking?” runs the status check.

VS Code and JetBrains

The Claude Code extensions for VS Code and JetBrains IDEs drive the same Claude Code on your machine, so a plugin installed with --scope user already runs there. Nothing else to install.

The Claude Code plugin tracks what the assistant does. To track your own typing in the editor as well, install the inlinr extension for VS Code, which also works in Cursor and Windsurf. The two are separate sources and can run side by side.

Cloud sessions

Claude Code on the web does not install plugins, and a session often starts outside any repository (a project's threads, several repositories at once). What does carry over into every container is the environment's setup script, run each time one starts. Cloud tracking is one line there:

  1. In inlinr, open Settings → Editors, Add device, then Get the setup line. Or run /inlinr:cloud in Claude Code, which gets you there.
  2. In Claude Code on the web, open the settings of a cloud environment only you use (the gear beside it) and paste the line into Setup script. If its network access is Custom, add inlinr.com to the allowed domains. Save.

That is all, once per environment. Every session in it is tracked from then on, in every repository, with the same data as on your machine: files, lines, assistant share, tokens, branch and repository. Each container downloads the plugin from inlinr.com as it starts and runs it only if it is the exact version inlinr has checked, so a new version reaches it without touching the settings again, and nothing else ever does. Settings → Editors shows when an environment last started with the line, which tells you it is pasted and reaches inlinr.com.

The line holds a token of its own. It can send activity and nothing else: it cannot read your time or your projects. Revoke it in Settings → Editors to stop that environment. Do not paste it into an environment other people use: their sessions would be filed under your account.

When a cloud session goes untracked, inlinr says so. Two things give it away. A setup line that has sent nothing an hour after you made it (not pasted, or inlinr.com not allowed by the network). Or, if your repository sends its pushes to inlinr through the GitHub webhook, commits a session on the web wrote with no time around them: a cloud container commits as Claude Code's own git identity, Claude <noreply@anthropic.com>, even with Claude's attribution turned off. Home then names the sessions and the likely cause, with a button that makes the setup line right there, and one email says the same, at most once a week. inlinr reads only the commit's author for this, never its message, and credits such a commit to the account that pushed it. Settings → Notifications turns it off. It cannot see a session that pushed nothing, or one whose container commits under your own name: the setup line is what tracks, this is only the net under it.

The hooks it installs check CLAUDE_CODE_REMOTE, which is only set in the cloud. An older hooks block in a repository's .claude/settings.json (with INLINR_TOKEN) downloads the plugin from GitHub, which many cloud environments do not allow, and never runs in a session started outside that repository: remove it once the line is in place.

INLINR_TOKEN works on any machine nobody activates by hand, such as a CI runner or a shared dev box: a token from the environment is used whenever none was saved by /inlinr:activate.

Codex and Gemini CLI

Codex (the CLI and the desktop app) and Gemini CLI keep their sessions on your machine too. From version 0.6.0, the plugin reads them on every sync: with it installed and activated, there is nothing more to do. Their work shows up under Codex or Gemini CLI, with the model, the tokens and the lines each one wrote.

Without Claude Code, run the same script from that assistant's own hook. It needs Node 18 or later; write gemini-cli in place of codex for Gemini CLI:

Terminal
curl -fsSL https://github.com/inlinrhq/inlinr-claude-code/raw/main/dist/index.js -o inlinr.js
node inlinr.js activate --editor codex
node inlinr.js setup codex

setup copies the script to ~/.inlinr/agents.js and adds one hook: notify in ~/.codex/config.toml, or an AfterAgent and a SessionEnd hook in ~/.gemini/settings.json. Codex takes a single notify program: if you already have one, setup leaves it and prints the command to call from it. Run both commands again to update.

Check that it works

Claude Code
/inlinr:status

It says which build is running, whether this machine is connected, when it last synced, how many transcripts have something new, and whether errors were logged. An empty dashboard looks the same whether nothing was tracked or nothing was sent; this is how you tell which.

If a session starts on a machine that is not connected, Claude is told and offers to fix it. Nothing is said when tracking works. Work outside any git repository is skipped, because there is no project to put it in; a repository with no remote is tracked under its folder's name.

The same plugin also upgrades a dependency with Claude reading its changelog first: see upgrading a dependency with your assistant.

Updating and disconnecting

Terminal
claude plugin update inlinr@inlinr

If that changes nothing, uninstall and install again: the plugin cache is keyed by version. To have every machine update on its own, set autoUpdate on the marketplace in ~/.claude/settings.json:

~/.claude/settings.json
{
  "extraKnownMarketplaces": {
    "inlinr": {
      "source": { "source": "github", "repo": "inlinrhq/inlinr-claude-code" },
      "autoUpdate": true
    }
  }
}

/inlinr:deactivate asks which of two you mean. Pause stops tracking Claude Code, Codex and Gemini CLI on this machine and leaves the connection to the inlinr extension and the inlinr command. Disconnect the machine revokes the device on inlinr.com and signs out every inlinr plugin on it; signing out from the extension or the command does the same. Your history is untouched either way, and /inlinr:activate resumes or connects the machine again. Tracking then starts from that moment: what you did while paused or signed out is not sent.

What gets sent

From Claude Code, Codex and Gemini CLI alike: file paths that were edited, lines added and removed per edit, the token counts, the model name and session id, the repository remote and branch, and when the session was active, to the minute. Never file contents, your prompts or the assistant's responses.

In inlinr

Each session lands on the project of the repository it ran in, beside the time from your editor. The AI page of a project shows its sessions per assistant, the four token counts with an estimate at list price for Claude models, and the share of lines an assistant wrote; what that share can and cannot tell you is a guide of its own.

Sources

  • The inlinr plugin for Claude Code, its README: the commands, the cloud setup and what is sent. Checked on 29 October 2026.
  • Plugins, Claude Code documentation: marketplaces, install scopes and updates. Checked on 29 October 2026.
  • Hooks, Claude Code documentation: the events a plugin or a repository can run on. Checked on 29 October 2026.

What changed

  • : From plugin 0.9.0, /inlinr:activate asks before it adds its hooks to your Claude Code settings: the plugin runs nothing until you agree.
  • : One connection per machine, shared with the inlinr extension and command: activating one is enough, and each tool can pause on its own. A session on the web that pushes commits and sends no time, or a setup line that sends nothing, is pointed out on Home and by email.
  • : Cloud sessions take one setup line from Settings, covering every repository and a project's threads. A table of what each surface needs, its sources, and upgrading a dependency moved to a guide of its own.
  • : Codex and Gemini CLI, tracked by the same plugin.
  • : Upgrading a dependency with /inlinr:upgrade and the MCP tools.
  • : first published.

See it on your own sessions

Once the plugin is connected, every Claude Code, Codex and Gemini CLI session shows up on your dashboard with its time, its four token counts and the lines the assistant wrote, per project.

AI coding analytics

Free for solo use · no source code leaves your machine

Read also