Provision the appliance-resident charly on a JetKVM
IP-KVM — a 32-bit ARM (armv7l) appliance with a uClibc/BusyBox userland and no
package manager.
A JetKVM cannot install the distro packages: its armv7l userland has no
apk/apt/rpm, and the package feeds are amd64/arm64. So charly reaches it
the only way that works — the published release binary + welded plugin set,
streamed over ssh.
charly-jetkvm install --host [email protected]
charly-jetkvm verify --host [email protected]
charly-jetkvm status --host [email protected]
charly-jetkvm uninstall --host [email protected]Everything to run a jetkvm: plan can be derived from the one ssh connection —
no committed hostname and no hand-copied token. charly-jetkvm env reads the
device's local_auth_token over ssh and prints the two environment variables the
jetkvm: verb consumes (JETKVM_HOST, JETKVM_AUTH_TOKEN):
eval "$(charly-jetkvm env --host [email protected] --export)"
charly check run jetkvm-device-readonly # screenshot + status
charly check run jetkvm-control-readonly-input # screenshot → move → type → screenshotThe verb resolves the device address as authored host: → JETKVM_HOST → deploy
venue, so a plan can author no device address and stay portable. Plain form:
charly-jetkvm env --host [email protected]
# JETKVM_HOST=jk.example.ts.net
# JETKVM_AUTH_TOKEN=<the device's local_auth_token>
charly-jetkvm env --host [email protected] --device-host jk.tailnet.ts.net--device-host overrides the printed JETKVM_HOST when the ssh target and the
reachable device name differ. This tool never writes the token to a file; it
only prints it, so the caller decides whether to export it.
Upstream JetKVM mints local_auth_token only inside a successful
login/setup handler (config.LocalAuthToken = uuid.New()), and never re-mints it
at startup. A device in password mode whose token was cleared — a logout, a
config reset, a crash before SaveConfig — therefore answers HTTP 401 to
every authenticated request, with no way back without the password.
charly-jetkvm auth repairs exactly that state: it writes a fresh uuid into
local_auth_token and restarts jetkvm_app (the same killall + respawn
upstream's own e2e helper uses). It obeys one rule — add only what is missing,
never reset existing auth:
- a non-empty token is returned untouched (an existing live session is never invalidated);
- a device in
noPasswordmode legitimately has an empty token and is never minted into (that would silently start demanding auth); passwordmode with an empty token is the one state healed.
# repair, then print the repaired environment in one step:
eval "$(charly-jetkvm env --host [email protected] --export --heal)"
# or inspect/repair the token alone:
charly-jetkvm auth --host [email protected] # prints JETKVM_AUTH_TOKEN=…
charly-jetkvm auth --host [email protected] --print # the bare tokenenv without --heal fails loudly when a password-mode device has no token
(telling you to rerun with --heal) rather than printing a 401-bound empty one.
The release's charly-linux-<arch> binary plus charly-plugins-linux-<arch>.tar.gz
(the 12 welded per-plugin providers + their .providers word manifests), into
/userdata/charly by default:
/userdata/charly/charly # the CalVer-stamped binary
/userdata/charly/plugins/ # plugin-<word> + <word>.providers
The arch is derived from the device's uname -m: armv7l → the release's
armv7 assets (a statically-linked 32-bit ARM ELF). Override with --arch.
Two facts about the device shape this tool:
- Its
wgetdoes not validate TLS. The JetKVM BusyBox build printsnote: TLS certificate validation not implemented, so a download performed ON the device is MITM-exposed.charly-jetkvmtherefore downloads on the HOST withgh(TLS-validated) and streams the bytes over the authenticatedsshchannel. There are no published checksums on the release either, so the trusted channel is the integrity boundary. - It has ~199 MB of RAM and one core. Running
charly mcp serveon the device forked a full CLI model and exhausted memory, hanging the appliance during development.charly-jetkvmdeliberately does not install or start an MCP server. The appliance getscharlyfor its local, project-less verbs (version,doctor,clean, …); driving the KVM itself is the host-sidejetkvm:verb (opencharly/plugin-jetkvm), which talks to the device's own control plane directly and needs no charly on the device at all.
install refuses to proceed when the device reports less than --min-free-mb
(default 120 MiB) of MemAvailable, because installing into a memory-starved
system is how a prior attempt hung it.
| flag | meaning |
|---|---|
--host <target> |
ssh(1) destination: an alias from ~/.ssh/config, or user@host[:port]. Required. |
--version <CalVer> |
the charly release to install. Default: the newest published v* release. |
--prefix <path> |
install prefix ON THE DEVICE (default /userdata/charly). |
--arch <suffix> |
override the auto-detected artifact arch (amd64/arm64/armv7). |
--ssh-arg <arg> |
extra argument passed to every ssh(1) call (repeatable) — identity file, -p, ProxyJump, etc. |
--min-free-mb <N> |
install refuses below this much device MemAvailable (default 120). |
--device-host <name> |
(env) the JETKVM_HOST value to print; defaults to the ssh target's host part. |
--export |
(env) print export JETKVM_...=... lines for eval "$(...)". |
--heal |
(env) mint a missing token first (password mode only); never overwrites an existing one. |
--print |
(auth) print the bare token instead of JETKVM_AUTH_TOKEN=…. |
--yes |
skip the uninstall confirmation prompt. |
CHARLY_JETKVM_GH selects the gh binary (default gh).
CHARLY_JETKVM_CONFIG selects the device config path (env; default
/userdata/kvm_config.json).
charly-jetkvm install --host jk.example.ts.net \
--ssh-arg -i --ssh-arg ~/.ssh/jetkvm_ed25519 \
--ssh-arg -p --ssh-arg 2222or, more simply, put a Host stanza in ~/.ssh/config and pass the alias.
verify is the acceptance gate — it runs on the device and asserts the install
actually works, not that files were copied:
charly versionequals the requested CalVer (the release stamps it).- the plugin directory holds
.providersmanifests. - a baked command word (
clean --help) dispatches project-less through the plugin loader — this fails if the plugins cannot be connected. doctorruns (non-fatal: an appliance with no container engine legitimately reports missing docker/podman, but the plugin dispatch is already proven).
A JetKVM is a physical appliance wired into a real machine's keyboard, video and
power. charly-jetkvm only reads the device: it writes files under
--prefix and nothing else. There is no power/input/media action here — those
belong to the jetkvm: check verb, which gates every mutating method behind
allow_control.
sh -n charly-jetkvm # POSIX syntax
shellcheck charly-jetkvm # lint (CI runs this)The CI workflow runs shellcheck, the POSIX syntax check, and an end-to-end
container bed (tests/run-container-bed.sh): a throwaway sshd container
stands in for the appliance, and install → verify → status → uninstall
run against it. The armv7 execution proof is the live run on a real JetKVM,
reported in the PR that changes this tool — the appliance itself is not a
disposable CI target.