Configure
Store credentials
Keep an observation credential in Secret Service and give Miilo a private runtime-file reference.
Start without secrets
Local observation of explicitly selected sessions needs no Miilo API credential and does not read an agent’s login cache. The remaining instructions apply only when you deliberately connect an authenticated remote observation endpoint.
The manual Secret Service bridge below requires an already-unlocked collection. A custom keyring is not necessarily unlocked by a passwordless desktop login. For automatic startup, your deployment must provide a qualified encrypted session-credential integration; do not fix repeated prompts by removing encryption or storing the login password. Miilo’s readiness check must report unavailable access without repeatedly opening an unlock prompt.
Three separate kinds of access
Tailscale provides a network route. SSH permits operating-system access. A Miilo API credential permits observation access. None substitutes for another. Ask your deployment operator for the observation URL and an appropriately scoped credential; do not copy a coding agent’s login cache.
The current widget helper accepts tokenFile references, not native keyring references. This Linux bridge retrieves a keyring item into an owner-readable runtime file. That file contains plaintext while available; it is not encrypted storage or protection against other processes running as your user.
Use a persistent, password-protected default keyring. Secret Service must be running and unlocked in your desktop session. A successful store/read check does not prove reboot persistence; verify it after a later login or reboot. There is no persistent plaintext fallback in this setup.
Store the credential privately
Run this in a Bash terminal in your Linux desktop session. Install your distribution’s libsecret tools and a Secret Service provider first. Use a stable endpoint identifier; home-automation is an example, not a required name. The prompt hides your input, and the secret is sent on stdin rather than placed in command arguments.
Never paste the secret into source code, screenshots, an issue, or a chat. Obtain it through the operator’s approved credential-delivery process.
read -r -s -p 'Miilo observation token: ' miilo_secret; printf '\n'
printf '%s' "$miilo_secret" | secret-tool store --label='Miilo observation endpoint' application miilo endpoint home-automation
unset miilo_secretPrepare a runtime credential file
Download the small Bash bridge from this website, inspect its contents, then install it for your user. It uses secret-tool and GNU timeout. Lookup is bounded; an unavailable or invalid keyring item removes the previous runtime credential and fails visibly.
The bridge creates a mode-0700 directory under XDG_RUNTIME_DIR and a mode-0600 credential file. It does not put the secret in JSON, a service file, or a shell profile. Runtime-directory lifetime depends on the user-session configuration; do not assume a lock-screen action or closing a terminal deletes it.
mkdir -p ~/.local/libexec
curl -fS https://miilo.tech/guides/miilo-keyring-credential.sh -o /tmp/miilo-keyring-credential.sh
# Inspect the file before installing it:
less /tmp/miilo-keyring-credential.sh
install -m 700 /tmp/miilo-keyring-credential.sh ~/.local/libexec/miilo-keyring-credential
~/.local/libexec/miilo-keyring-credential home-automationRefresh it at login
Save the following unit as ~/.config/systemd/user/miilo-observation-credential.service, replacing home-automation with the identifier used above. It prepares the runtime file at user-session startup and removes it when stopped. It does not start an observer or launch agent work.
If the keyring is locked when the service starts, unlock it through your normal desktop prompt and restart the service. The service does not unlock the keyring, retry forever, or write a fallback credential into your home directory.
[Unit]
Description=Prepare Miilo credential from the user keyring
After=gnome-keyring-daemon.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=%h/.local/libexec/miilo-keyring-credential home-automation
ExecStop=/usr/bin/rm -f %t/miilo-credentials/home-automation.token
UMask=0077
TimeoutStartSec=12
NoNewPrivileges=yes
[Install]
WantedBy=default.targetRegister the remote system
Enable the user service, then run the supported widget setup. Choose add/update endpoint, supply the observation URL, and enter @ followed by the absolute runtime-file path at the hidden credential prompt. Run the printf command below to see the reference; it does not print the secret.
Select the providers you want to observe and leave actions disabled initially. Verify a real snapshot and a natural update before enabling any supported actions. Client-side action disabling is not a substitute for server-side credential scopes.
systemctl --user daemon-reload
systemctl --user enable --now miilo-observation-credential.service
printf '@%s/miilo-credentials/home-automation.token\n' "$XDG_RUNTIME_DIR"
miilo-owl setup
miilo-owl refreshRotate, disconnect and recover
To rotate, update the same keyring item with the hidden-input command, then restart miilo-observation-credential.service and refresh Miilo. Confirm the new credential works. Revoking the old token is an operator-side action.
To disconnect, remove the endpoint through miilo-owl setup. If no other consumer needs this credential bridge, disable and stop its user service, then clear the matching keyring item. Clearing a local item does not revoke its upstream credential.
A 401 means the service was reached but did not accept the credential. Check the selected endpoint, runtime-file availability and operator provisioning. Do not repeatedly retry authentication or substitute unrelated SSH/model credentials. This guide applies to Linux desktops with Secret Service; Android/PRoot and macOS require separate credential-store arrangements.
systemctl --user restart miilo-observation-credential.service
# When deliberately removing this credential:
systemctl --user disable --now miilo-observation-credential.service
secret-tool clear application miilo endpoint home-automation