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

# Sign In

> Sign in to FlexAI with your email or GitHub account

<Tabs>
  <Tab title="Using the FlexAI Console">
    You can sign in to the FlexAI Web Console by visiting the [FlexAI Web Console's Sign In page](https://auth.flex.ai/ui/login).

    The authentication page will provide two options to sign in:

    1. Sign in with Email and Password: If you prefer, you can sign in using an email address. You'll need to provide some information to get started.
    2. Sign in with GitHub: If you have a GitHub account, you can sign in by authorizing FlexAI as an OAuth application.

           <img src="https://mintcdn.com/flexai-51114f49/dNvzWOTcJQw0Ozyk/assets/images/getting-started/ory_login_prompt_console.jpg?fit=max&auto=format&n=dNvzWOTcJQw0Ozyk&q=85&s=a2d194b6945cf9f4da51594e61192e51" alt="Screenshot of the 'Sign in with Console' page" width="966" height="1313" data-path="assets/images/getting-started/ory_login_prompt_console.jpg" />

    ## Sign In with Email and Password

    If you signed up to FlexAI with *email and password*, you'll need to provide the **Work Email** and **Password** combination you used during sign up.

    Once you enter your credentials, select the **Sign in with password** button.

    You'll be redirected to the [FlexAI Web Console](https://console.flex.ai/).

    <Note title="Forgot Password?">
      If you ever forget your password, you can reset it by [visiting this page](https://auth.flex.ai/ui/recovery) or selecting the **Forgot password?** link on the [sign-in page](https://auth.flex.ai/ui/login). You'll be prompted to enter your email address.

      You will then receive an email with instructions to reset your password.
    </Note>

    ## Sign In with GitHub

    If you had signed up to FlexAI with GitHub, then select the "Sign in with GitHub" button.

    ### If you are not logged into your GitHub account

    If you're not already logged in, you'll be redirected to the GitHub login page.

    Follow the regular GitHub login process to log in to your account. This may involve entering your username and password, or using a 2FA authentication method if you have enabled it.

    Once the FlexAI authentication request completes successfully, you'll be redirected to the [FlexAI Web Console](https://console.flex.ai/).

    <Tip title="Need Help?">
      If you encounter any issues during the sign in process, do not hesitate to reach out to our support team for assistance at [support@flex.ai](mailto:support@flex.ai).
    </Tip>
  </Tab>

  <Tab title="Using the FlexAI CLI">
    Run the `flexai auth login` command in your terminal.

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

    Depending on your system's capabilities, a browser tab pointing to the FlexAI sign in page will open automatically or you will be prompted with an authentication link to manually open in your browser.

    ```text title="flexai auth login response" theme={null}
    Please visit the following URL in your browser to authenticate:
    https://api.flex.ai/api/v1/auth/login?redirect_endpoint=%2Fcallback&redirect_host=localhost%3A40066&redirect_scheme=http
    ```

    The authentication page will provide two options to sign in:

    1. Sign in with Email and Password: If you prefer, you can sign in using an email address. You'll need to provide some information to get started.
    2. Sign in with GitHub: If you have a GitHub account, you can sign in by authorizing FlexAI as an OAuth application.

           <img src="https://mintcdn.com/flexai-51114f49/dNvzWOTcJQw0Ozyk/assets/images/getting-started/ory_login_prompt_cli.jpg?fit=max&auto=format&n=dNvzWOTcJQw0Ozyk&q=85&s=3e2a179f41d1ca3929cf9780a255ec63" alt="Screenshot of the 'Sign in with CLI' page" width="966" height="1313" data-path="assets/images/getting-started/ory_login_prompt_cli.jpg" />

    ## Sign In with Email and Password

    If you signed up to FlexAI with *email and password*, you'll need to provide the **Work Email** and **Password** combination you used during sign up.

    Once you enter your credentials, select the **Sign in with password** button.

    You'll be redirected to the [FlexAI Web Console](https://console.flex.ai/).

    <Note title="Forgot Password?">
      If you ever forget your password, you can reset it by [visiting this page](https://auth.flex.ai/ui/recovery) or selecting the **Forgot password?** link on the [sign-in page](https://auth.flex.ai/ui/login). You'll be prompted to enter your email address.

      You will then receive an email with instructions to reset your password.
    </Note>

    ## Sign In with GitHub

    If you had signed up to FlexAI with GitHub, then select the "Sign in with GitHub" button.

    ### If you are not logged into your GitHub account

    If you're not already logged in, you'll be redirected to the GitHub login page.

    Follow the regular GitHub login process to log in to your account. This may involve entering your username and password, or using a 2FA authentication method if you have enabled it.

    Once the FlexAI authentication request completes successfully, you'll be redirected to the [FlexAI Web Console](https://console.flex.ai/).

    <Tip title="Need Help?">
      If you encounter any issues during the sign in process, do not hesitate to reach out to our support team for assistance at [support@flex.ai](mailto:support@flex.ai).
    </Tip>
  </Tab>
</Tabs>
