Skip to content

Releases

v1.7.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 14:00
9c23f87

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:
    set ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN/ANTHROPIC_API_KEY and the
    model in the env block of ~hhagent/.claude/settings.json. Claude Code
    applies it to every session, and HomelabHero never writes that file, so it
    survives hh 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 or apiKeyHelper, instead of offering a
    subscription sign-in that is not needed.

Full notes: CHANGELOG.md#v1-7-0

v1.6.3

Choose a tag to compare

@github-actions github-actions released this 14 Oct 11:39
9625783

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.json denied Read(/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
    now Read(//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 --add deny rule only matched --add as the first argument;
    hh scan 10.0.0.0/24 --add slipped past it. The rule is now
    Bash(hh scan *--add*). hh itself still refuses --add without sudo.
  • CLAUDE.md imported CLAUDE.local.md, which Claude Code already loads on
    its own beside CLAUDE.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, reboot and halt as exact commands,
    which an argument sidestepped; they take a trailing wildcard now, and
    rm -fr is denied beside rm -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 next hh update and the npm
    copy is removed; hh doctor shows which one is running. On every update the
    installer also runs claude update for 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 @import at 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-ops and homelab-triage gained
    the pointer; the other platform skills already had it), and CLAUDE.md lists
    the catalogs and says to read the relevant one. The catalogs themselves are
    unchanged.
  • CLAUDE.md is 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 to netbird-ops and cloudflare-ops. The passwordless-sudo
    rule and its exact fix steps stay in CLAUDE.md, where 1.0.x put them so
    Claude can give them the moment it hits the wall; truenas-ops and
    host-ops now repeat the step for their platform.
  • Permission rules use the documented trailing-wildcard form, Bash(hh list *)
    rather than the Bash(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 $schema line the docs recommend,
    so an editor validates it.
  • docs/security.md says what the hh run prompt 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.md and docs/troubleshooting.md describe
    the native install and the local-notes file as they now are.

Full notes: CHANGELOG.md#v1-6-3

v1.6.2

Choose a tag to compare

@github-actions github-actions released this 07 Oct 11:02
9edeca9

Documentation only, plus the shipped TrueNAS notes. No code path changes.

Added

  • docs/troubleshooting.md: every line hh doctor can 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.md and updating.md.
  • docs/install.md gains "The port, and keeping the UI off the LAN": PORT
    and HOST in cloudcli.env, binding to localhost, and what a reverse proxy
    must pass through (WebSockets) for the chat and the terminal to work.
  • docs/layout.md gains "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.md and docs/security.md lost section headings when the
    README was split into docs/ 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.md linked to a heading that lives in docs/updating.md
    (fragment links are not checked by CI), and still said "the hh commands
    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
    manual hh update, and why.
  • docs/updating.md lists what hh doctor checks about the weekly job since
    1.6.1, and no longer implies git diff on 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: read system.version and the live method list rather
    than trusting a number.

Full notes: CHANGELOG.md#v1-6-2

v1.6.1

Choose a tag to compare

@github-actions github-actions released this 07 Oct 10:36
4719ae3

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 with PATH=/usr/bin:/bin, and
    the sudoers step calls visudo, 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 update from a shell goes through sudo's secure_path, which has
    /usr/sbin, so it worked, and the failure sat in
    /var/log/homelabhero-update.log where nothing surfaced it. Both
    hh-update and the installer now append the sbin directories to PATH,
    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 ran hh update or 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, service and domains softened EVERY
    failure to "Bring Your Own Proxy is not available on this NetBird", exit 0,
    and hh netbird traffic did 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 for traffic, 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 device and hh unifi stats validate the device id before splicing
    it into a URL. The get op 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 names access-apps, the
    op that is documented and allow-listed (the old name still works when typed).

  • hh rm-host checks for sudo up front like every other operator command,
    instead of failing partway through.

  • SECURITY.md said the agent may run "the two broker helpers". The sudoers
    rule has granted six since the API brokers arrived, and docs/security.md
    already said so; both now agree.

  • docs/layout.md described "two read-only router APIs" and listed the skills
    as of 1.3.0, omitting netbird-ops and cloudflare-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/log and
    ~hhagent, and who owns each piece.

  • docs/security.md named four capability catalogs; there are eight.

  • docs/commands.md lacked hh inventory --save, hh scan --add, the hh cf
    alias, and what --force does. docs/updating.md claimed git diff on 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.md documented six registry keys. Entries for API hosts
    also carry PIN, WRITE, SITE/SITE_NAME, GID/BOX and ACCOUNT,
    which the skills rely on, so they are listed.

  • CLAUDE.md described the hh list columns as "alias, platform, ip, port,
    user" and then depended on the ACCESS column 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 doctor checks 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 --lts and 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/node is
    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

Choose a tag to compare

@github-actions github-actions released this 23 Sep 01:12
3102843

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 by hh add-host, hh provision and the
    hh scan --add picker. It is reached with hh run over SSH like any other
    host; the connection broker is unchanged.
  • hh overview shows RouterOS vitals: identity, /system resource,
    /system health, and any port that is enabled but has no link.
  • hh inventory shows interfaces, bridge ports and the bridge VLAN table.
  • hh doctor reports the login's RouterOS /user group, and says plainly when
    it is not read, since then hh run can 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 protect hh run.
  • hh add-host defaults the RouterOS user to admin and prints the
    /user ssh-keys import steps instead of offering ssh-copy-id, which cannot
    work against RouterOS.

Fixed

  • The liveness probe in hh overview and hh inventory ran true, which
    RouterOS rejects as a bad command name, so a MikroTik that answered hh run
    fine was reported UNREACHABLE. hh test and hh doctor had the same problem
    with echo. 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

Choose a tag to compare

@github-actions github-actions released this 31 Aug 11:09
d2b86e6

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 unifi no longer reports a broken console as an empty one. _site was
    called inline in the request path - _get ".../sites/$(_site)/devices" - and
    die inside 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 unifi no 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-unifi asks 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 run against a NetBird or Cloudflare alias named the wrong platform and
    called it read-only. All three token platforms register with AUTH=token, and
    the refusal keyed on that rather than on PLATFORM, 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, so hh 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_data reported unexpected 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-netbird left by an earlier edit.

Full notes: CHANGELOG.md#v1-5-5

v1.5.4

Choose a tag to compare

@github-actions github-actions released this 31 Aug 10:53
c892e81

Changed

  • hh firewalla trends scopes 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/boxes and 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 group field 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

Choose a tag to compare

@github-actions github-actions released this 31 Aug 10:48
e7d2040

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 lists was 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 .count since built-ins do not
    inline targets. The same two-owner query was also taught as the raw
    escape-hatch example in capabilities/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 WHOLE ops tree, but the update only manages
    .claude/, capabilities/ and CLAUDE.md. So the user's own infra/,
    inventory/, runbooks/ and hosts/ 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 - but hh doctor reads the baseline to decide
    which files carry local edits, so filling in infra/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 in hh doctor. There is now a single
    SHIPPED_PATHS in the installer that the seed, the prune and the sync all
    read, and hh doctor derives its answer from the pruned baseline rather than
    a list of its own.


Full notes: CHANGELOG.md#v1-5-3

v1.5.2

Choose a tag to compare

@github-actions github-actions released this 27 Aug 13:06
d8a69b5

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 hh subcommand mentioned anywhere in README.md, docs/ or ops/
    exists in the dispatch table in bin/hh;
  • every broker op mentioned exists in that broker's own dispatch table;
  • every internal markdown link resolves;
  • every bin/hh-<name> broker has a docs/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

Choose a tag to compare

@github-actions github-actions released this 27 Aug 12:36
50741be

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.com must 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 --force retry 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 with match=any, which only says whether filters are ANDed or ORed;
    the zone list has no "contains" parameter at all. Matching now happens here,
    so records exampl finds example.com as the comment always claimed.
  • dns-set could create an exposed record with no confirmation, while
    dns-proxy off demanded --force for 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