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

> ## Agent Instructions
> Reactor hosts multiple models, each with its own connect slug (modelName) and command/event schema. The catalog of every model — slug, typed SDK package, and links to its schema — is at /model-api-reference/overview. Some models expose one slug per experience (e.g. HappyOyster); always take the slug from the model's own pages, never guess it.
> Fastest path to a working app: `npx create-reactor-app my-app --model=<slug>` scaffolds a complete app with secure auth wired up. Typed TypeScript SDKs are published as @reactor-models/<model>; Python uses the base reactor-sdk package.
> Auth: exchange an API key (rk_...) for a JWT via POST https://api.reactor.inc/tokens from your server. Never put the API key in client-side code.
> Append .md to any docs URL for clean Markdown. Search these docs via the MCP server at https://docs.reactor.inc/mcp.

# reactor auth login

> Authenticate with the Reactor platform

```sh theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor auth login [flags]
```

## Description

Authenticate with the Reactor platform.

By default this opens your browser to reactor.inc, where you approve the
login; a fresh API key scoped to this machine is created and stored in the
system keychain. Check that the confirmation code shown in the browser
matches the one printed here before approving. Use `--no-browser` to print
the URL instead (e.g. over SSH - open it on any device), or `--with-api-key`
to enter an existing API key. Use `--new-key` to rotate a still-valid stored key.

Non-sensitive metadata (account ID, server URL) is saved to \~/.reactor/config.yaml.

## Options

| Flag                   | Description                                                                                        |
| ---------------------- | -------------------------------------------------------------------------------------------------- |
| `--device-name string` | Label for this machine's API key in the dashboard (default: REACTOR\_DEVICE\_NAME, then hostname). |
| `--new-key`            | Create and store a fresh credential even when the current key is valid.                            |
| `--no-browser`         | Don't open a browser; print the approval URL to open on any device.                                |
| `--with-api-key`       | Skip browser approval and read an API key from a hidden prompt or stdin.                           |

## Global options

| Flag              | Description                                                                           |
| ----------------- | ------------------------------------------------------------------------------------- |
| `--server string` | Reactor API server URL (default "[https://api.reactor.inc](https://api.reactor.inc)") |
| `-v, --verbose`   | Enable verbose output                                                                 |

## See also

* [reactor auth](/deploy/cli-reference/reactor_auth) - Authentication commands
