1
The Hewy Daemon
One program that keeps your chats and terminals running on the server. Download the build for your server, and check it's the one Hewy released before you run it.
Find your build
uname -sm
# Linux x86_64 → hewyd-x86_64-linux
# Linux aarch64 → hewyd-aarch64-linux
# Darwin arm64 → hewyd-aarch64-darwin
# Darwin x86_64 → hewyd-x86_64-darwin
Download it, with its signed list of checksums
v=latest
f=hewyd-x86_64-linux # yours, from above
base=https://hewy.ai/releases/hewyd/$v
curl -fLO $base/$f -O $base/manifest.json -O $base/manifest.json.sig \
-O https://hewy.ai/guide/hewy-release.pub
Check the signature, then the checksum
The list is signed with Hewy's release key, which is kept offline. One line of manifest.json.sig must check out against it (the others are for test builds):
ok=no
while read -r s; do
printf '%s' "$s" | base64 -d > sig.bin
if openssl pkeyutl -verify -pubin -inkey hewy-release.pub \
-rawin -in manifest.json -sigfile sig.bin >/dev/null 2>&1; then ok=yes; break; fi
done < manifest.json.sig
echo "Signed by Hewy: $ok" # must say yes
grep -o "\"file\":\"$f\",\"sha256\":\"[0-9a-f]*\"" manifest.json
sha256sum $f # on a Mac: shasum -a 256 $f
# The two must match.
The release key's fingerprint, as base64: dvbu7hkDRYIjLAF6Y1B5rKeryENAoVtVOr8eeiGLZ/k=. It's the same key the Hewy app is built to trust.
Install it
mkdir -p ~/.local/bin
install -m 755 $f ~/.local/bin/hewyd
~/.local/bin/hewyd --version
Keep it running
On Linux with systemd, as a user service, so it starts with the server:
mkdir -p ~/.config/systemd/user
cat > ~/.config/systemd/user/hewyd.service <<'EOF'
[Unit]
Description=Hewy Daemon (keeps your AI agent sessions running)
After=network-online.target
[Service]
ExecStart=%h/.local/bin/hewyd serve --wait
Restart=on-failure
RestartSec=2
[Install]
WantedBy=default.target
EOF
systemctl --user daemon-reload
systemctl --user enable --now hewyd.service
To keep it running after you log out (Set Up's "Keep agents running after you log out"):
loginctl enable-linger "$(id -un)" # or, if refused: sudo loginctl enable-linger "$(id -un)"
On a Mac, Hewy installs a LaunchAgent, ~/Library/LaunchAgents/ai.hewy.hewyd.plist, that runs ~/.local/bin/hewyd serve --wait while you're logged in to the desktop. Without it, the daemon starts when Hewy connects.
Without systemd (Alpine, some containers), nothing else is needed: Hewy starts the daemon when it connects, and it runs until the server restarts.