Skip to main content

#Labops - A declarative, YAML-based homelab manager

A declarative, YAML-based homelab manager. labops is a CLI tool that simplifies, automates and standardizes the setup, configuration and maintenance of your homelab infrastructure using simple configuration files and powerful backend automation.

📖 Documentation  ·  Getting started  ·  Configuration  ·  Commands

What it does

You describe your homelab once — the machines, the containers, the services they expose — and labops derives the rest from it.

hosts:
  cprox:
    type: proxmox
    os: debian
    ip: 10.0.10.3
    lxc:
      pihole:
        ip: 10.0.10.5
        os: debian
        vmid: 105
        web_services:
          - proxy_name: pihole
            port: 8080

That container is now three things at once: something labops update will patch, a pihole.lab DNS record, and a pihole.example.com route in your Caddyfile. Nothing was declared twice, so nothing can drift.

  • Host management — setup and updates across Alpine, Debian and RedHat, via built-in Ansible playbooks
  • Proxmox VMs & LXC — containers driven through the Proxmox host with pct, so they need no sshd
  • Target selection — update an arbitrary slice of the lab by kind, OS, tag or position in the tree, ad-hoc or from a named set
  • Docker stacks — sync compose files to a node, bring them up, pull newer images
  • DNS automation — every node becomes a Pi-hole v6 record, derived from the inventory
  • Reverse proxy — a Caddyfile rendered from your web_services, with access lists and wildcard TLS
  • Wake — a magic packet for bare metal, qm / pct start for a Proxmox guest

Installation

pipx install labops
# or
pip install labops

Since labops is a standalone CLI tool, using pipx is highly recommended to isolate its dependencies.

Usage

Point it at a YAML config and go. labops finds homelab.yml by walking up from your current directory, the way docker compose finds a compose file.

labops --help          # every available command
labops validate        # is the config sound?
labops host list       # what do I have?
labops update --all    # patch everything

A worked example config lives in test-samples/homelab-complete.yml.

Full documentation, including a configuration reference and a JSON Schema for editor autocompletion.

Development

See the development guide for the full setup. In short:

uv sync
source .venv/bin/activate

just check      # lint + type-check
just test       # pytest
just docs-serve # preview the docs site

The project uses Dev Containers for a consistent environment and uv for package management. Releases are automated with release-please; the package is published to PyPI by GitHub Actions, not by hand.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

labops-0.9.1.tar.gz (323.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

labops-0.9.1-py3-none-any.whl (131.1 kB view details)

Uploaded Python 3

File details

Details for the file labops-0.9.1.tar.gz.

File metadata

  • Download URL: labops-0.9.1.tar.gz
  • Upload date:
  • Size: 323.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for labops-0.9.1.tar.gz
Algorithm Hash digest
SHA256 e51d59880a98f96b33ee7d3ba7798492f8b45fbe16e162aafa2e44a4c5a7827f
MD5 1b786c975e2c9e8461c2615a6d7c77a9
BLAKE2b-256 a24ac7e987fdfce06c07125017e5d148bbebbdea9fe2e0065992397a7d7884da

See more details on using hashes here.

File details

Details for the file labops-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: labops-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 131.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for labops-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ace3a5ff68ebe921258523b733ef120b5046cb3de8ac99cc6f3d1834df25dcfb
MD5 9a8423915ecf8240ee288525758cdc01
BLAKE2b-256 465168e18529c5319a3e96fcfeddc1b96672a07b145fbd48cc1afe0ff1181114

See more details on using hashes here.

Release history Release notifications | RSS feed

0.11.0

2 files

0.10.0

2 files

This release

0.9.1 This release

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page