Repository navigation
Releases
v1.7.0
HomelabHero can run Claude Code on an Anthropic API key or any
Anthropic-compatible endpoint instead of a Claude subscription
(#50). No new
commands.
Added
- Using an API instead of a Claude subscription:
setANTHROPIC_BASE_URL,ANTHROPIC_AUTH_TOKEN/ANTHROPIC_API_KEYand the
model in theenvblock of~hhagent/.claude/settings.json. Claude Code
applies it to every session, and HomelabHero never writes that file, so it
surviveshh update. OpenAI-compatible servers work behind a translating
proxy such as LiteLLM.
Changed
- The installer's sign-in step (9/10) is skipped when that file already sets
an API endpoint, key, token orapiKeyHelper, instead of offering a
subscription sign-in that is not needed.
Full notes: CHANGELOG.md#v1-7-0
v1.6.3
Brings the shipped Claude Code configuration in line with Claude Code's
current documentation (2.1.x): how permission rules are written and anchored,
what CLAUDE.md should carry at launch, and how Claude Code itself is
installed. No new commands.
Fixed
ops/.claude/settings.jsondeniedRead(/etc/homelabhero/vault/**), but a
rule starting with a single/is anchored at the project directory, so it
guarded~hhagent/homelab-ops/etc/homelabhero/vault/, not the vault. It is
nowRead(//etc/homelabhero/vault/**), the absolute form. (The vault was
never readable by the agent user anyway: that is the OS boundary, and it is
unchanged. This fixes the guard rail, not the boundary.)- The
hh scan --adddeny rule only matched--addas the first argument;
hh scan 10.0.0.0/24 --addslipped past it. The rule is now
Bash(hh scan *--add*).hhitself still refuses--addwithout sudo. CLAUDE.mdimportedCLAUDE.local.md, which Claude Code already loads on
its own besideCLAUDE.md, so local notes were in context twice. The import
is gone; the file loads exactly as before, once.- The deny list spelled
hh update,rebootandhaltas exact commands,
which an argument sidestepped; they take a trailing wildcard now, and
rm -fris denied besiderm -rf.
Changed
- Claude Code is installed with Anthropic's native installer first, the
method its documentation recommends, with the npm package kept only as the
fallback when the native installer cannot run. The two ship the same binary.
A box installed earlier is moved over on its nexthh updateand the npm
copy is removed;hh doctorshows which one is running. On every update the
installer also runsclaude updatefor a native install, so the weekly job
keeps Claude current even though the web UI never opens an interactive
terminal session. - The eight capability catalogs are no longer imported into
CLAUDE.md.
Claude Code loads every@importat launch, so around a thousand lines of
per-platform command reference sat in every session whether the task touched
that platform or not, against the documented guidance to keep always-loaded
instructions short and move the rest into skills. Each platform skill now
names its catalog and reads it when the skill runs (unifi-ops,
firewalla-ops,network-diag,docker-stack-opsandhomelab-triagegained
the pointer; the other platform skills already had it), andCLAUDE.mdlists
the catalogs and says to read the relevant one. The catalogs themselves are
unchanged. CLAUDE.mdis shorter where a skill already carries the detail: the NetBird
and Cloudflare write rules keep the three that matter in every session and
defer the rest tonetbird-opsandcloudflare-ops. The passwordless-sudo
rule and its exact fix steps stay inCLAUDE.md, where 1.0.x put them so
Claude can give them the moment it hits the wall;truenas-opsand
host-opsnow repeat the step for their platform.- Permission rules use the documented trailing-wildcard form,
Bash(hh list *)
rather than theBash(hh list)+Bash(hh list:*)pair. A trailing*
also matches the bare command, so the list halves with no change in what is
allowed or denied. The file carries the$schemaline the docs recommend,
so an editor validates it. docs/security.mdsays what thehh runprompt depends on now that Claude
Code's built-in starting mode is auto: the shipped settings pin Manual mode,
the web UI's skip-permissions toggle should stay off, and the deny list is a
guard rail enforced in every mode but not a boundary.docs/updating.md,
docs/layout.md,docs/install.mdanddocs/troubleshooting.mddescribe
the native install and the local-notes file as they now are.
Full notes: CHANGELOG.md#v1-6-3
v1.6.2
Documentation only, plus the shipped TrueNAS notes. No code path changes.
Added
docs/troubleshooting.md: every linehh doctorcan print with its fix, the
install failures that have actually been reported (no_new_privs, no systemd,
the Debian sign-in hang) and the runtime ones (a missing claude, the web UI
not starting or not reachable, the weekly update stopping partway, hosts that
cannot be reached or cannot sudo, each integration's rejected-credential
case), and where the logs are. Linked from the README, the docs index,
install.mdandupdating.md.docs/install.mdgains "The port, and keeping the UI off the LAN":PORT
andHOSTincloudcli.env, binding to localhost, and what a reverse proxy
must pass through (WebSockets) for the chat and the terminal to work.docs/layout.mdgains "Moving to a new LXC" (what to carry over, with
ownership reasserted on the new box) and "Uninstalling" (every path the
installer created, and the public keys left behind on the hosts).- The docs index says where to start depending on what you are doing.
Fixed
docs/install.mdanddocs/security.mdlost section headings when the
README was split intodocs/in 1.5.2: the install page opened with no
heading and a floating "Updating" subsection, and the "What Claude knows"
list sat under none. Restored from the pre-split README.docs/install.mdlinked to a heading that lives indocs/updating.md
(fragment links are not checked by CI), and still said "thehhcommands
below" after the commands moved to their own page.- The NetBird and Cloudflare pages read like release notes ("until now",
"same problem as the mesh"); they now stand on their own. - The README banner described the pre-1.0 npm problem. It now says what is
actually true after 1.6.1: a box that only ever updated by cron needs one
manualhh update, and why. docs/updating.mdlists whathh doctorchecks about the weekly job since
1.6.1, and no longer impliesgit diffon the ops brain is per-update.- The two remaining em dashes, and three lines left unwrapped by earlier edits.
Changed
- TrueNAS: the release the shipped notes called "26 (beta)" is shipping as
TrueNAS 27 (27-RC.1 on 2026-10-06; its betas were numbered 26). The
capability catalog, the TrueNAS skills,infra/truenas.md,docs/layout.md
and the installer's no_new_privs advice say so. The version-detection
guidance is unchanged: readsystem.versionand the live method list rather
than trusting a number.
Full notes: CHANGELOG.md#v1-6-2
v1.6.1
A pass over the repository for anything stale, contradictory or quietly
unfinished. No command changes its signature.
Fixed
-
The weekly auto-update was aborting the installer partway through, every
week, on every box. Debian cron starts a job withPATH=/usr/bin:/bin, and
the sudoers step callsvisudo, which lives in/usr/sbin; under cron that
was "command not found", reported as "sudoers template failed validation",
and the installer stopped there. The CLI binaries, installed in the step
before, did update; the ops brain, Node, claude and the service unit did
not.hh updatefrom a shell goes through sudo'ssecure_path, which has
/usr/sbin, so it worked, and the failure sat in
/var/log/homelabhero-update.logwhere nothing surfaced it. Both
hh-updateand the installer now append the sbin directories toPATH,
the cron template sets a full one for new installs, and the installer says
"visudo not found" when that is what happened.hh doctor(below) now also
reports an installer error from the last run, so a repeat of this cannot be
silent.To check whether a box was affected:
grep -c "sudoers template failed" /var/log/homelabhero-update.log*Every fix shipped as "heals itself on the next weekly update" since the
weekly job began - the three-way sync for edited files (1.3.1), the baseline
seeding and prune (1.3.3, 1.5.3), preferring a native claude (1.3.0) - took
effect only on boxes where someone ranhh updateor the installer by hand.
The first cron run after this update does what that manual run would have:
the service restarts, and a box with no baseline yet keeps the previous copy
of any edited shipped file as<file>.bak-<stamp>, as the 1.3.1 notes
describe. -
hh netbird proxies,services,serviceanddomainssoftened EVERY
failure to "Bring Your Own Proxy is not available on this NetBird", exit 0,
andhh netbird trafficdid the same with "not available on this account".
A rejected token, a timeout, a rate limit and a TLS pin mismatch all got the
same reassuring line. Only a 404 means a server without BYOP, so only a 404
gets that message now (a 402, 403 or 404 fortraffic, since a plan limit
can answer either way); everything else fails with the broker's usual
message and exit 2, as every other op does. -
hh unifi deviceandhh unifi statsvalidate the device id before splicing
it into a URL. Thegetop already checked its whole path; these two took
the id as given, so an id containing a slash or a query string reached a
different endpoint than the one named. UniFi ids are opaque strings with none
of those characters, so nothing legitimate is refused. -
The Cloudflare broker's "no Access application matches" message pointed at
hh cloudflare access, the pre-1.4.0 name. It now namesaccess-apps, the
op that is documented and allow-listed (the old name still works when typed). -
hh rm-hostchecks for sudo up front like every other operator command,
instead of failing partway through. -
SECURITY.mdsaid the agent may run "the two broker helpers". The sudoers
rule has granted six since the API brokers arrived, anddocs/security.md
already said so; both now agree. -
docs/layout.mddescribed "two read-only router APIs" and listed the skills
as of 1.3.0, omittingnetbird-opsandcloudflare-ops. It also promised
"where everything lives on disk" and then showed only the repository tree;
it now lists what the installer puts under/etc,/var/logand
~hhagent, and who owns each piece. -
docs/security.mdnamed four capability catalogs; there are eight. -
docs/commands.mdlackedhh inventory --save,hh scan --add, thehh cf
alias, and what--forcedoes.docs/updating.mdclaimedgit diffon the
ops brain shows what an update changed; the installer commits only at first
install, so the diff is cumulative, and the page says so. -
ops/hosts/README.mddocumented six registry keys. Entries for API hosts
also carryPIN,WRITE,SITE/SITE_NAME,GID/BOXandACCOUNT,
which the skills rely on, so they are listed. -
CLAUDE.mddescribed thehh listcolumns as "alias, platform, ip, port,
user" and then depended on theACCESScolumn it left out. -
Five shipped skills referred to the operator as "he". They say "the
operator" now, the same personalisation fix that kept a name out of them. -
The Firewalla docs page lists the Purple SE, as the capability catalog did.
Changed
hh doctorchecks the weekly auto-update job itself, not just the last log
line: it reports a missing/etc/cron.d/homelabhero, a last run more than
ten days old, and any[error]the installer logged during the last run,
which until now was visible only to someone who opened the log. It reads the
rotated log when logrotate has just truncated the live one.- The installer removes Node versions nothing uses. Every weekly run does
nvm install --ltsand nvm keeps every version it ever installed, so a box
collected one Node tree per LTS bump, each a few hundred MB with its own copy
of the global packages. After the service has been restarted onto the
current version, every other one under~hhagent/.nvm/versions/nodeis
uninstalled. The order matters and is deliberate: the restart comes first, so
the running service is never pulled out from under itself. - The nvm installer is pinned to v0.40.8 (was v0.40.1). This only affects a
fresh install; a box that already has nvm keeps it.
Removed
- The installer no longer deletes
/usr/local/bin/hh-upgrade. That binary
was retired before 1.0.0, so no box installed from a release ever had it.
The 1.5.3 baseline prune stays: it heals boxes that took 1.3.3 by hand, and
given the cron fault above, some of those have not run an update since.
Full notes: CHANGELOG.md#v1-6-1
v1.6.0
MikroTik RouterOS is a platform in its own right, so a MikroTik switch no longer
has to be registered as linux and then misread by every sweep.
(#45)
Added
- Platform
routeros, accepted byhh add-host,hh provisionand the
hh scan --addpicker. It is reached withhh runover SSH like any other
host; the connection broker is unchanged. hh overviewshows RouterOS vitals: identity,/system resource,
/system health, and any port that is enabled but has no link.hh inventoryshows interfaces, bridge ports and the bridge VLAN table.hh doctorreports the login's RouterOS/usergroup, and says plainly when
it is notread, since thenhh runcan change the switch's config.ops/capabilities/routeros.md, a capability catalog in the same style as the
others, including why RouterOS safe-mode does not protecthh run.hh add-hostdefaults the RouterOS user toadminand prints the
/user ssh-keys importsteps instead of offeringssh-copy-id, which cannot
work against RouterOS.
Fixed
- The liveness probe in
hh overviewandhh inventoryrantrue, which
RouterOS rejects as a bad command name, so a MikroTik that answeredhh run
fine was reported UNREACHABLE.hh testandhh doctorhad the same problem
withecho. All four now use one probe that suits the platform.
Not included
A fenced hh routeros broker with named writes. UniFi and Firewalla are
read-only because a router's failure takes away the access needed to fix it,
and a switch carrying storage and cluster traffic is the same kind of device.
Full notes: CHANGELOG.md#v1-6-0
v1.5.5
A full audit of every script, prompted by three bugs in a row that shipped
looking correct. Five real defects, all reproduced before being fixed.
Fixed
-
hh unifino longer reports a broken console as an empty one._sitewas
called inline in the request path -_get ".../sites/$(_site)/devices"- and
dieinside a command substitution ends only that subshell, so a failure to
resolve the site printed its reason and then issued a SECOND request with an
empty site anyway. With a rejected API key that answered exit 0 and an empty
device table, which reads as "nothing is adopted" rather than "your key does
not work"; with no sites it answered a 404 whose advice ("needs Network 9.0
or newer") had nothing to do with the actual problem. The site is now resolved
into a variable first, so the failure propagates and the first message is the
only one.This is the same defect the Firewalla broker had and 1.3.x fixed. Every other
broker was checked for it; UniFi was the last one carrying it. -
hh unifino longer picks a site when a console has several. It took the
first and cached it into the registry, so a console with a site per location
reported one of them as though it were the network, with nothing saying which.
That is exactly the bug reported against Firewalla in #30. An alias is now
pinned to one site at registration -hh add-unifiasks when there is more
than one - and an entry that predates the pin refuses and lists the sites
rather than guessing. Single-site consoles are unaffected and still resolve
silently. -
hh runagainst a NetBird or Cloudflare alias named the wrong platform and
called it read-only. All three token platforms register withAUTH=token, and
the refusal keyed on that rather than onPLATFORM, so it always said
"Firewalla ... It is read-only". Both of those are wrong for NetBird and
Cloudflare, and a false read-only assurance is the kind of thing an agent
repeats to a user. Each platform now gets its own message, naming what it can
actually do. -
Bash completion knows the NetBird and Cloudflare commands. It was never
updated when they were added, sohh netbird <TAB>offered nothing and the
subcommand list stopped at the older feature set. -
An empty response body no longer prints a second, emptier error under the real
one._expect_datareportedunexpected response from <path>:with nothing
after the colon, directly beneath the message explaining what had gone wrong.
Changed
- Removed a duplicated comment block in
hh-netbirdleft by an earlier edit.
Full notes: CHANGELOG.md#v1-5-5
v1.5.4
Changed
-
hh firewalla trendsscopes itself to the box's MSP group. The trends
endpoints filter by group rather than by box, so these numbers used to be
account-wide with a footer explaining how to narrow them by hand. The pinned
box's group is now resolved from/v2/boxesand passed automatically, which
makes the figures per-box whenever that group holds only that box - the usual
arrangement, and no id to look up.Every run states what it actually covers, because a group is not always one
box:Daily flows, covering box group Home Site, which holds only this box. Daily flows, covering box group Sites, which holds 3 boxes including this one. Daily flows, covering the whole MSP account - this box is in no MSP group.A box in no group still reads account-wide, and still gets the advice to make
a group of its own - after which the command finds it without help. A box
whose group cannot be read as a single group also reads account-wide, and says
that rather than claiming there is no group, since that would send someone off
to fix something that is not wrong.The
groupfield is thinly documented - nullable, and seen in the wild as an
object with an id and as a bare id string - so all of those shapes are
handled, plus a numeric id and a single-element array, and anything else is
treated as "cannot tell" rather than guessed at.Proposed by @lesterktm, who implemented it in their fork first and identified
the group-shape ambiguity.
Full notes: CHANGELOG.md#v1-5-4
v1.5.3
Fixes a defect in the 1.3.3 baseline seeding, found reviewing it after it
shipped, and a Firewalla target-list bug found against a real MSP account.
Fixed
-
hh firewalla listswas filtering out Firewalla's built-in target lists. The
query named two of the three owner categories (global,firewalla, box
gid), so an account whose lists are all built-ins returned nothing; it now
asks for all three, and reads list size from.countsince built-ins do not
inlinetargets. The same two-owner query was also taught as the raw
escape-hatch example incapabilities/firewalla.md, where it was wrong
independently of the broker, and is corrected there too.Reported, fixed and verified live by @lesterktm, on an account whose 13 target
lists are all built-ins: the table went from zero rows to all 13 with their
real sizes. -
The shipped-file baseline no longer collects files HomelabHero does not own.
1.3.3 seeded it with the WHOLEopstree, but the update only manages
.claude/,capabilities/andCLAUDE.md. So the user's owninfra/,
inventory/,runbooks/andhosts/notes were copied into the baseline as
though they were shipped files.Nothing was overwritten or lost by this - the sync is driven by what the repo
ships, not by the baseline - buthh doctorreads the baseline to decide
which files carry local edits, so filling ininfra/network.md, exactly what
that file exists for, was reported as editing a shipped file. On a box whose
only changes were its own notes, doctor claimed two shipped files had been
edited.The seed now copies only the owned paths, and every run prunes anything else
out of the baseline, so a box that already took 1.3.3 heals itself on its next
update with nothing to do by hand.The root cause was three separate lists of what "shipped" means - one in the
seed, one in the sync loop, one implicit inhh doctor. There is now a single
SHIPPED_PATHSin the installer that the seed, the prune and the sync all
read, andhh doctorderives its answer from the pruned baseline rather than
a list of its own.
Full notes: CHANGELOG.md#v1-5-3
v1.5.2
Documentation restructure, and one fix.
The README is now an entry point, not the manual
It had grown to 31 KB - 582 lines - and the shape of the growth was the problem
rather than the size: each new integration added about 2.5 KB in the middle,
pushing the part a new reader actually needs (what this is, and whether it is
safe) further under router-specific reference material.
It is now 5 KB: what it is, install, what it can do, why the credentials are
safe, and a table of links. Everything else moved to docs/, unedited except
where the split broke a cross-reference:
docs/install.md first install, discovery, registering hosts
docs/commands.md every hh subcommand
docs/security.md credential isolation, what the agent knows,
how strongly each integration is fenced
docs/updating.md hh update, the weekly job, hh doctor
docs/layout.md where things live, platform notes, backup
docs/integrations/ unifi, firewalla, netbird, cloudflare
docs/security.md gains two sections that did not exist anywhere a reader on
GitHub would find them: the three fencing tiers (UniFi and Firewalla cannot
write at all; NetBird and Cloudflare can, behind named ops and --force;
hh run on a shell host can do anything, gated only by the permission prompt),
and an explicit list of what the security model does NOT protect against.
In-repo rather than a GitHub wiki, deliberately. A wiki is a separate git
repository: doc changes cannot be reviewed in the same pull request as the code
they describe, and a page can only ever describe HEAD, so someone on an older
release reads about behaviour they do not have.
A CI job that makes the split safe to keep
Documentation drifts silently - nothing fails when a page describes a command
that was renamed - so .github/workflows/docs.yml asserts the parts that are
mechanically knowable:
- every
hhsubcommand mentioned anywhere inREADME.md,docs/orops/
exists in the dispatch table inbin/hh; - every broker op mentioned exists in that broker's own dispatch table;
- every internal markdown link resolves;
- every
bin/hh-<name>broker has adocs/integrations/<name>.md.
All four were verified to actually fail on planted drift, not merely to pass.
Fixed
ops/.claude/skills/security-audit/SKILL.md pointed at "the top-level README",
which is never installed - setup/main.sh rsyncs only ops/ to the box. It now
points at CLAUDE.md and the capability catalogs, which are installed, and
names the section that answers the question it raises.
Full notes: CHANGELOG.md#v1-5-2
v1.5.1
A full audit pass over both brokers, with shellcheck and by hand. shellcheck is
clean at warning level on each; everything below is the kind of defect it cannot
see.
One signature changed. hh cloudflare dns-set now REQUIRES the on|off
proxying argument for A, AAAA and CNAME records, where it previously defaulted
to off.
The reason is that a homelab legitimately needs BOTH settings on the same zone,
and which one is right depends entirely on what the record is for:
- a CNAME to
<tunnel-id>.cfargotunnel.commust be proxied - a tunnel
hostname does not work any other way; - a record pointing at a reverse proxy you run yourself (nginx proxy manager,
Caddy, Traefik) is usually meant to be grey-clouded, so that your proxy
terminates the connection rather than Cloudflare.
Both are ordinary and deliberate. So whichever way a default went it would be
silently wrong for the other half of the records, and the tunnel half fails
nastily: the hostname resolves, serves nothing, and reads as a broken tunnel
rather than a wrong record. There is no default because there is no answer that
holds for both, and the op says so and shows both forms instead of choosing.
(A secondary point, not the reason: an unproxied record publishes the origin
address, which dns-proxy off asks for --force before doing. That matters
less here, because grey-clouding is usually the intent rather than a slip.)
By the letter of the rule at the top of this file, changing the signature of an
existing command is breaking and therefore major. It ships as a patch
deliberately: dns-set has existed only since 1.4.0, released the same day.
A full pass over the two brokers with shellcheck and by hand. Nothing was
broken in a way that lost data, but four things were wrong:
- The
--forceretry hint did not requote arguments.${ARGS[*]}joins on
spaces, so a value that contains one -rename mesh laptop "my new name"-
printed as three arguments, and pasting the offered line would have run a
different command than the one it was offered for. A confirmation step whose
printed command does something else is worse than none. Each argument is now
requoted, embedded single quotes included. - The audit log did not record
--force. A destructive command that was
refused and one that was carried out logged identically, and telling those
apart afterwards is most of what that log is for. - Cloudflare's zone substring fallback was a no-op. It re-ran the same exact
query withmatch=any, which only says whether filters are ANDed or ORed;
the zone list has no "contains" parameter at all. Matching now happens here,
sorecords examplfindsexample.comas the comment always claimed. dns-setcould create an exposed record with no confirmation, while
dns-proxy offdemanded--forcefor the identical exposure. Proxying is now
a required argument for A, AAAA and CNAME rather than defaulting to off.
Neither default is safe: off publishes the origin address, and on is mandatory
for a CNAME to<tunnel-id>.cfargotunnel.com. There is no safe default, so
there is no default.
Also hardened _tls_pin, whose last statement was a test that returns 1 when no
certificate could be read. Every existing caller guards it with || true, so
nothing was failing - but a future one that forgot would have aborted a whole
registration under set -e over an outcome that is normal.
Full notes: CHANGELOG.md#v1-5-1