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

# Control Center

> Configure CodeAnt AI control center for Self-hosted Azure Devops

# Self-Hosted Azure DevOps Configuration (via SSO)

Follow these instructions to configure your self-hosted Azure DevOps using Single Sign-On (SSO):

* **Access the Self-Hosted Option**
  * Visit [app.codeant.ai](https://app.codeant.ai/) and select the **Self-Hosted** option.

* **Sign In with SSO**
  * <img src="https://mintcdn.com/codeantai/cPAPWnajTUNzakyT/images/setup/azure-devops/self-hosted/control_center/sso-sign-in.png?fit=max&auto=format&n=cPAPWnajTUNzakyT&q=85&s=fdcd2de9bebfd8baa6b6e61b4bf38513" alt="SSO" width="3420" height="2056" data-path="images/setup/azure-devops/self-hosted/control_center/sso-sign-in.png" />
  * Click on **Sign in with SSO**.
  * Enter your company email (note: public emails like gmail.com or yahoo.com won't work).
  * Retrieve the verification code sent to your email and enter it to complete authentication.

* **Create an Access Token**
  * Navigate to the Access Token menu in your azure devops:
    * <img src="https://mintcdn.com/codeantai/cPAPWnajTUNzakyT/images/pull_request/azure_devops/pat_menu.png?fit=max&auto=format&n=cPAPWnajTUNzakyT&q=85&s=eb17c5372d4ba689a9da3ee3f66c88e9" alt="PAT" width="3420" height="2040" data-path="images/pull_request/azure_devops/pat_menu.png" />
  * Click on **+ New Token**.
  * Configure the token:
    * **Name:** CodeAnt AI
    * **Expiry Date:** Choose the maximum duration available (ideally one year).
    * **Scopes:**
      * Code (Read & Write) - For Code Analysis
      * Pull Request Threads (Read & Write) - For PR Review
      * Build (Read) - For Dora Metrics
      * Work Items (Read) - For Dora Metrics
  * Copy the generated token for later use.

* **Provide Your Self-Hosted Azure DevOps Details**
  * Enter the base URL of your self-hosted Azure DevOps instance. This should be the base URL without your organization or `defaultCollection`.
    * **Example:** `https://azure-devops.codeant.ai`
  * Specify your organization or collection name as it appears in your repository URL.
    * **Example:**\
      For the repository URL:
      ```
      https://azure-devops.codeant.ai/codeantai/CodeAnt%20AI/_git/CodeAnt%20new%20repo
      ```
      * **Base URL:** `https://azure-devops.codeant.ai`
      * **Organization Name:** `codeantai`

* Enter the access token from the above step
  <img src="https://mintcdn.com/codeantai/cPAPWnajTUNzakyT/images/setup/azure-devops/self-hosted/control_center/form-data.png?fit=max&auto=format&n=cPAPWnajTUNzakyT&q=85&s=37941b50cdfc4bab8b5f4edbaec07bc4" alt="Form Data" width="1298" height="1042" data-path="images/setup/azure-devops/self-hosted/control_center/form-data.png" />

* **Finalize the Setup**
  * Review all the entered information and click **Submit**.
  * If everything is correct, your projects and repositories will be fetched and displayed.
