# Activate Studio

> Activate Studio using online sign-in, Orchestrator connection, or a license key, depending on your installation type and edition.

## Online Activation

The first time you run Studio after installation, a wizard helps you activate and get started with your product. The activation method you are prompted with is determined by the type of installation you performed:

* If your organization purchased Automation Cloud or you are installing Studio as part of a trial of UiPath Automation Cloud, you are prompted to activate by [signing in to your UiPath account](https://docs.uipath.com/studio/standalone/latest/user-guide/activating-your-studio-license#activating-by-signing-in-to-uipath).
* If your organization purchased the on-premises UiPath Platform, you are prompted to activate by [connecting to Orchestrator with your client credentials or machine key](https://docs.uipath.com/studio/standalone/latest/user-guide/activating-your-studio-license#activating-by-connecting-to-orchestrator).
* If you are installing Studio as part of a trial of the on-premises UiPath Platform, you are prompted to activate by [adding a license key](https://docs.uipath.com/studio/standalone/latest/user-guide/activating-your-studio-license#activating-with-a-license-key).
* If you are using the Community Edition of Studio, you are prompted to activate by [signing in to your UiPath account](https://docs.uipath.com/studio/standalone/latest/user-guide/activating-your-studio-license#activating-by-signing-in-to-uipath).

### Activating by Signing in to UiPath

The first time you run Studio after installing Studio with an installer downloaded from UiPath Automation Cloud, you are prompted to sign in to your UiPath account.

:::note
The option to sign in is available only if you installed the Robot in user mode.
:::

  ![Studio activation wizard prompting to sign in to your UiPath account](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-511390-4a95ff31.webp)

1. Select **Sign in** to sign in to your UiPath account. To find out more information about signing in, select [Learn more](https://docs.uipath.com/robot/standalone/latest/user-guide/setting-up-interactive-sign-in).
   * If you use a custom URL, enter the URL in the **Service URL** field. If you installed Studio using the Community Edition installer, you can only sign in to https://cloud.uipath.com.
2. A new browser window opens. If you are not already logged in, log in with your email or using one of the available providers.

   ![Browser login page with email and provider sign-in options](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-315213-91702b90.webp)
3. After logging in, your web browser prompts you to open UiPath. Select **Open UiPath** to return to Studio and continue.

   ![Browser prompt to open UiPath after successful login](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-315226-cfb7930e.webp)
4. If your user has access to multiple tenants, select which tenant to connect to, and then select **Continue**. If you have access to a single tenant, you are connected to it with no further input required.

   ![Tenant selection screen for connecting to Orchestrator](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-315236-8ed4e5ef.webp)
5. You are signed in to your UiPath account and connected to Orchestrator in both Studio and Assistant, your product is activated, and a quick step-by-step tutorial is displayed to help you start creating automations.
   :::note
   If you are having trouble signing in, see [Common Sign-in Errors](https://docs.uipath.com/studio/standalone/latest/user-guide/signing-in-to-your-account#common-sign-in-errors) in the Studio Guide for troubleshooting information.
   :::

#### Result

Studio is activated and connected to Orchestrator in both Studio and Assistant. A step-by-step tutorial opens to help you start creating automations.

### Activating by Connecting to Orchestrator

The first time you run Studio after installing Studio with an installer obtained when purchasing the on-premises UiPath Platform, you are prompted to connect to Orchestrator with your client credentials or machine key.

:::note
If you installed the Robot in service mode, administrator privileges are required to connect to Orchestrator with the machine key.
:::

   ![Studio activation wizard with Orchestrator URL, Client ID, and Machine Key fields](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-315608-259e70a1.webp)

1. Select a connection type - **Client ID** or **Machine Key**.
2. Enter the **Orchestrator URL** and either the **Client ID** and **Client Secret** or the **Machine Key** generated in Orchestrator, and then select **Continue**.
   * If you don't want to connect to Orchestrator, select **More Options**, and then **Standalone Options** to activate by [adding a license key](https://docs.uipath.com/studio/standalone/latest/user-guide/activating-your-studio-license#activating-with-a-license-key).
3. You are connected to Orchestrator in both Studio and the Assistant, a license key is acquired from Orchestrator, and a quick step-by-step tutorial is displayed to help you start creating automations.
   :::note
   If you connect to Orchestrator with your machine key, you can only use Studio with a Non-Production or Unattended license to troubleshoot workflows if the option **Enforce user authentication, disable robot key authentication** [is disabled in Orchestrator](https://docs.uipath.com/orchestrator/automation-cloud/latest/user-guide/connecting-robots-to-orchestrator). Alternatively, if user authentication is enforced and a development license is also allocated to your user, sign in to your account after connecting with your machine key.
   :::

When Studio is licensed via Orchestrator (either by signing in or connecting to Orchestrator), the **Help** tab mentions **License Provider: Orchestrator**. Otherwise, the same text states **Internal**.

   ![Studio Help tab showing License Provider as Orchestrator](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-315617-567e52d6.webp)

Please bear in mind that any license change is performed only after Studio is restarted.

#### Result

Studio is connected to Orchestrator, a license is acquired, and a step-by-step tutorial opens to help you start creating automations.

### Activating With a License Key

The first time you run Studio after installing Studio with an installer obtained as part of a trial of the on-premises UiPath Platform, you can activate locally using a license key. A local license can also be activated with the [LicenseTool Command Line Utility](https://docs.uipath.com/robot/standalone/latest/user-guide/licensetool-command-descriptions).

   ![Studio activation wizard with Add License Key field and Automatic option](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-169393-e5221255.webp)

To activate a license key:

1. Select the **Automatic** option to license online.
2. Fill in the **Add License Key** field with the license key you received.
3. Select the **Continue** button. Your UiPath license is now activated and you can start creating automation workflows.
   :::note
   * An activation error might be displayed during the licensing process if
   an antivirus is installed on the machine. To avoid the error message, Studio has to be whitelisted in both the antivirus and the Firewall.
   * If Studio is licensed locally, but you still want to connect it to
   Orchestrator, make sure you select the **Stand-alone** check box when creating its Robot in Orchestrator. This ensures that Orchestrator does not allocate a license from its pool, as Studio defaults to the local one.
   * The machine name is used in the activation process and is a part of
   the license validation each time Studio starts. If the machine name changes (or the license moves from one machine to another), Studio will no longer see the license as valid.
   :::

#### Result

Studio is licensed locally and ready to use. To connect to Orchestrator later, configure the robot with a Stand-alone setup in Orchestrator.

#### Activating Your License While Installing

You can activate a license key during installation by running the `UiPathStudio.msi` installer from the [command line](https://docs.uipath.com/studio/standalone/latest/user-guide/command-line-parameters) with the `CODE` argument followed by the license key. For example: `UiPathStudio.msi CODE=1234567890`.

Also, for an unattended installation, there are some silent parameters that you can use:

* `/quiet` - Quiet mode, no user interaction
* `/passive`- Unattended mode - progress bar only
* `/q[n|b|r]` - Sets user interface level
  + `n` - No UI
  + `b` - Basic UI
  + `r` - Reduced UI

For example:

`C:\UiPathStudio.msi CODE=1234567890 /passive` - installs all the default features and activates your license, showing a progress bar.

## Offline Activation

:::note
* Make sure the CNG Key Isolation
service is running. This is required by UiPath to validate your license offline.
* If you are renewing your license,
before following the steps described below, delete the **LicenseInternal** folder located either in `%AppData%/UiPath` (for per-user licenses) or `%ProgramData%/UiPath` (for per-machine licenses).
:::

When UiPath Studio is installed on a machine that is not connected to the internet or when your network security software/firewall prevents access to our license validation server, you can manually activate it with the [LicenseTool Command Line Utility](https://docs.uipath.com/robot/standalone/latest/user-guide/licensetool-command-descriptions).

Alternatively, you can use the activation wizard by following the steps below:

1. Select **More Options** &gt; **Standalone Options** if you're not already in the **Add License Key** screen.
2. Fill in the **Add License Key** field with the license key you received.
3. Select the **Manual** activation option.
4. Select the **Continue** button. The first step of manual activation is displayed and an Activation Request code is generated and copied to clipboard.

   ![Manual activation wizard step 1 showing generated Activation Request code](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-315639-beab8c9a.webp)
5. Copy the Activation Request code to an email message or text file, and select **Continue**.
   :::note
   Keep the **Activation wizard** open until the process is complete.
   :::
6. Send the activation request code to a computer with Internet access.
7. On the computer with Internet access navigate to https://activate.uipath.com/.

   ![UiPath offline activation webpage at activate.uipath.com](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-168677-d470e88e.webp)
8. Make sure the **Activate Your License** tab is selected on the webpage, and paste the Activation Request code in the **Activation Request Certificate** field and select the **Generate License File**. The license code is generated.

   ![Activate Your License tab with Activation Request Certificate field and Generate License File button](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-167602-7c1b6bd6.webp)
9. Choose between **Download License File** to save the license code to a `.txt` file on your machine, or copy the license code to clipboard.
10. Attach the downloaded `.txt` file or paste the license in an email and send it to the computer with no Internet access or firewall restrictions.

    ![Manual activation step showing option to download or copy the generated license code](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-315654-8c72d7f9.webp)
11. On the machine you want to activate your license on, select **Continue** in the second step of the **Manual Activation** wizard. The third and last step of the **Manual Activation** wizard is displayed.

    ![Manual activation wizard step 3 with Activation field for pasting the license code](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-315665-b3a8d17a.webp)
12. In the **Activation** field paste the license code obtained during step 10.
13. Select **Continue**. Your license is now activated.
    :::note
    If the Windows user name contains non-ASCII characters, an *Incompatible license model data Exception* error occurs when you click **Continue** and offline activation is not completed successfully.
    :::

### Result

Your Studio license is activated offline. Studio is ready to use on the machine.

## Selecting the Studio Profile

You do not need to select which profile to use (Studio or StudioX). StudioX capabilities are integrated in Studio, making it easier to design your automations without switching between Studio profiles.
