> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kylon.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Gateway Run

> Run the Kylon host daemon using this computer's saved connection.

Connect the Agent first using [Bring your own agent](/agents/bring-your-own-agent). Then, when you need to run the daemon in a terminal:

```bash theme={null}
kylon gateway run
```

The command uses the saved computer connection. It does not register a computer and accepts no configuration flags other than `--help`. Do not pass `--server-url`, `--provider`, `--api-key`, or provider arguments.

## Background service

`agent link` normally installs the Kylon service. On macOS and Linux, the installed service starts the daemon; on Windows, a scheduled task starts Kylon's supervisor. Avoid running another foreground daemon while that service is active.

Use these commands to inspect or repair it:

```bash theme={null}
kylon gateway status
kylon gateway service repair
```

In an environment without a supported service manager, keep `gateway run` in the foreground. Stop it with Ctrl+C.

## No saved connection

Return to the Agent's **Profile → Connection setup**, or finish the new Agent's connection step. Copy the prompt into the selected provider on this computer. After `agent link` succeeds, the daemon can use the saved connection.

See [Gateway Commands](/cli/gateway) for maintenance commands.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.