---
title: "Tracking Claude Code, Codex and Gemini CLI"
description: "Install the inlinr plugin for Claude Code once and cover the terminal, the desktop app, the IDEs, Codex, Gemini CLI and cloud sessions."
url: https://inlinr.com/guides/track-claude-code
lang: en
---

# Tracking Claude Code, Codex and Gemini CLI, from terminal to cloud

Install the inlinr plugin for Claude Code once and cover the terminal, the desktop app, the IDEs, Codex, Gemini CLI and cloud sessions.

Setup 5 min read Published 14 Oct 2026 By [Thibault Fayard](https://inlinr.com/authors/thibault-fayard)

Updated 19 Nov 2026: Pause every inlinr plugin on the machine at once, from the inlinr command or VS Code; hide file and branch names. The plugin sends a file's path from its repository, never the folders above it.

![Installing the inlinr plugin for Claude Code, with the terminal, desktop app, IDE extensions and cloud sessions tracked](https://inlinr.com/marketing/setup.jpg)

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 runs                  | What it needs                                           |
| ----------------------------------------- | ------------------------------------------------------- |
| Terminal, desktop app, VS Code, JetBrains | One install and /inlinr:activate, once per machine      |
| Claude Code on the web                    | One line in the environment's setup script, once        |
| Codex and Gemini CLI, beside Claude Code  | Nothing more: the same plugin reads their sessions      |
| Codex or Gemini CLI alone                 | The 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](https://marketplace.visualstudio.com/items?itemName=inlinr.inlinr-vscode), which also works in Cursor and Windsurf. The two are separate sources and can run side by side.

## Cloud sessions

A cloud session runs in a fresh container, often outside any repository (a project's threads, several repositories at once), and with none of your machine's settings. Two ways track it: the **inlinr connector**, with no token anywhere, or a **setup line** in the environment.

### With the inlinr connector

1. On claude.ai, Settings → Connectors, add a custom connector named `inlinr` with the URL `https://inlinr.com/api/mcp`. claude.ai sends you to inlinr.com: sign in and choose **Allow**.
2. Download [inlinr-cloud](https://inlinr.com/inlinr-cloud.zip) and upload it to the plugins of your claude.ai account. Plugins of your account are copied into every cloud container as it starts, and only there: Claude Code on your own machine does not get them.

That is all, once for your account and every environment: nothing goes in a setup script and the network access can stay as it is. Settings → Editors in inlinr has both steps, with the connector's URL to copy and the download.

At each prompt, each edit and the end of each turn, `inlinr-cloud` calls the connector with the session's id, and inlinr.com files that session under your account for 24 hours after the last call. The call is made by claude.ai, not by the container, so it works whatever the environment's network allows. It carries the folder the session works in, and for an edit the file's path, its GitHub repository and how many lines it added and removed: never the file's content, never a prompt. The session's time is counted from these calls, edits on the repository's project, the rest on the project of the folder or of the last edit. The token stays with claude.ai and never reaches a container. The connector can file a session and its activity under your account and nothing else: it cannot read your time, your projects or your invoices. It is listed and disconnected in Settings → Editors.

The connector records time, files and lines, not tokens or the model: those come from the transcript, which only the setup line below reads, in an environment whose network allows `inlinr.com`. When both run, the setup line's beats replace what the connector recorded for that session.

**Why a download.** Anthropic's plugin directory accepts these hooks only from organizations it has verified, which no one can ask to become yet. An uploaded plugin does not update itself, and it does not need to: its hooks only pass these fields to the connector, and the rules live on inlinr.com.

### With a setup line

What carries over into every container of an environment is its **setup script**, run each time one starts. 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 connector or 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](https://inlinr.com/guides/upgrade-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.

To pause every inlinr plugin on the machine at once, for half an hour, two hours or until you resume, run `inlinr pause --for 1h` (or `inlinr pause`, then `inlinr resume`), or **inlinr: Pause tracking** in VS Code. From plugin 0.10.0, Claude Code, Codex and Gemini CLI follow it: nothing done during the pause is sent, then or later. `/inlinr:status` shows it.

## What gets sent

From Claude Code, Codex and Gemini CLI alike: the paths of the files edited, from the repository's root (never the folders above it), 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.**

A path or a branch can name a client. Under `[behavior]` in `~/.inlinr/config.toml`, `hide_file_names = true` sends every file as `HIDDEN.<ext>` (the language is still known) and `hide_branch_names = true` sends no branch. The plugin, the `inlinr` command and the VS Code extension all follow them.

## 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](https://inlinr.com/guides/measuring-ai-written-code) is a guide of its own.

## Sources

- [The inlinr plugin for Claude Code](https://github.com/inlinrhq/inlinr-claude-code), its README: the commands, the cloud setup and what is sent. Checked on 29 October 2026.
- [Plugins](https://docs.claude.com/en/docs/claude-code/plugins), Claude Code documentation: marketplaces, install scopes and updates. Checked on 29 October 2026.
- [Hooks](https://docs.claude.com/en/docs/claude-code/hooks), Claude Code documentation: the events a plugin or a repository can run on. Checked on 29 October 2026.

## What changed

- 19 Nov 2026: Pause every inlinr plugin on the machine at once, from the inlinr command or VS Code; hide file and branch names. The plugin sends a file's path from its repository, never the folders above it.
- 9 Nov 2026: Cloud sessions can be tracked by the inlinr connector and the inlinr-cloud plugin, uploaded once to your claude.ai account: no token in any container, no network setting, every environment covered.
- 6 Nov 2026: 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.
- 3 Nov 2026: 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.
- 30 Oct 2026: 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.
- 28 Oct 2026: Codex and Gemini CLI, tracked by the same plugin.
- 27 Oct 2026: Upgrading a dependency with /inlinr:upgrade and the MCP tools.
- 14 Oct 2026: 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.

[Start free](https://inlinr.com/signin) [AI coding analytics](https://inlinr.com/ai-coding-analytics)

Free for solo use · no source code leaves your machine

## Read also

- [Dependencies Upgrading a dependency with your assistant, changelog first Breaking changes hide in guides and in releases without notes. Read them first, then let the assistant upgrade and run your checks. 5 min read](https://inlinr.com/guides/upgrade-a-dependency-with-your-assistant)
- [Dependencies What outdated dependencies cost: one package.json, two years later We pinned eleven popular packages as of November 2024 and checked them in November 2026\. Most of the risk was one small upgrade away. 6 min read](https://inlinr.com/guides/cost-of-outdated-dependencies)
- [Integration Time and token tracking for Codex Track OpenAI Codex, CLI or desktop app, per project: time, the lines its patches changed and its tokens, read on your machine. Open](https://inlinr.com/integrations/codex)
