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

# Auth

> Authenticate to Arize via OAuth (browser-based login) with the AX CLI

<Note>
  The `ax auth` commands only apply if you authenticate via OAuth. If your profile uses an API key, you can ignore this page — `ax profiles create` already configures everything you need.
</Note>

The `ax auth` commands let you sign in to Arize via OAuth (browser-based login) and sign out of the active profile. For API key profiles, use [`ax profiles create`](/api-clients/cli/profiles#ax-profiles-create) instead.

## `ax auth login`

Sign in to the active profile via the browser. The profile must already exist (use `ax profiles create --auth-method oauth` if not) and must be an OAuth profile. If the profile is already signed in with non-expired tokens, this is a no-op.

```bash theme={null}
ax auth login
```

Writes fresh OAuth tokens to the active profile.

**Example:**

```bash theme={null}
ax auth login
```

## `ax auth logout`

Revoke both access and refresh tokens server-side and clear OAuth credentials on the active profile. Logout only applies to OAuth profiles.

```bash theme={null}
ax auth logout
```

After logout, the profile is preserved (routing, output, auth\_method) so you can re-authenticate with `ax auth login` without re-prompting for routing.
