
Homebutler
io.github.Higangssh由 GitHub 帳號 Higangssh 發布v1.8.0更新於 Nov 18, 2026
Tells an agent what changed on a server since it last looked - status, Docker, backups, Proxmox.
概覽
讓助理透過受限的結構化介面檢視自架伺服器:狀態、Docker、連接埠、備份、Proxmox,以及自上次快照以來的變化。
- 可以做什麼
- 產生伺服器健康報告,並列出與上一份快照相比的變化,JSON 中帶有具型別的變更種類
- 檢視 Docker 容器、連接埠、程序與服務拓撲,並執行唯讀的健檢檢查
- 監控容器、systemd 單元與 PM2 應用程式的重新啟動,保留歷史與崩潰日誌
- 在隔離容器中啟動備份以驗證可還原性,並透過 docker compose 部署自架應用程式
- 查詢 Proxmox 叢集、節點、虛擬機與儲存,執行需明確確認的電源操作
- 適用情境
- 適合想讓 AI 助理回答自架伺服器問題的人:目前跑了什麼、某個連接埠屬於哪個容器、服務為何重新啟動、備份能否還原,同時不必交出完整的 SSH shell。
- 執行需求
- 以本機程序在使用者電腦上執行(npm 套件 homebutler,會自動下載 Go 二進位檔;僅限桌面)。透過使用者 .ssh 目錄中的金鑰以 SSH 連線已設定的伺服器,需先以安裝精靈產生設定檔。容器與應用程式安裝功能需要 Docker。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Homebutler,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
HomeButler
Only the changes worth mentioning.
A single Go binary that remembers what your server looked like last time,
and tells you — or an agent — what moved.
[Go 1.25+] [License: MIT] [Release] [homebutler MCP server] [Coverage Status] [Go Reference]
[HomeButler mascot holding a tiny server]
That is the whole idea. Most homelab tools show you a graph of right now, and leave "does this matter?" to you. HomeButler remembers what your server looked like last time, decides what is worth saying, and says it — six containers before and six after is not "no change" when one of them is a different container.
Reading a report
report gives you a concise butler-style summary of your homelab: current health, warnings, notable changes since the previous snapshot, and suggested next commands. On the first run, HomeButler creates a baseline under ~/.homebutler/reports/snapshots/; later runs compare against the latest snapshot. Old snapshots are pruned automatically (--keep 30 by default) so reports do not grow forever.
Section rules, labels, and severities are colour-coded in a terminal. Colour is dropped automatically when output is piped, redirected, or run from cron.
Reading a change
Every change line, like those in the card at the top, is three columns: what kind of change, what it happened to, and
what exactly happened. The kind is one of eight words, and it is the same word in
--json, so an agent branches on it without reading prose:
replaced is the one the rest of this exists for. A container recreated under the
same name leaves every count identical, which is why a report that compares counts —
as this one did before 0.26.0 — answers "no significant changes" while the thing you
were running has been swapped out underneath you.
skipped is the second: homebutler says it could not compare rather than reporting
nothing changed. An all-clear it cannot stand behind is worse than no answer.
The header names the snapshot being compared against, so "what changed" is never ambiguous about the window it covers.
📖 What earns a line, and what is deliberately suppressed →
See it run
The whole thing in half a minute · watch it full size
Why homebutler?
HomeButler helps you answer the boring but painful questions every homelab eventually creates:
- What is running on my server right now?
- Which container owns this port?
- Why did this service restart at 3 AM?
- Is my backup actually restorable?
- Can I install this self-hosted app without hand-writing another compose file?
- Can I let an AI assistant inspect my server without handing it a full SSH shell?
No daemon required, no database. Run it from a terminal, cron, a web dashboard you start when you want one, or an AI agent.
The design goal is simple: give humans and agents a narrow, structured interface to the server. HomeButler returns readable summaries and JSON instead of asking you to trust a black-box shell session.
Self-hosting is not hard because one docker compose up is hard. It is hard because the maintenance never ends: ports collide, containers restart silently, backups look fine until restore day, and every server becomes a slightly different snowflake.
HomeButler is a small operations toolkit for that messy middle.
Alongside what you already run
Keep Uptime Kuma for is it up, Beszel or Netdata for the graph, Dozzle for the logs. HomeButler answers the question none of them ask: what is different from last time, and does it matter?
-
No agent on the machines it watches. The binary is put there once with
homebutler deployand runs only when asked, over SSH — no daemon, no open port, nothing listening between runs. -
The judgement is a written rule, not a model. What earns a line is in docs/report.md, and the same input gives the same report — no AI required, no account, no paid tier.
-
It checks that a backup comes back. A backup you have never restored is a folder.
backup drillboots the archive as a second copy of the app, on a network and port of its own, and requires it to answer an HTTP health check before calling the archive good — then removes everything it made. A failed drill exits non-zero, sobackup drill --allbelongs in the same cron entry asbackup. docs/backup.md has what it does and what it does not prove.
Quick Start
The install script and Homebrew cover macOS and Linux; on Windows, download the zip as described under Windows. The container setup, its volumes and token are covered in docs/docker.md.
Use it right away:
Machine-readable output is available everywhere:
What else it does
- Install apps — deploy Uptime Kuma, Jellyfin, Pi-hole, Gitea, Portainer, and more with one command
- Map your server — see containers, exposed ports, system ports, and service topology
- Run a doctor check — diagnose resource pressure, stopped containers, public ports, backup hygiene, notifications, report baseline readiness, and configured Proxmox endpoint reachability
- Catch crashes — save logs before/after Docker, systemd, or PM2 restarts and detect flapping loops
- Verify backups — boot backups in isolated containers before you trust them
- See a Proxmox cluster — nodes, QEMU and LXC guests, storage, task status, and honest dashboard freshness, with power actions that name their target explicitly
- Use it anywhere — CLI, JSON, web dashboard, or MCP for AI agents without giving them SSH
🩺 Doctor Check
doctor is a read-only preflight for the problems homelab users usually discover too late: high disk or memory usage, stopped containers, public bind ports, stale or missing backups, missing notifications, whether report has a baseline for change detection, and whether each configured Proxmox endpoint is reachable with the token it has. Every finding names the next command to run, so --strict makes it usable from cron or CI — including a Proxmox host that is unreachable or rebooting.
Every finding carries a category, and --json carries the same word, so a
caller filters on it without reading the title:
incomplete is the one worth handling. It means the answer you are reading is
missing a section, which is different from that section being fine.
🗂 Config Validation
config validate reads your config without starting anything and tells you
which file was used, which of the four resolution rules picked it, and what
homebutler actually made of each section. It exists because the two ways config
goes wrong are both silent: a key homebutler does not recognise is dropped
without a word, and a --config path that does not exist falls back to
built-in defaults rather than failing.
Watch and alerts
🔄 Process Restart Watch
Your container crashed at 3 AM — but why? homebutler watch catches it the moment it happens, saves the dying logs, figures out the cause, and tells you if it's happening over and over.
Supported backends: Docker (real-time event stream) · systemd (polling) · PM2 (polling)
Step 1: Add targets to watch
Step 2: Start monitoring
watch install hands the loop to whatever supervises the host — a systemd user
unit on Linux, a launchd agent on macOS — so monitoring survives logout and
reboot. Both are user-level and neither is a preference: on Linux the watch list
lives in your home directory, so a root unit would find an empty list; on macOS
Docker Desktop only runs inside a logged-in session, so a LaunchDaemon would
poll a daemon that is not there. On Linux a user unit stops at logout unless
lingering is on; watch install checks, and if it is off tells you to run
loginctl enable-linger $USER (with sudo only if your system refuses it).
watch start is the monitoring process. It watches the containers and services
on the watch list for restarts, checks CPU, memory and disk against your
thresholds, and runs any remediation rules you have configured — one process,
one set of notification providers. alerts --watch still exists and does the
threshold half on its own.
Every endpoint under proxmox: in your config is polled too: unreachable or
ACL-filtered endpoints and any guest listed under that endpoint's guests:
report one incident when the problem starts and one recovery incident when it
clears. A guest not listed there is observational only — watch start never
alerts on it, deliberately stopped or not. See
Proxmox setup → for the guests: field.
When a crash is detected, you'll see:
Step 3: Investigate
watch show output includes:
- Pre-death logs — what the process printed right before it died
- Post-restart logs — what happened after the restart
- Crash analysis — category (oom / panic / segfault / timeout / dependency / error), reason, confidence level, matched log patterns
- Flapping status — if the process is stuck in a crash loop
Crash Analysis
Every incident is automatically analyzed using exit codes and log patterns:
Log patterns like panic:, Out of memory, Connection refused, FATAL, and timeout are matched automatically to help identify the root cause.
Flapping Detection
Detects when a process is stuck in a restart loop (e.g., crash → restart → crash again):
- Acute — 3+ restarts within 10 minutes (something is broken right now)
- Chronic — 5+ restarts within 24 hours (slow recurring issue)
Flapping incidents are tagged [FLAPPING] in history and highlighted in watch show.
Notifications (optional, off by default)
Notifications are disabled by default, which is useful for air-gapped or closed networks where everything runs locally.
A minimal example in ~/.config/homebutler/config.yaml:
Restarting things that are not containers
action: restart restarts Docker containers unless the rule says otherwise.
kind: systemd or kind: pm2 points it at a service or a PM2 app instead.
The kind is written on the rule rather than looked up from the watch list, so
restarting a host service is something you asked for in the config. It also
means every rule written before kind existed keeps meaning exactly what it
meant.
Two things worth knowing before using it:
systemctl restart needs root or a polkit rule. Running homebutler
unprivileged, a systemd restart will be refused, reported as failed, and
warned about when alerts --watch starts rather than when the rule first
fires.
A target that is flapping is not restarted. Restarting something already
in a restart loop feeds the loop, and most systemd units carry
Restart=always, so homebutler restarting them fights systemd's own backoff.
The thresholds are the watch.flapping ones above, and the skip is reported
rather than counted as either success or failure. This applies to Docker
targets too.
Legacy ~/.homebutler/watch/config.json is still read as a fallback for watch-specific settings, and legacy alerts.yaml notify/webhook provider settings are still accepted for older setups.
-
watch.enabled: true— allow watch notifications -
watch.notify_on: flapping— notify only when repeated restart loops are detected -
watch.notify_on: incident— notify on every incident -
watch.notify_on: all— notify on both incidents and flapping -
watch.notify_on: off— disable watch notifications without removing provider config -
watch.cooldown: 5m— suppress duplicate notifications for the same event fingerprint during the cooldown window -
watch.flapping— optional advanced tuning for restart-loop detection -
watch.retention.max_incidents: 200— how many incidents to keep on disk, newest first. The directory grows fastest exactly when a service is restarting in a loop. Set-1to keep everything.Each incident keeps up to 100 captured log lines per side, and at most 64 KB of them. Line counts alone do not bound a file: one stack trace or JSON document on a single line is arbitrarily long, and a container being OOM-killed is exactly the one likely to write one. A log that does not fit keeps its end — the last thing a process said is what explains why it stopped — and says how much was dropped.
These settings can also be written under a watch.notify: block, which is the
canonical form:
Both spellings are read, so either layout works. If a file contains both, the
notify: block wins and homebutler config validate says so.
Manage targets
Alert Thresholds (Advanced)
alerts still exists for CPU, memory, and disk threshold checks, but it is an advanced flow and not the recommended first step for new users.
Default thresholds: CPU 90%, Memory 85%, Disk 90%. Start with watch, then add alerts only if you specifically want threshold-based checks.
Backup & Restore
One-command Docker backup — volumes, compose files, and env variables.
⚠️ Database services should be paused before backup for data consistency.
📖 Full backup documentation → — how it works, archive structure, security notes.
🔍 Backup Drill
"Having a backup" and "being able to restore" are different things.
Backup Drill boots your backup in an isolated Docker environment and verifies the app actually responds — like a fire drill for your data. A failed drill exits non-zero.
Full walkthrough, including what a passing drill does not prove: docs/backup.md.
What happens:
- Finds the latest backup archive
- Verifies archive integrity (
tarvalidation) - Creates an isolated Docker network + random port
- Boots the app from backup data
- Runs an HTTP health check
- Reports pass/fail and cleans up everything
Zero risk — runs in a completely isolated environment. Your running services are never touched.
Supports health checks for: nginx-proxy-manager, vaultwarden, uptime-kuma, pi-hole, gitea, jellyfin, plex, portainer, homepage, adguard-home.
App Install
homebutler install uptime-kuma— Deploy self-hosted apps in seconds. Pre-checks Docker, ports, and duplicates. Generatesdocker-compose.ymlautomatically. See all available apps →
Deploy self-hosted apps with a single command. Each app runs via docker compose with automatic pre-checks, health verification, and clean lifecycle management.
How it works
- Pre-checks — Verifies docker is installed/running, port is available, no duplicate containers
- Compose-based — Each app gets its own
docker-compose.ymlyou can inspect and customize - Data safety —
uninstallstops containers but keeps your data;purgeremoves everything, including the Docker volumes the app used, and names them - Cross-platform — Auto-detects docker socket (default, colima, podman)
Available apps
App-specific options
Safety checks
- Port conflict detection — Checks if the port is already in use before install
- DNS mutual exclusion — Warns if pi-hole and adguard-home are both installed
- Docker socket warning — Alerts when an app requires Docker socket access (portainer)
- OS-specific guidance — Linux gets systemd-resolved fix, macOS gets lsof command
- Post-install tips — DNS setup, HTTPS access, default credential warnings
Want more apps? Open an issue or see Contributing.
Dashboards
🌐 Web Dashboard
homebutler serve— A web dashboard embedded in the single binary viago:embed. Servers, Docker containers, open ports, alerts and Wake-on-LAN from any browser. With--tokenit also edits the config: thresholds, notification channels, servers, Proxmox endpoints and wake devices.
The Report tab, where you actually read it
The screen somebody opens after a notification. What needs attention first, then what moved with the kind word each change carries, then the snapshot being compared against and how old it is. A comparison that could not be made says so rather than reading as an all-clear.
Loading it saves nothing — a page that took a snapshot every time it was opened would prune the baseline you wanted to compare against. Saving one is a button.
✨ Web Dashboard Highlights
- Server Overview — See all servers at a glance with color-coded status (green = online, red = offline)
- System Metrics — CPU, memory, disk usage with progress bars and color thresholds
- Docker Containers — Running/stopped status with friendly labels ("Running · 4d", "Stopped · 6h ago")
- Top Processes — Top processes sorted by CPU/memory with zombie detection
- Resource Warnings — Visual CPU, memory, and disk thresholds in the dashboard
- Network Ports — Open ports with process names and bind addresses
- Wake-on-LAN — One-click wake buttons for configured devices
- Server Switching — Dropdown to switch between local and remote servers
- Zero dependencies — No Node.js runtime needed. Frontend is compiled into the Go binary at build time
In Homepage
Already run Homepage? One customapi snippet in
services.yaml puts a homebutler card on it: needs attention, changes since
the last snapshot, containers running and stopped.
The snippet →
🖥️ TUI Dashboard
homebutler watch tui— A terminal-based dashboard powered by Bubble Tea. Monitors all configured servers with real-time updates, color-coded resource bars, and Docker container status. No browser needed.
🗺️ Inventory & Topology
inventory scan gives you a quick map of what is running on a server: system health, Docker containers, app ports, and system ports. Docker-published ports are connected back to the container that owns them, so local forwarding details like Colima/Lima stay understandable.
To answer "what is reachable from outside my machine/network?" without reading the whole tree, filter the scan to exposed ports only:
Only ports listening on all interfaces (0.0.0.0, ::, *) are shown. Anything bound to a specific address is hidden, including loopback and LAN addresses. Unsupported filter values return an error, as does combining --filter with --json; the default inventory scan output is unchanged.
Use Mermaid export when you want a diagram for GitHub, Obsidian, docs, or an AI assistant:
🧊 Proxmox VE
A Proxmox endpoint is its own kind of target, configured under proxmox: with an
API token rather than SSH, so it does not join the --server or --all fan-out.
TLS verification stays on: trust comes from a pinned SHA-256 fingerprint, then a
CA file, and only then an explicit insecure fallback.
Reads are plain. Power actions are not: every one of them takes an explicit
endpoint, node, guest type and VMID, and refuses to run without --confirm,
which is checked before any credential is read. They also need their own
action_token_id (plus action_token or action_token_file) configured on
the endpoint — the read token alone will not start, reboot, or shut down a
guest; see Proxmox setup → for creating that second token.
shutdown asks the guest to shut down cleanly — it is not Proxmox's hard
stop, which cuts power and can leave a filesystem behind it. A successful
action reports the task it submitted, not that the guest finished; proxmox task answers that separately.
proxmox script prints the install command for a Community Script pinned to one
commit, along with a warning that the script is not reviewed by homebutler and
runs as root. It never fetches or runs it — see #62
for why that line is where it is.
📖 Proxmox setup, tokens, and TLS →
Installation
Homebrew (Recommended)
Automatically installs to PATH. Works on macOS and Linux.
One-line Install
Auto-detects OS/architecture, downloads the latest release, and installs to PATH. macOS and Linux only; on Windows, use the zip below.
Windows
Download homebutler_<version>_windows_amd64.zip (or _windows_arm64.zip)
from the latest release,
extract homebutler.exe, and put it in a folder on your PATH.
homebutler upgrade replaces it with the next release's. The npm package
needs Windows 10 version 1803 or later, whose tar.exe it extracts the zip with.
On Windows, status and what is built on it read this machine, and ports and
processes say they are not supported. Servers in your config are reached
over SSH as from any other machine, with keys read from
C:\Users\<you>\.ssh (configuration).
npm (MCP server)
Downloads the Go binary automatically. This package publishes one command,
homebutler-mcp, and it starts the MCP server — npx -y homebutler@latest
launches that, not the CLI. For the command line, use one of the other
installs above.
Claude Desktop extension (MCP server)
Download homebutler_<version>_darwin_arm64.mcpb (Apple silicon),
homebutler_<version>_darwin_amd64.mcpb (Intel Mac),
homebutler_<version>_windows_amd64.mcpb (Windows) or
homebutler_<version>_windows_arm64.mcpb (Windows on Arm) from the
latest release and
open it, or drag it onto Claude Desktop's Settings → Extensions. The binary is
inside, so nothing else needs installing. It starts read-only; see
the MCP docs to allow more.
Go Install
Build from Source
make build-all compiles the web dashboard into the binary and needs Node
installed. make build skips it — the CLI is complete either way, and
homebutler serve then says the dashboard is missing and names the two ways
to get it.
Uninstall
Usage
Run homebutler --help for all commands.
📋 All Commands & Flags
🌐 Web Dashboard
homebutler serve starts an embedded web dashboard — no Node.js, no Docker, no extra dependencies.
The installed unit records the address and never the token — that comes from
web.token in the config file, because --token is visible in ps to every
user on the machine. In a container, set HOMEBUTLER_TOKEN instead; it is used
when neither of the others is set, and never written to the config.
Configuration
📖 What report compares → — what earns a line, what is deliberately suppressed, and why.
📖 Configuration details → — config file locations, watch/notify options, and advanced alert thresholds.
Multi-server
Manage multiple servers from a single machine over SSH.
📖 Multi-server setup → — SSH auth, config examples, deploy & upgrade.
MCP Server
Built-in MCP server — an agent gets the same report as typed JSON, kind, target and detail rather than a sentence to parse, and every tool is classed read, write or destructive.
Use natural language when you want automation. MCP clients can call homebutler tools to check server status, list Docker containers, inspect ports, or run operational workflows.
Works with Claude Desktop, ChatGPT, Cursor, Windsurf, and any MCP client.
To let an agent look without being able to change anything, add "--max-risk", "read" to args. Tools that change something are not offered and are refused if called by name, and report runs without saving a snapshot. Read mode stops changes, not reading: logs, container details and everything else a read returns are still visible. What read mode covers →
📖 MCP server setup → — supported clients, available tools, agent skills. The same guide is at docs.homebutler.dev/agents/mcp-server.
Architecture
The butler watches, decides what is worth saying, and says it — to you or to an agent.
Something changes →
reportnames it and ranks it → a notification, the dashboard, or an MCP call carries the same answer.
Three interfaces, one core:
All three call the same internal/ packages — no code duplication.
An agent reads the same report a person does, and gets the parts it has to branch on rather than a screen it has to interpret:
Every line carries text as well, so a caller that only wants to print it does not have
to put the sentence back together. A run that found nothing returns "notable_changes": [],
so the loop above does nothing on a quiet day.
Nothing above this is homebutler's business: an MCP client, a chat bot, a cron line or a person at a terminal all reach the same answer.
No ports opened by default. CLI and MCP use stdin/stdout only. The web dashboard is opt-in (homebutler serve, binds 127.0.0.1).
Contributing
Contributions welcome! Please open an issue first to discuss what you'd like to change. CONTRIBUTING.md covers what homebutler accepts and what a new target has to prove.
Security
Found a vulnerability? Report it privately through the Security tab rather than a public issue. SECURITY.md covers what is in scope and what to expect.
License
來源:README.md,提交 923a0fe
工具
0版本歷史
14- v1.8.0最新Nov 11, 2026
- v1.4.0Oct 29, 2026
- v1.3.0Oct 17, 2026
- v1.2.0Oct 12, 2026
- v1.1.1Oct 11, 2026
- v1.0.0Oct 11, 2026
- v0.41.2Oct 3, 2026
- v0.41.1Oct 3, 2026
- v0.40.0Sep 28, 2026
- v0.39.0Sep 23, 2026
- v0.38.0Sep 21, 2026
- v0.37.0Sep 20, 2026
- v0.35.2Sep 16, 2026
- v0.34.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分