Host metrics from a 7 MB agent over OTLP, shown above your Claude Code prompt.
╭─ SPAWNER ──────────────────╮╭─ FURNACE ─────────────────────────╮╭─ CARREL01 ─────────────────╮
│ CPU 1 MEM 73 DSK 67 ││ CPU 4 MEM 36 DSK 87 GPU 3 ││ CPU 1 MEM 4 DSK 14 │
╰──────────────────── 28K/s ─╯╰─────────────────────────── 12K/s ─╯╰──────────────────── 25K/s ─╯
Looking at a few machines used to mean an ssh round each, or a Prometheus stack that you never had time to build. hum is one binary per machine that reports to any OpenTelemetry endpoint, and a Claude Code band that shows every machine as one panel in a row.
- Reports host metrics: CPU, memory, every fixed disk, network bytes, uptime and GPU load every 15 seconds, as OTLP/HTTP JSON.
- Stays small: one static binary (7 MB on disk, 17 MB resident) for Linux, Windows and macOS, with no SDK and no config file.
- Runs where binaries cannot: with Windows Smart App Control on, the installer uses
hum.ps1instead, which sends the same metrics. - Shows them in Claude Code: the
humplugin draws one line above the prompt, offline machines in red.
curl -fsSL -o hum https://github.com/zyx1121/hum/releases/latest/download/hum-darwin-arm64
chmod +x hum && ./hum -onceYou should see one OTLP JSON payload with this machine's metrics. In this mode, hum sends nothing. Builds for Linux, Windows and Intel Macs are on Releases.
-
Create an ingest token on your OTLP backend. With sensorium:
docker compose run --rm ingest register-project devices. -
Install the agent on each machine with that token and
-endpoint https://<backend>/v1/metrics:OS Runs as How Linux systemd service copy deploy/hum.service to /etc/systemd/system/, put the token in/etc/hum/token,systemctl enable --now hummacOS launchdagentcopy deploy/tw.zyx.hum.plist to ~/Library/LaunchAgents/, replace the placeholders,launchctl bootstrap gui/$(id -u) <plist>Windows service, or a startup task under Smart App Control put hum.exe,hum.ps1and atokenfile next to deploy/install-windows.ps1 and run it as Administrator -
Add the band to Claude Code:
/plugin marketplace add zyx1121/hum /plugin install hum@hum
It reads sensorium's MCP endpoint with the token in
SENSORIUM_ZYX_TOKENand needsCLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1.
Important
The token file is the only secret. The Windows installer limits it to SYSTEM and Administrators. The systemd unit gives it to a dynamic user as a credential.
Proxmox VE 9.1 and later can skip the agent: its built-in OpenTelemetry metric server reports the node and every guest.
The PVE metric server does not send temperatures. deploy/temp-watch adds them: a 60-second timer reads the CPU, NVMe and SATA disk sensors and sends hw.temperature with the same endpoint and token.
deploy/disk-watch reports storage health every 10 minutes: ZFS pool health, capacity and scrub age, SMART verdict and bad sectors per disk, and the age of the newest Proxmox Backup Server snapshot per guest. Each problem also goes out as a WARN log.
| Flag | Env | Sets | Default |
|---|---|---|---|
-endpoint |
HUM_ENDPOINT |
OTLP/HTTP metrics URL | required |
-token-file |
HUM_TOKEN_FILE |
file holding the bearer token | none |
-host |
HUM_HOST |
host.name to report |
OS hostname, lowercased |
-interval |
time between reports | 15s |
|
-once |
print one payload and exit | off |
flowchart LR
A[hum on each machine] -- OTLP/HTTP JSON, bearer token --> S[(sensorium)]
P[PVE metric server] -- OTLP --> S
S -- MCP query_metrics --> B[Claude Code band]
Each tick, hum reads the host through gopsutil and posts one export request using OpenTelemetry semantic-convention names. Every point carries host.name, so a backend that drops the resource can still identify each machine. The agent holds only an ingest token, which can write metrics and read nothing.
Facts for coding agents and LLM tools.
- Summary: Host metrics agent that posts OTLP/HTTP JSON every 15 seconds, plus a Claude Code band that shows the metrics from sensorium.
- Type: cli
- Interfaces: CLI
hum. hum is an OTLP/HTTP client, not a server. The band is an MCP client of sensorium (query_metrics). - Install: download
hum-<os>-<arch>from https://github.com/zyx1121/hum/releases/latest - Run:
hum -endpoint https://<backend>/v1/metrics -token-file <path> - Verify:
hum -once - Config:
HUM_ENDPOINT,HUM_TOKEN_FILE,HUM_HOST, andSENSORIUM_ZYX_TOKENfor the band - Secrets: the ingest token in the file given to
-token-file, andSENSORIUM_ZYX_TOKENfor the band - Limits: hum does not buffer. It drops a failed post, and the next tick tries again. The machine list of the band is hard-coded in
plugin/hooks/register.tsx.
git clone https://github.com/zyx1121/hum && cd hum
go test ./... && go build -o hum .
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude plugin test pluginCI runs go vet for Linux and Windows, go test, and builds all five targets. A v* tag publishes them as a release.