Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

392 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiHerder

Secure fleet management for Raspberry Pi clusters — backups, patching, containers, and control with zero plaintext secrets.

PiHerder Logo

License: MIT Python 3.12+ Release Docker Hub Docs Sponsor

Why PiHerder?

After 30+ years as an engineer, senior cybersecurity leader, tinkerer, hacker, and 3D designer/builder, I got tired of brittle bash scripts and manual processes across my Raspberry Pi clusters and homelab.

PiHerder was born the same way many great tools are: scripts that automate the boring stuff so I could focus on building and securing systems. It replaces manual workflows with an auditable web UI while keeping secrets encrypted at rest and never storing plaintext.

Inspired by projects like Nginx Proxy Manager — simple, powerful, self-hosted tools that just make life easier.

Key Features

  • SSH key management with encrypted private keys
  • Backups, OS patching (apt), HAOS hosts via SSH + ha CLI check/apply, container patching with schedules
  • Docker Compose browser, multi-file editing, compose sets (multiple compose files under one project), inventory cache
  • Service templates (deploy wizard, variables, preview/confirm)
  • Integrations: Uptime Kuma, Grafana, Pi-hole (v6), Nginx Proxy Manager + cert management
  • LAN Discovery (opt-in nmap worker, devices, schedules, Hosts map overlay)
  • Network Maps (DNS fabric, logical/physical topology, service paths, runtime stack view groups)
  • PWA + Web Push notifications
  • RBAC, 2FA (TOTP + passkeys), optional SSO/OIDC (v1.2), audit trail, self-backup with full DR
  • Token REST API for automation (n8n, Home Assistant, etc.)

Quick Start

See the full Getting Started guide.

  1. Clone this repo or copy .env.example.env
  2. Generate PIHERDER_MASTER_KEY (critical)
  3. (Recommended) Set hostname + trusted TLS certs for PWA/push
  4. docker compose up -d (pulls multi-arch bjorngluck/piherder:latest)
  5. Register first admin user and start adding servers

Open Source & Contributing

PiHerder is now open source under the MIT license. Contributions, issues, feature ideas, and PRs are very welcome.

See CONTRIBUTING.md for details.

If you find PiHerder useful, consider sponsoring the project or buying me a coffee — it helps fund continued development and infrastructure.

Documentation

Tech Stack

FastAPI + SQLModel + PostgreSQL + Paramiko + cryptography (Fernet) + Jinja2 + Tailwind + HTMX + Alpine + APScheduler + Celery.

Offline / air-gapped ready — Once built, the container has no external CDN dependencies.

License

MIT — see LICENSE.


Repository: github.com/bjorngluck/piherder

About

Secure fleet management for Raspberry Pi clusters — backups, patching, and Docker control with zero plaintext secrets.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages