> 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/visdom-ai-tracing.md). Agents can also search and read this documentation through its [MCP server](https://docs.visdom.virtuslab.com/~gitbook/mcp).

# Visdom AI Tracing

The flight recorder for AI-assisted development: what the agent did, what it cost, and proof of it.

Visdom AI Tracing records **what an AI coding agent actually did** and keeps the record somewhere it can be checked later. Every session — the prompts and the transcript, the tool calls, the files changed, the model, the tokens and the cost — is streamed off the developer's machine to your server and tied to the commits it produced, down to the line. With signing turned on, commits, sessions and the records of Visdom AI Gateway are sealed with Ed25519 signatures and hash chains, so a change to the history is detectable rather than merely unlikely.

It is deliberately not a reviewer and not a test gate. It does not judge whether a change is good; it records how the change was produced, and enforces the rules your organisation set for producing it.

<figure><img src="https://2686717926-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2dUajTQaSdFnN24ip7Qo%2Fuploads%2Fgit-blob-77b94540f733dcc5981536d8c3c07a695ae8c5de%2Fdashboard.png?alt=media" alt="The AI Tracing dashboard: spend, active developers, sessions, tokens, top authors by cost, compliance and cache savings"><figcaption><p>The dashboard.</p></figcaption></figure>

## What it gives you

* **A record without effort.** `tracevault init` installs the agent's hooks and two git hooks; from then on sessions and commits stream as they happen. Claude Code, Codex, GSD and OpenCode are supported.
* **Attribution.** Which lines of a commit came from which session, model and prompt, and how much of a repository is AI-written.
* **Cost.** Tokens and spend per model, author, repository, project and flow, priced from a table kept in sync with LiteLLM's price list.
* **Rules agents follow.** Policies per repository — tools the agent must run (always, or when certain files change) and paths it must not touch — injected into the agent, checked before a push and verified in CI.
* **A per-call view.** An LLM proxy for the Anthropic and OpenAI APIs that meters every call and can refuse prompts containing registered secrets; Visdom AI Gateway's records arrive the same way.
* **Evidence.** A signed chain you can verify on demand and offline with the public key, a compliance view and an audit log.

## Where to start

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Quick start</strong></td><td>Install the CLI, sign in, trace one repository and find the session in the web app.</td><td><a href="https://docs.visdom.virtuslab.com/visdom-tracing/getting-started/quick-start.md">Quick start</a></td></tr><tr><td><strong>How it works</strong></td><td>Hooks, the LLM proxy and AI Gateway ingest, and what the server does with each.</td><td><a href="https://docs.visdom.virtuslab.com/visdom-tracing/getting-started/how-it-works.md">How it works</a></td></tr><tr><td><strong>Policies</strong></td><td>Rules per repository, the pre-push check and verification in CI.</td><td><a href="https://docs.visdom.virtuslab.com/visdom-tracing/policies-and-verification/policies.md">Policies and verification</a></td></tr><tr><td><strong>Deployment</strong></td><td>The server, the web app, PostgreSQL, Keycloak and every setting.</td><td><a href="https://docs.visdom.virtuslab.com/visdom-tracing/operations/deployment.md">Deployment</a></td></tr></tbody></table>

## The name on the binary

The component is **Visdom AI Tracing**. The CLI it ships is called `tracevault`, and so are its environment variables, its `.tracevault/` directory and the Homebrew tap, because the tool shipped under that name before the platform had one. Server settings use the `AI_TRACING_` prefix and still accept the older `TRACEVAULT_` names. Where this documentation says `tracevault`, it means the command; where it says Visdom AI Tracing, it means the component.

## Standalone or with the platform

AI Tracing runs on its own with a Keycloak realm. Inside the Visdom platform it takes people's grants, projects and repositories from Control Plane, receives Visdom AI Gateway's records, and sits next to Context Fabric, which decides what an agent knows, and the Orchestrator, which decides what it may run. See [AI Tracing in the platform](https://docs.visdom.virtuslab.com/visdom-tracing/visdom-platform/platform.md) and [What's available today](https://docs.visdom.virtuslab.com/visdom-tracing/getting-started/whats-available.md).
