---
source: https://cli.eloqnt.dev/docs/cli/login
docs_index: https://cli.eloqnt.dev/llms.txt
---

# eloqnt login

Log in to eloqnt/engine from your terminal to unlock AI-based features.

Logging in runs a device flow: the CLI opens the approval page in your browser, you approve the login there, and the CLI stores the resulting session token locally.

```console
$ eloqnt login

Log in to eloqnt/engine
https://engine.eloqnt.dev/device?user_code=XKQ4N7PB

|
◇  Approved in the browser
|
└  Logged in
```

Your login stays active as long as you keep using the CLI. After 14 days without activity, you will be signed out. Run `eloqnt login` again to reconnect.

For usage in CI, you can set up an [API key](https://engine.eloqnt.dev/app/keys) and provide it as `ELOQNT_TOKEN` in your environment to authenticate without the interactive login.

## Flags

| Flag | Type | Description |
| --- | --- | --- |
| `--config` | `string` | Path to the eloqnt config file (defaults to .eloqnt/config.{ts,mts,js,mjs}) |
| `--json` | `boolean` | Output the result as JSON |

---

For an index of every eloqnt/cli documentation page, see [https://cli.eloqnt.dev/llms.txt](https://cli.eloqnt.dev/llms.txt).
