← Back to archive

Repo of the Day

jwklijnsma/labscout

Published: Nov 28, 2026

Open repository ↗

Contribute to jwklijnsma/labscout development by creating an account on GitHub.

Summary

labscout is a Python-based inventory and planning tool for homelabs. It scans configured networks, identifies the software running on each host with built-in rules and a local Ollama model, and produces a reviewable plan for an Ansible infrastructure repository and NetBox without sending scan data outside the network.

What it is useful for

labscout helps engineers document and monitor hosts that are already running but may not have a reliable inventory. During a scan, it uses nmap with service detection or falls back to a plain TCP connect scan when nmap is unavailable. It also fingerprints HTTP(S) ports using page titles, server headers, redirects, and favicon hashes. Optional sources include Proxmox for guest, node, and IP information; NetAlertX for device names and MAC addresses; and NetBox for planned IP and service records.

Identification starts with roughly 65 built-in fingerprint rules. Unsettled hosts are sent to Ollama using a strict JSON schema, with guardrails removing web ports the model mentions but the scan did not observe. Results are cached by host fingerprint, so later scans only send changed hosts to the model.

The output is intentionally reviewable. Engineers can approve, reject, or correct identifications from the command line or web UI. The resulting report.md and plan.json can contain new apps.yml catalog entries, aliases, Prometheus targets, and NetBox IPs and services. For example, a newly identified metrics application can be represented by an app-metrics or blackbox probe target.

Credentials discovered on hosts are never collected. However, scans only cover configured ranges, and automated identification can still be wrong, so review remains important unless an engineer explicitly chooses to bypass it.

How engineers can use it

Install the package and the model documented in the README:

pipx install git+https://github.com/jwklijnsma/labscout
ollama pull qwen2.5:14b

Then initialize and check the environment:

labscout init
labscout doctor

Edit the generated labscout.yml with the required network and integration settings, then run the normal workflow:

labscout run
labscout review --approve-above 0.9
labscout plan
labscout apply --netbox --dry-run

Start the web interface with labscout serve; the README lists it at http://127.0.0.1:8766. The NetBox apply option upserts IPs and services while preserving descriptions written by people. The --infra option commits catalog changes to the labscout/apps branch of the infrastructure repository but never pushes that branch, so engineers can inspect the commit before merging it.