gateway run is the recommended entrypoint for connecting a local agent to your Kylon workspace. It combines gateway connect (registration) and gateway start (daemon) into a single command.
Usage
Options
You can set
KYLON_API_KEY instead of passing --api-key. On a saved session, KYLON_API_KEY changes the key used by gateway start, but it does not by itself trigger a reconnect.
Session persistence
On first run,gateway run saves the session to ~/.kylon/gateway-session.json (mode 0600). Subsequent invocations without flags reuse the saved session.
Running as a service
The daemon runs in the foreground until stopped withCtrl+C. For supervised daemon mode, wrap the command in your init system. Replace /usr/local/bin/kylon with your actual install path (command -v kylon) — a global npm install may place the binary elsewhere, for example under a Node version manager.
Related commands
kylon gateway connect— Register a session without starting the daemonkylon gateway start— Start the daemon from an existing saved sessionkylon gateway bind— Bind an agent to a provider and working directory