# komrad login

Sign in to an engine reached at its url

[komrad](https://komrad.dev/latest/cli.md)

```bash
komrad login
```

Sign in to an engine reached at its url, through the identity provider it trusts.

This asks the engine which provider that is, opens the provider's sign-in page in your browser, and waits on 127.0.0.1:8085 for the provider to send the browser back. The sign-in is kept in the keychain, or in a private file under the state directory where there is no keychain, and every command after this one sends it and renews it on its own. Run it again when a command says the sign-in ran out.

Login also writes an SSH host for the engine under ~/.ssh/komrad, which carries SSH over the same sign-in. Any editor that reaches other machines over SSH opens the engine's files through that host once ~/.ssh/config includes it.

## Inherited flags

| Flag | Type | Description |
| --- | --- | --- |
| [`--config`](https://komrad.dev/latest/cli/login.md#inherited-config) | stringArray | path to a config TOML, repeatable, later files win over earlier ones |
| [`--engine`](https://komrad.dev/latest/cli/login.md#inherited-engine) | string | engine to reach: local for this machine, or a file in the config's engines directory, layered over the config |
