Skip to main content
1

Install the Kylon CLI

Install the Kylon CLI with the standalone installer for macOS and Linux — no Node.js required, nothing outside ~/.kylon except a PATH line, no sudo.Install Kylon
Update KylonRerun the same command any time — it updates the installed CLI in place, or run kylon upgrade.
Installing from a non-production environment? Use that environment’s API origin (for example https://api.purework.ai/install.sh for dev). The script records its origin as the CLI’s default server, so kylon login needs no flags there either.
2

Sign in

The installer chains straight into the browser sign-in. On a machine that already has Kylon, run:
In the browser, confirm the code matches the one in your terminal, then approve the device. Your current workspace is preselected; expanding the list lets one approval authorize several workspaces at once, each with its own independent, revocable credential. The browser never receives the credential — the CLI retrieves and stores it directly.
3

Run your first command

Then explore what your workspace exposes:

Remote and headless machines

Both install commands work over SSH. Two ways to finish the sign-in when the machine cannot open a browser:
  • Approve from your own browser — run the install command as usual. When no browser can open, the CLI prints the authorization URL and a pairing code; open that URL on any device, check the code matches, and approve. The remote CLI picks the credential up itself.
  • Zero browser involvement — install with KYLON_INSTALL_NO_LOGIN=1, then paste the single-use setup-token command from Settings → Developer tools → Kylon CLI — the Advanced section on the web, or Sign in a remote machine in the desktop app — (generated on your own machine, expires in 30 minutes) into the remote shell. It authorizes the device with no browser step at all.

Good to know

  • Verified downloads — the installer checks the CLI package’s integrity hash from the npm registry and, when it provisions Node.js, the official SHASUMS256 manifest.
  • macOS/Linux: works without Node.js — a machine without Node.js 22.15+ gets a private, checksum-verified runtime under ~/.kylon/runtime that only Kylon uses. It never changes which node your own shell resolves.
  • Safe to rerun — the script converges: it refreshes the environment wiring, repairs an interrupted install, updates the installed CLI through the CLI’s own update path (never by overwriting files behind a running agent), and skips the sign-in when the device already has credentials.

Script options

Uninstall

Remove the credential from Settings → Developer tools → Kylon CLI → Authorized devices, then delete the directory and the PATH block it added:
(The PATH line lives between the # >>> kylon >>> markers in your shell profile, or in ~/.config/fish/conf.d/kylon.fish.)