Skip to content

Install

Build the cctrace client from source and put it on your PATH. Every developer machine that should report sessions needs one.

Requirements

  • Go 1.26 or later (go.mod)
  • make
  • A running server. See Server install.

The client does not need Node.js or Docker. Those are only for the server and its dashboard.

Build the client

make build-client builds one client for the current platform into dist/. Unlike make build, it does not need the dashboard build and runs on Linux as well as macOS.

make build-client

To build for another platform, use make build-linux (linux/amd64) or make build-windows (windows/amd64). Both also write into dist/.

Automatic updates are off by default

A client built from this repository without an update public key refuses automatic updates. To upgrade it, rebuild and replace the binary yourself. See Upgrading the client. A client built with your own update public key, from a signed server image or with make, can update itself; see Security operations.

Default endpoints for a team build

cctrace init asks for the server's sync and OTEL endpoints. To pre-fill those prompts in the binaries you hand out, copy deploy/local-defaults.env.example to a file named local-defaults.env in the same directory, set DEFAULT_SYNC_ENDPOINT and DEFAULT_OTEL_ENDPOINT, then rebuild. Without that file the prompts start empty and each user types both addresses. That file is read only by make. For the binaries the server image serves (below), pass --build-arg DEFAULT_SYNC_ENDPOINT=... and --build-arg DEFAULT_OTEL_ENDPOINT=... to docker build instead.

Download from your own server

The server image built in Server install also cross-compiles the client and serves it from the server. If your machine can reach the server, you can download the client instead of building it:

Platform Path on the server
macOS, Apple silicon /downloads/cctrace-darwin-arm64
macOS, Intel /downloads/cctrace-darwin-amd64
Linux, x86-64 /downloads/cctrace-linux-amd64
Linux, ARM64 /downloads/cctrace-linux-arm64
Windows, x86-64 /downloads/cctrace-windows-amd64.exe

The paths are served at the address you use as the sync endpoint in cctrace init, including its port. Replace <sync endpoint> below with that address, and <platform> with your platform's filename suffix from the table above (for example linux-amd64):

$ curl -fL -o cctrace "<sync endpoint>/downloads/cctrace-<platform>"
$ chmod +x cctrace

Use HTTPS or a network you trust for this download. If the server's certificate comes from a private CA (the Caddy tls internal default in Install the server), curl does not trust it yet; add --cacert cctrace-ca.crt.

These binaries are built with version dev unless the server image was built with --build-arg VERSION=.... cctrace --version then prints dev, and cctrace status marks the binary as a development build. They update themselves only when the server image was built signed, with your own keys and a release VERSION; see Security operations.

Put it on PATH

Put the binary where it will stay before you run cctrace init. The Claude Code hooks that init writes call the binary by the absolute path it was run from, so a hook written while running it from dist/ or from your download directory keeps pointing there. If you move the binary later, run cctrace env apply from the new location to rewrite the hooks.

If you built it, the binary is dist/cctrace; if you downloaded it, it is cctrace in the directory you ran curl from:

$ sudo cp dist/cctrace /usr/local/bin/cctrace   # built with make build-client
$ sudo cp ./cctrace /usr/local/bin/cctrace      # downloaded from the server
$ cctrace --version
cctrace version dev

If you skip this, init offers to do it. When cctrace init finishes and cctrace is not on PATH, it asks:

  [!] 'cctrace' is not in $PATH. Install to /usr/local/bin? (y/n) [y]:
  • macOS and Linux: it copies the running binary to /usr/local/bin/cctrace. If the copy fails for lack of permission, it retries with sudo.
  • Windows: it copies the binary into AppData\Local\Programs\cctrace under your home directory and adds that directory to your user Path. Open a new terminal afterwards.

If you answer no, or the copy fails, init prints manual options instead: go install ./cmd/cctrace (then add ~/go/bin to PATH), or copying the binary into a directory that is already on PATH.

The copy happens after init has written the hooks, so they still name the binary init was run from. Run cctrace env apply once from the installed copy afterwards.

Next step

Connect the client to your server.

Per-home transmission onboarding

The multi-home onboarding change is under implementation and validation; check support in the installed release before relying on it.

  1. Review discovered standard and additional Claude/Codex homes and select enrollment targets.
  2. Explicitly allow or exclude session uploads for every selected home.
  3. Review initial assignment: allowed homes to default, excluded homes to personal.
  4. Review separate usage-monitoring choices and which collection jobs will start.
  5. Complete server setup and final confirmation before collection starts for approved homes.

Discovery alone never starts collection for a new home. Upload exclusion does not hide or unregister the home or account. After onboarding, membership, upload exclusion, collection execution, and usage monitoring are independent. Allowing uploads in a stopped personal profile neither moves the home nor starts collection.

Both exclusion directions require confirmation showing affected homes, account, and profiles. Cancel preserves settings. Homes without usable credentials remain listed with their actual state.