Docs/Reference

Command line

Every pi-kit command: the service, models, the browser, phones, and other instances.

The pi-kit command runs and manages the pi-kit service on this computer, also over SSH. A server install puts it on your PATH. With the desktop app, choose Install the pi-kit command in Settings → General → Background.
pi-kit --help prints the same list.

Service#

The service is pi-kit's backend. It keeps background agents and phone access working when the pi-kit window is closed. Keep running when pi-kit is closed in Settings → General does the same as install and uninstall.
CommandWhat it does
pi-kit service statusWhether the background service is installed and running (exit code 3: not running; --json for scripts)
pi-kit service installStart pi-kit's backend at sign-in, and now (--level boot: at boot, with nobody signed in)
pi-kit service uninstallStop it and no longer start it at sign-in
pi-kit service startStart it now
pi-kit service stopStop it until the next sign-in or start
pi-kit service restartStop it and start it again
pi-kit service logsPrint the end of service.log and where the logs are
pi-kit serveRun it in this terminal instead, for a container or another supervisor
pi-kit update [--check]Update this server install to the latest release (the desktop app updates itself)

Models#

CommandWhat it does
pi-kit login [<provider>]Sign in to a provider with its own flow (--api-key or --oauth where it offers both)
pi-kit login --local <url>Add a local model server (llama.cpp, llama-swap, Ollama, any OpenAI-compatible one)
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

Browser#

CommandWhat it does
pi-kit openStart the pi-kit app when it is installed; otherwise open pi-kit in this computer's browser with a one-time link (over SSH it prints it)
pi-kit open --browserThe browser, also when the app is installed
pi-kit open --revokeSign out every browser pi-kit open signed in

Desktop app#

CommandWhat it does
pi-kit desktop installDownload the pi-kit app of this server's version from its release, check it, install it for you and start it; it attaches to this server's service

Phone and tailnet#

CommandWhat it does
pi-kit remote statusWhether this pi-kit is reachable on your tailnet (exit code 3: it is not)
pi-kit remote enable [--port N]Publish it on your tailnet with Tailscale Serve (the HTTPS port it used last, else 8443)
pi-kit remote disableStop publishing it
pi-kit pairA pairing link and QR code for a phone; you approve it after comparing codes
pi-kit devicesPaired devices and the requests waiting for you
pi-kit devices approve <request>Approve a request whose confirmation code matches the device's
pi-kit devices reject <request>Reject a request
pi-kit devices revoke <device>Sign a paired device out
See Remote access for the Tailscale setup.

Instances#

CommandWhat it does
pi-kit peersThis instance, its paired instances and the requests waiting for you
pi-kit peers inviteA short-lived invitation for another pi-kit instance
pi-kit peers connectPair with the instance whose invitation you paste
pi-kit peers approve <pair-id>Approve a request once its confirmation code matches the other side (--allow-relay also lets this instance's approved phones reach the other one)
pi-kit peers reject <pair-id>Reject a request
pi-kit peers unpair <peer-id>Stop a pairing
pi-kit peers key-file --yesSeal the instance key with an owner-only file, for machines without a keychain