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

# Authentication

> Sign in, set a password for a new account, change it, and sign out.

## Sign in

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr auth login --api-url https://rivvr.customer.example --username alice
```

* `--api-url` is your company's Rivvr URL, which your platform team gives you. Don't use a model's prompt address here.
* `--username` can be your username or your email.

Type your password when asked; it won't show on screen.

`rivvr` saves your login in your system's password store (the keychain) and renews it on its own, so you stay signed in. AI assistants connected through MCP use the same login. The login only works for the Rivvr URL you signed in to.

To see where and as whom you're signed in:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr auth status
```

### Sign in without typing the password

You can pass the password in from another program, for example a password manager. This uses the 1Password command-line tool:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
op read "op://Work/Rivvr/password" | rivvr auth login --username alice --password-stdin
```

The result is the same as typing the password: a saved login. For automated pipelines, use [environment variables](https://docs.rivvr.ai/configuration/ci.md) instead.

## First sign-in with a new account

When you're invited, you get a one-time setup token instead of a password. Use it to choose your password:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr auth setup-password --api-url https://rivvr.customer.example
```

Enter the token, then choose a password. When it's done, you're signed in.

## Change your password

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr auth change-password
rivvr auth login --username alice
```

After changing your password, sign in again so your saved login uses the new one. If the command stops partway and you're not sure the change went through, try signing in with the new password before you run it again.

If Rivvr requires you to change your password, `auth login` tells you right after you sign in.

### Without prompts

For scripts, both `setup-password` and `change-password` accept `--stdin`. Pass one line of JSON:

* for `setup-password`: `{"token": "...", "newPassword": "..."}`
* for `change-password`: `{"currentPassword": "...", "newPassword": "..."}`

## Sign out

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr auth logout
```

This ends your login on Rivvr's side and removes it from your keychain. Inference keys you saved stay on your computer and keep working.

## Permissions

What you're allowed to do is decided by your role and project access in Rivvr. Nothing on your computer can give you more access. If a command fails with a permission error, signing in again won't fix it. Ask your platform team.


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