Model or dataset
traceroot-ai/traceroot avatar
traceroot-ai/traceroot

TraceRoot's read-only analytics hinge on one password line, and its version label comes from git describe

TraceRoot - open-source observability and self-improving layer for AI agents. YC S25

1,451 stars365 forksTypeScriptNOASSERTION

At a glance

What is it?
An observability and evaluation platform for agent traces, running a Python backend, a Next.js frontend and a TypeScript worker on Postgres, ClickHouse and Redis. The careful engineering is in the SQL gateway and the exactly pinned SQL parser; the identity and packaging are where the gaps sit.
Who is it for?
This is one of the more honest infrastructure repositories to read. The ClickHouse account model has a dedicated bootstrap identity kept away from the application account, the bootstrap password is pulled from the environment instead of being written into a mounted config file, gateway credentials are hashed before they reach SQL, services bind to loopback, and two dependencies are pinned for behavioural reasons with the reasoning written down.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • traceroot-ai/traceroot1,451 ★ · +687
Star history
Repository2026-09-112026-11-22
traceroot-ai/traceroot7641.5k

687 Stars in the last 72 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Only the platform lives here; the SDKs, the CLI and the badge traffic do not

The repository you are reading is the platform, and the README is careful about routing you elsewhere for everything that touches your code. Two native SDKs sit in their own repositories, traceroot-py for Python and traceroot-ts for TypeScript, and the CLI is a third, traceroot-ai/traceroot-cli, documented as the way to read and export traces, inspect detectors and findings and bring that context into a coding workflow. Fourteen lines of install give you the CLI:

bash
npm install -g traceroot-cli
traceroot login

The badge row is a map of the same sprawl: Y Combinator, license, X, Discord, documentation, a PyPI SDK downloads counter pointing at a package published elsewhere, and a DeepWiki link for the platform itself. Three README languages ship in the same tree, English, Simplified Chinese and Korean.

The assistant gets your source and your GitHub history, and it opens pull requests

The debugging layer is the part with real consequences. The in-app assistant explores traces with an agent that can access your source code and GitHub context, on a hosted model or one you bring yourself. The README describes the full loop: it connects to a sandbox running your production source code, identifies the exact failing line, cross-references your GitHub history including commits, pull requests and open issues, and opens a pull request to fix it. That is source access plus write access to your repository, granted to a model. The tree carries the documents you would want before turning that on: SECURITY.md, THREAT_MODEL.md, INCIDENT_RESPONSE.md, plus a .mcp.json and a .claude/ directory. The same tree also carries an ee/ directory while the page claims both layers are open source with no vendor lock-in.

Default passwords are postgres and clickhouse, and every port binds to 127.0.0.1

Self-hosting is three commands:

bash
git clone https://github.com/traceroot-ai/traceroot.git
cd traceroot
cp .env.example .env
make prod-lite

The development compose file ships Postgres 17 and ClickHouse 25.2 behind environment-tunable version variables, both with restart always. The credentials are the defaults anyone would guess: POSTGRES_USER, POSTGRES_PASSWORD and POSTGRES_DB all set to postgres, and CLICKHOUSE_USER and CLICKHOUSE_PASSWORD set to clickhouse. Both lines carry a CHANGEME marker, and the file asks you to replace them. A third default is easier to miss, SQL_GATEWAY_BOOTSTRAP_PASSWORD falls back to dev-sql-gateway-bootstrap. Postgres has a healthcheck running pg_isready every three seconds with ten retries, and both databases mount named volumes. Every published port is bound to 127.0.0.1, so nothing is reachable from the network until you add a proxy yourself.

Read-only analytics are off until you set one password line

The ClickHouse access model is the most carefully documented part of this repository. A bootstrap account, sql_gateway_bootstrap, is the only identity holding access management, and it is deliberately kept off the application account used by the rest, worker, billing and detector services. Its password never reaches a mounted config file: the bootstrap user is defined by an XML file that reads it with from_env, so the secret stays in the environment. The writer and read-only passwords are SHA-256 hashed before they are put into SQL. The gateway itself is opt-in. Setting CLICKHOUSE_RO_PASSWORD is what turns it on, because the read-only account is provisioned only when it is set, and the API treats a read-only user with no password as unconfigured. The user defaults to sql_gateway_ro, the only account the init container creates.

A password containing an ampersand stops ClickHouse before it starts

One environment variable carries an operational warning worth repeating. The ClickHouse password must not contain an ampersand, because the image interpolates the value into its generated users.xml unescaped and the server exits before it starts. The comment distinguishes that password from the gateway secrets below it, which never reach that file at all. It is a small thing that will cost someone an afternoon, and it is the kind of detail that only exists in a file somebody actually ran. The same file notes that Cloud deployments must set the read-only password and that, with billing enabled, the read-only client raises rather than falling back, which means the omission surfaces as an exception instead of a silent downgrade. The whole example file is explicitly a single one: it states that the same file is used by the Python backend, the Next.js frontend and the TypeScript worker, and that no other environment files are needed. That is a small decision with real consequences, since one connection string with the default credentials in it, postgresql://postgres:postgres@localhost:5432/postgres, reaches three runtimes at once.

Two dependencies are pinned for behaviour, not for security patches

The Python manifest explains its pins in comments, and two of them are worth reading closely. sqlglot is pinned to an exact version rather than a range, because the SQL validator's function gate depends on how that version normalises function names, mapping uniq to APPROX_DISTINCT and formatDateTime to TimeToStr among others listed in ALLOWED_FUNCTIONS. A lockfile refresh that moved the parse could change which functions the allowlist admits without a line of the project's own code changing, so the version is meant to be moved deliberately with the test suite as the gate. slowapi carries an upper bound below 0.2 for a related reason: the rate limiter rides three private attributes of that library, and a minor bump could silently change shadow and header behaviour. Both pins are about observable behaviour, and both are the kind of note that gets deleted by a well-meaning cleanup.

make dev is a Python script that drives tmux and Docker Compose

The developer entry point is not a script in the usual sense. make install-hooks runs uv run pre-commit install, and every other development target depends on it, so pre-commit is installed before anything else happens. make dev then runs uv run python tmux_tools/launcher.py, which the comment describes as handling dependencies, infrastructure, migrations and a tmux launch, idempotent and reattaching if already running. Variants add auto-reload for the REST API and Celery, a nuclear reset, and a production mode. Windows contributors are explicitly routed to dev-lite, described as a full dev environment without the tmux requirement, which runs the launcher with an env-only flag, installs frontend packages with pnpm when node_modules is missing, and brings up the production compose file. Self-hosting uses prod-lite, which the Makefile calls self-hosting on any platform while qualifying it as Docker Desktop only.

Three versions coexist: v1.1.2 tags, a 0.1.0 Python package, and a label that can read dev

The release history is at v1.1.2, with v1.1.1 and v1.1.0 behind it. The Python project in pyproject.toml is named traceroot-platform and declares version 0.1.0. The third version is the one the application reports: the Makefile derives a label with git describe against a pattern matching only three-part tags, falling back to the literal string dev when no tag is found, and passes it into the compose build. A checkout without tags therefore reports itself as dev in a build that also carries a 0.1.0 manifest. Two smaller mismatches are worth knowing. The license field on the repository is unresolved while a LICENSE file sits at the root and the README carries a license badge, so the file is where the terms are confirmed. And both the Postgres healthcheck comment and the Python dependency comment talk about Prisma migrations in a ui/ directory, while the tree has frontend/ and no ui/.

Editorial conclusion

This is one of the more honest infrastructure repositories to read. The ClickHouse account model has a dedicated bootstrap identity kept away from the application account, the bootstrap password is pulled from the environment instead of being written into a mounted config file, gateway credentials are hashed before they reach SQL, services bind to loopback, and two dependencies are pinned for behavioural reasons with the reasoning written down. That is what mature infrastructure looks like. The gaps are elsewhere. The license field is unresolved, three of the four components live in separate repositories, the Python package still says 0.1.0 while tags are at v1.1.2, an enterprise edition directory sits in a tree marketed as free of lock-in, and the assistant that opens pull requests is given source and GitHub access, so read THREAT_MODEL.md before enabling it. Decide on the read-only gateway password explicitly, and change the default Postgres and ClickHouse passwords before anything else touches a shared machine.

Frequently asked questions

What does TraceRoot collect from an AI agent?

LLM calls, tool use and agent steps, captured through OpenTelemetry-compatible Python and TypeScript SDKs. You can then inspect inputs, outputs, latency, tokens and cost per trace.

Where do the TraceRoot SDKs and CLI live?

In separate repositories. The SDKs are traceroot-py for Python and traceroot-ts for TypeScript, and the CLI is traceroot-ai/traceroot-cli, installed globally with npm and then authenticated with traceroot login.

What can the TraceRoot AI assistant reach?

Your source code and GitHub context, on a hosted model or your own key. The debugging layer connects to a sandbox running your production source, cross-references commits, pull requests and open issues, and opens a pull request with a fix.

How is TraceRoot self-hosted?

Clone the repository, copy .env.example to .env, then run make prod-lite. The Makefile calls that self-hosting on any platform while qualifying it as Docker Desktop only, and the app comes up on localhost:3000.

What turns on the read-only ClickHouse gateway?

Setting CLICKHOUSE_RO_PASSWORD. The read-only account is provisioned only when it is set, and the API treats a read-only user with no password as unconfigured. The account name defaults to sql_gateway_ro.

What license does TraceRoot use?

The repository's license field is unresolved while a LICENSE file sits at the repository root and the README carries a license badge, so the file itself is where the terms can be confirmed.

Official sources

  1. Issues
  2. Project website
  3. README
  4. Releases
  5. traceroot-ai/traceroot on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/traceroot-ai-traceroot.svg)](https://hysenlabs.com/projects/traceroot-ai-traceroot)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/traceroot-ai-traceroot.svg)](https://hysenlabs.com/projects/traceroot-ai-traceroot)

Was this useful?