Product
Platform overview Tomosu engine (open source) Tomosu Cloud Reliability rules
Solutions
Prevent outages before merge Reliability Radar Fix safety For developers For SRE and platform teams
Developers
Quickstart Documentation Contribute a rule
Resources
Blog Case studies Learn FAQ News
Company
Pricing About Contact Join the Waitlist
Theme

Install the engine

Tomosu is one binary, tomosu, that runs on your computer, in Docker or next to your services. Build it from source with Go, or run the Docker image. The same binary scans code, runs the engine with its console on port 7600 and receives OpenTelemetry on 4317 and 4318.

  • make deps snapshot
  • Console on :7600
  • OTLP on :4317 / :4318
  • Updated

Which way should I install it?

You want toUseNeeds
See everything working firstThe demo: a shop with planted problems, load, a collector and the engineDocker
Scan code on your computer or in CIThe binary, built from sourceGo 1.26+, a C compiler, GNU Make
Run the engine next to your servicesThe binary, or the Docker image built from the repositoryA machine or container that can receive OTLP
Set everything up in one step./setup.sh in the repository: the demo, a scan, or the engine with your telemetry settings (One-step setup)Docker, or Go 1.26+, a C compiler and GNU Make
Have Claude do all of itA prompt for Claude Code: Work with ClaudeClaude Code

All three use the same binary and the same rules. The Quickstart walks through the demo step by step.

How do I build it from source?

Clone tomosuai/tomosuComing soon, then:

make deps snapshot          # resolve modules, build bin/tomosu with its rules embedded
export PATH="$PWD/bin:$PATH"   # or run ./bin/tomosu

make snapshot is needed on a fresh checkout: it signs a rule bundle with a throwaway development key and embeds it, so the binary works offline. Without it, scan stops with no rules found. Rebuild only when the code or the rules change.

$ tomosu version
tomosu d4ba7cc (d4ba7cc)

Any GNU Make works, including the make that comes with macOS (3.81). Go 1.26 or later is needed; the build fetches the Go version it pins if yours is older than that pin.

How do I check that it works?

Scan the demo shop that ships with the repository. It has 17 planted problems.

$ tomosu scan .
17 findings in 1 file · 218 checks · rules dev/dev-d4ba7cc

A scan needs no engine, no account and no network. Next: Scan your code.

How do I run the engine?

tomosu run starts the engine: it receives OpenTelemetry, links it to code and serves the console.

tomosu run --data-dir /var/lib/tomosu
PortWhat
4317OTLP over gRPC: traces, metrics, logs
4318OTLP over HTTP
7600The console and its API

By default every port listens on 127.0.0.1 only. In a container, or to receive data from other machines, add --listen 0.0.0.0 --ui 0.0.0.0:7600 and restrict who can reach the ports. The engine keeps its state in the data folder (--data-dir, default ~/.tomosu/data): an embedded SQLite database, no external service.

How do I run it in Docker?

The repository’s Dockerfile builds an image whose entry point is tomosu, with /data as its data volume and ports 4317, 4318 and 7600 exposed.

docker build -t tomosu \
  --build-arg VERSION="$(git describe --tags --always)" \
  --build-arg COMMIT="$(git rev-parse --short HEAD)" .
docker run -d --name tomosu -v tomosu-data:/data \
  -p 127.0.0.1:7600:7600 -p 4317:4317 -p 4318:4318 \
  tomosu run --listen 0.0.0.0 --ui 0.0.0.0:7600 --local-console --data-dir /data

The build leaves .git out, so the two build arguments give tomosu version its version and commit; without them it says dev. --local-console tells the engine its console is published on this computer only, so first-time setup in the browser needs no key. To try the whole stack instead, run the demo: docker compose -f demo/docker-compose.yml up -d --build, then open http://localhost:7600.

How do I open the console the first time?

Open http://localhost:7600. The console is view-only until someone signs in or unlocks it. On the engine’s own computer, the first visit offers Set up, which needs no key. From anywhere else, use the one-time unlock link the engine prints at start, or run tomosu unlock-link for a new one. Sign-in and access keys explains the rest.

Then send it data (Send OpenTelemetry data) and give it a code index (Code indexes). tomosu health says what is still missing:

$ tomosu health --engine http://localhost:7600
✓ Rules loaded                 rules dev/dev-d4ba7cc
✓ Code indexes                 2 loaded, 0 unreadable
✓ Telemetry arriving           0s ago
✓ Load                         mode normal, 0 dropped
! Code index delivery          reading the index folder only
  fix: optional: set --index-source or TOMOSU_INDEX_STORE to pull indexes from your bucket
! GitHub                       not connected: no sign-in with GitHub, private branch scans or fix pull requests
  fix: Connect → Sign in with GitHub, and choose an organisation or your personal account
✓ Tomosu Agent                 on: openai-compatible practice
✓ Runtime fixes from Tomosu Agent on for 2 repositories
✓ Pre-Merge scans              no branch scanned yet
✓ Your rules                   0 custom, 0 proposed from accepted Tomosu Agent findings (all start in shadow)
✓ Sign-in                      GitHub not connected · 0 access key(s) · start-up key fixed
✓ Contributions                proposed as pull requests to tomosuai/tomosu from the contributor's own GitHub account, or saved as files
✓ Operations log               recording (dashboard on)