Docs/Reference

Server and CLI

The service host, npm and server installs, the background service and the pi-kit command.

pi-kit runs as a service host with clients. The host runs the backend and can outlive the desktop window. The desktop app, a browser on the same computer and paired phones are its clients. The pi-kit command manages the host from a terminal, including over SSH.

Install#

InstallGet itUpdates
Desktop appThe release's .dmg (macOS, Apple Silicon), .exe (Windows x64, ARM64) or .AppImage (Linux x64, ARM64). See Installation.The app's updater, or pi-kit update
npmnpm install -g @soverius-ai/pi-kitpi-kit update
Server archiveThe release's pi-kit-server-<version>-<target>.tar.gz (.zip on Windows), checked against SHA256SUMSpi-kit update
The npm package installs only the build for your machine and brings its own Node 24; the launcher needs Node 18 or later. The server archive also carries its own Node in runtime/.
In the desktop app, Settings → General → Preferences → Background → Install the pi-kit command puts pi-kit on your PATH.
On a server install, pi-kit desktop install downloads the desktop app of the same version, checks it and starts it.

Set up a server#

npm install -g @soverius-ai/pi-kit
pi-kit service install     # start the backend at sign-in, and now
pi-kit login               # sign in to a model provider
pi-kit open --browser      # open the UI in this computer's browser
pi-kit remote enable       # publish it on your tailnet
pi-kit pair                # pair a phone
Over SSH, pi-kit open --browser prints a one-time link and an ssh -L command for reaching it from your own computer. The link can be exchanged once, within two minutes. The UI is served on loopback only; for phones use Remote access.
A browser client has no embedded browser: Artifacts shows an app preview instead, and Electron-only features need an attached desktop app.

Run in the background#

Settings → General → Preferences → Background → Keep running when pi-kit is closed does what pi-kit service install and uninstall do. With it on, the backend starts when you sign in and keeps running after you close the window, so background agents, rooms and phone access keep working.
At sign-inAt boot, with nobody signed in
macOSLaunchAgentLaunchDaemon that runs as you: pi-kit service install --level boot
Linuxsystemd user unitThe same unit, with loginctl enable-linger
WindowsRun key with a windowless supervisorTask Scheduler task (server install; asks for the account password once)
Automatic backend recovery is off by default. Turn it on with Settings → General → Preferences → Backend recovery or pi-kit watchdog enable. Then the host restarts the backend after a crash or failed health checks.
Boot start does not unlock disk encryption or the credential store. On macOS the login keychain may be locked before you sign in; Read keys while I'm away keeps copies the service can read without Touch ID.

Commands#

pi-kit --help lists all commands.
CommandWhat it does
pi-kit service statusWhether the service is installed and running. Exit code 3 when it is not; --json for scripts.
pi-kit service installStart the backend at sign-in, and now. --level boot on macOS: at boot.
pi-kit service uninstallStop it and no longer start it.
pi-kit service start, stop, restartControl the service.
pi-kit service logsThe end of service.log, and where the logs are.
pi-kit serveRun the host in this terminal, for a container or another supervisor.
pi-kit update [--check]Check for or install an update, silently.
pi-kit login [<provider>]Sign in to a model provider. --api-key or --oauth where both exist.
pi-kit login --local <url>Add a local OpenAI-compatible server (llama.cpp, llama-swap, Ollama).
pi-kit logout <provider>Remove a provider's stored sign-in.
pi-kit model [<provider>/<id>]Show or set the default model for new threads.
pi-kit openStart the installed app, or open the browser with a one-time link. --browser forces the browser; --revoke signs every browser out.
pi-kit desktop installInstall the desktop app of this server's version.
pi-kit watchdog status, enable, disableAutomatic backend recovery.
pi-kit remote status, enable [--port N], disablePublish pi-kit on your tailnet with Tailscale Serve.
pi-kit pairA pairing link and QR code for a phone.
pi-kit devicesPaired devices and waiting requests; approve, reject, revoke.
pi-kit peersThis instance, paired instances and waiting requests; invite, connect, approve, reject, unpair.
pi-kit peers key-file --yesSeal the instance key in an owner-only file, for a machine without a credential store.
pi-kit rooms …Run rooms without a window.

Updates#

pi-kit update --check checks for a release; pi-kit update installs it without an installer wizard, also over SSH. An open desktop uses its own updater. Otherwise a detached updater replaces the app, checks it against the release manifest, and restarts the service. A failed swap rolls back to the previous copy.
Silent does not mean elevated: the update fails before it downloads anything when it lacks write access. Windows portable executables, a mounted macOS DMG and unpacked Linux builds cannot update themselves.

Files#

macOSLinuxWindows
Data folder~/Library/Application Support/pi-kit~/.config/pi-kit%APPDATA%\pi-kit
Logs~/Library/Logs/pi-kit~/.config/pi-kit/logs%APPDATA%\pi-kit\logs
PI_KIT_DATA_DIR points a command or a host at another data folder. One host runs per data folder. In the logs, service.log is the host, backend.log the backend, main.log the desktop app, supervisor.log the Windows supervisor, update.log updates and desktop-update.log detached desktop updates.