> For the complete documentation index, see [llms.txt](https://docs.visdom.virtuslab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visdom.virtuslab.com/visdom-tracing/getting-started/quick-start.md). Agents can also search and read this documentation through its [MCP server](https://docs.visdom.virtuslab.com/~gitbook/mcp).

# Quick start

From nothing to your first traced agent session and commit in about ten minutes, against your organisation's server.

This walks a developer through tracing one repository with Claude Code. You need the address of your organisation's Visdom AI Tracing server, an account that can sign in to it, and a git repository with an `origin` remote. Running the server yourself is covered in [Deployment](https://docs.visdom.virtuslab.com/visdom-tracing/operations/deployment.md).

{% stepper %}
{% step %}

### Install the CLI

```bash
brew install VirtusLab/visdom-ai-tracing/tracevault
# or, with a Rust toolchain
cargo install tracevault-cli
```

The binary is called `tracevault`. Check it with `tracevault --version`.
{% endstep %}

{% step %}

### Sign in

```bash
tracevault login --server-url https://tracing.example.com
```

The CLI prints a URL and a one-time code and opens your browser. Approve the sign-in with your Visdom account; the CLI saves a refresh token, so hooks keep working without asking again. If it reports that the account is not authorised, ask an administrator for the Control Plane grant `tracevault` and a Viewer or Operator grant on your project — see [Sign-in and permissions](https://docs.visdom.virtuslab.com/visdom-tracing/visdom-platform/sign-in-and-permissions.md).
{% endstep %}

{% step %}

### Turn tracing on in the repository

```bash
cd my-repo
tracevault init
```

`init` installs Claude Code's hooks, a `pre-push` and a `post-commit` git hook, creates `.tracevault/`, and registers the repository with the server by its `origin` URL. For Codex, GSD or OpenCode add `--agent codex`, `--agent gsd` or `--agent opencode`; [Supported agents](https://docs.visdom.virtuslab.com/visdom-tracing/capturing-agent-work/supported-agents.md) lists what each one gets.

{% hint style="warning" %}
Codex skips hooks it does not trust. After `tracevault init --agent codex`, start `codex` once interactively and trust the hooks, or nothing is captured.
{% endhint %}
{% endstep %}

{% step %}

### Work as usual

Start Claude Code in the repository and give it a task. Every tool call is streamed to the server as it happens. Commit the result: the `post-commit` hook sends the commit and its diff, and the server links it to the session.

```bash
tracevault status     # a diagnostic: sign-in, hooks, repository, attribution, recent sessions
```

{% endstep %}

{% step %}

### See it in the web app

Open the web app, sign in with **Sign in with Visdom**, pick your project in the rail, then **Traces › Sessions**. Your session is at the top: open it for the transcript, the files it changed, the commits it produced and its cost. **Traces › Attribution** shows, line by line, which lines of a committed file came from the session.

<figure><img src="https://2686717926-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2dUajTQaSdFnN24ip7Qo%2Fuploads%2Fgit-blob-914c449adcd047fcd276cbfd3924451b6295c3f1%2Fsession-detail.png?alt=media" alt="A session in the web app: metadata, token and cost totals, file changes, transcript and linked commits"><figcaption><p>A traced session.</p></figcaption></figure>
{% endstep %}
{% endstepper %}

## Next

* Rules for agents, checked before every push: [Policies](https://docs.visdom.virtuslab.com/visdom-tracing/policies-and-verification/policies-1.md).
* Fail CI when commits were not traced: [Verifying commits in CI](https://docs.visdom.virtuslab.com/visdom-tracing/policies-and-verification/verifying-commits-in-ci.md).
* Trace model calls without hooks, or alongside them: [LLM proxy](https://docs.visdom.virtuslab.com/visdom-tracing/llm-proxy/llm-proxy.md).
