Local & air-gapped

Nothing about ci-doctor requires CI, and nothing about it requires the public internet: keep the matcher registry local and it reaches only the hosts you run yourself.

On your laptop

The fastest way to test a .ci-doctor.yml or reproduce an attribution you disagree with:

# Replay a log you saved from a failed job — no CI, no token, no LLM:
ci-doctor analyze ~/Downloads/failing-job.log

# Or hit a live run from your checkout. With no CI_PROJECT_ID / GITHUB_REPOSITORY
# set, the repo is read from your git origin (and it says so in a warning):
ci-doctor analyze 123456

Passing a path that exists means no run is fetched — see First run. The selected matchers are still read from their registries.

Ship it as an image

Build a self-contained image and push it to an internal registry:

# Build once where there is internet, push to your internal registry:
docker build -t ci-doctor:latest .
docker tag  ci-doctor:latest registry.internal.example.com/ci-doctor:latest
docker push registry.internal.example.com/ci-doctor:latest

# At job runtime the image reaches only your GitLab/LLM endpoints and the
# matcher registries you declare.

…or as an offline wheel bundle

Where Docker isn't an option:

# Where there IS internet — build a wheel bundle:
pip wheel . -w ./wheels

# Copy ./wheels inside the air-gapped network, then:
pip install --no-index --find-links ./wheels ci-doctorr

A local matcher registry

Matchers are read from their registries on every run, with no cache. Clone the registry where there is internet, carry it in, and point the alias at the copy; a relative path resolves against the config file that names it:

# Where there IS internet:
git clone https://github.com/ci-doctor/matchers.git

# Inside, point official at the copy (the folder holding index.yaml):
ci-doctor registry add official=./matchers
ci-doctor matchers add official/python
ci-doctor config --validate

To update, pull or copy a newer revision. Nothing else is fetched.

What it still needs to reach

Nothing else. No telemetry, no update checks, no model downloads. The official registry's address, https://matchers.cidoc.dev/, is the one shipped default host, and you replace it as above. Requirements has the full network story.