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

# login

> Log in to Alpic using browser-based OAuth authentication

Authenticate with Alpic by completing an OAuth flow in your browser. Tokens are stored locally and reused across sessions.

## Usage

```bash theme={null}
alpic login
```

Opens a browser window to complete authentication. Once done, credentials are saved locally so subsequent commands run without re-authenticating.

If already logged in, the command exits immediately without opening the browser.

## Options

This command has no flags.

<Note>
  `login` only applies to browser-based authentication. If you use an API key via `ALPIC_API_KEY`, no login is required.
</Note>
