AITrax CLI reference
aitrax is the native command that performs all AITrax setup and diagnostics. Commands are
grouped by what they change. The commands the tracker runs on its own — the hook, harvest,
and MCP server entry points — are not listed here; where a troubleshooting page asks you to run
one, it gives that command in full.
- Deployment: SaaS, On-premises
Setup does not add the tracker to PATH, so every command below is run by its full path —
see Where the tracker binary lives. The tables use the
short aitrax <command> form for readability.
Where the tracker binary lives
The tracker is installed under your home directory, and setup does not add it to PATH.
A shell will not find aitrax by name — run it by its full path.
- macOS and Linux
- Windows
The binary is ~/.codetogether/tracker/aitrax:
~/.codetogether/tracker/aitrax setup check
~/.codetogether/tracker/aitrax uninstall system --dry-run
The binary is %USERPROFILE%\.codetogether\tracker\aitrax.exe.
In PowerShell, the quoted path needs the & call operator in front of it:
& "$env:USERPROFILE\.codetogether\tracker\aitrax.exe" setup check
& "$env:USERPROFILE\.codetogether\tracker\aitrax.exe" uninstall system --dry-run
In the Command Prompt, quote the path and run it directly:
"%USERPROFILE%\.codetogether\tracker\aitrax.exe" setup check
"%USERPROFILE%\.codetogether\tracker\aitrax.exe" uninstall system --dry-run
Every subcommand on this page takes the same form: the full path, then the command and its flags.
If a fleet rollout set AITRAX_TRACKER_DIR when it ran the bootstrap script, the binary is
in that directory instead; the default is the path above.
The location is the same however the tracker arrived — the bootstrap script and every IDE
plugin install it there, and the hook and MCP entries setup writes record that absolute path,
which is why nothing needs to be on PATH for tracking itself to work. A second executable,
aitrax-full, sits beside it and is invoked by aitrax rather than by you. For the rest of
the directory's contents, see
Files and locations.
If the shell reports command not found
command not found means the shell searched PATH and did not find aitrax there. That is
the expected state on a working installation, not a symptom: run the command by its full path
instead, as above. On Windows, the same situation reads as aitrax not being recognized as a
command.
If the full path also fails, reporting that the file does not exist, then the binary really is absent — see No tracker binary available.
Setup commands
The following table lists the setup commands:
| Command | Purpose |
|---|---|
aitrax setup system | Configure user-level native tracking settings |
aitrax setup check | Print native setup status. It repairs two settings as it runs, so it is not read-only |
aitrax setup reconcile | Self-heal user-level setup drift after an update. No effect unless setup already completed and a surface is missing, or an instruction file carries an older release's text. Absent from aitrax setup --help |
Uninstall commands
The following table lists the uninstall commands:
| Command | Purpose |
|---|---|
aitrax uninstall system | Remove user-level tracking settings |
aitrax uninstall repo | Remove repository-scoped tracking settings from the current repository, including this worktree's entry in the registry. Setup writes none of its own — everything it configures is user-level — so this command is for clearing a repository that carries them from another source |
aitrax uninstall all | Remove user-level and repository-level tracking settings |
The following table lists the flags these commands accept:
| Flag | Purpose |
|---|---|
--dry-run | Report planned removals without changing files or signaling monitors |
--verbose, -v | Print a per-file report of what uninstall changed. Combine with --dry-run for the path inventory described in Files and locations |
--keep-cache | Preserve the cached AITrax binaries and full artifacts |
Diagnostic commands
The following table lists the diagnostic commands:
| Command | Purpose |
|---|---|
aitrax doctor | Print lifecycle diagnostics. Emits the same JSON status document as aitrax setup check — a single system object — but changes no configuration on the machine. Support tickets ask for its output |
aitrax health | Offline diagnostic rollup of the shared tracker lifecycle log. Prints a verdict, the event span, a recent-activity table, and a capture report |
aitrax version | Print the embedded AITrax build version |
The following table lists the flags aitrax health accepts:
| Flag | Purpose |
|---|---|
--path DIR | Read the report from a bundle of files copied off another workstation rather than from this machine. The lifecycle log comes from DIR and the capture state from DIR/capture/; the running tracker is never consulted |
--json | Emit the rollup as JSON instead of the tables |
--since DURATION | Set the window the verdict is computed over, in place of the default 24 hours |
--all | Drop that window, cover every retained event up to the 60-day lookback, and print full detail |
--verbose, -v | Print full detail, which is otherwise shown only when the verdict is not healthy |
--sessions | List the individual held and incomplete sessions behind the capture report |
--quarantine[=WORKTREE] | Report one worktree's commit-delivery quarantine instead of the lifecycle rollup. Defaults to the current directory; name a worktree to report on another |
aitrax health reads files only, never the network, and exits successfully even when it
reports a problem — a health report is not a process failure.
The following table lists the sections a run can print. Which of them appear depends on what the log holds: a section with nothing to report either says so on one line or is left out.
| Section | Reports |
|---|---|
VERDICT: | healthy, degraded, broken, or indeterminate when the evidence is absent or unusable |
RECENT ACTIVITY (last 7d | last 24h): | A row per kind of activity and the source that recorded it |
VERSIONS (latest seen): | The tracker builds that wrote to the log |
PROBLEMS (current window, grouped by category): | Problems grouped by category, with the informational ones marked as never affecting the verdict |
WARN/ERROR (in window, grouped, most recent first, …): | The individual warnings and errors behind those groups, newest first |
INFORMATIONAL (in window, grouped — surfaced for context, never affect the verdict): | Entries recorded for context, which never change the verdict |
INCOMPLETE SESSION CAPTURE (last 7 days): | A row per capture source, and the share of sessions captured incompletely. A share above the stated threshold reads DEGRADED and lowers a healthy verdict to degraded |
TRACKER V3 UPLOAD: | What the server last answered about the capture features it supports, the pipeline in use, the size and age of the upload outbox, and whether delivery is ok or DEGRADED. Printed when a delivery report exists |
Related
- How setup works — what these commands do and why every path uses them.
- Files and locations — where these commands read and write.