# Connect Environments

AI Assets requires a connected environment before it can begin discovery.\
Once connected, AI Assets will scan, discover, and populate your AI inventory with **Models, AI Workflows, MCP Servers, Guardrails, and custom tools** found in your infrastructure.

## Add Your First Environment

When no environments are connected, the AI Assets dashboard shows an **empty state**.\
Click **Add Environment** to start configuration.

<figure><img src="/files/O2deoTd9AOtvXXUl5k61" alt=""><figcaption><p>Figure 1: Adding Your First Environment</p></figcaption></figure>

### Step 1: Select Environment Type

Choose the type of environment you want to connect.\
Currently supported:

* **GitHub**
* **GitLab**

### Step 2: Configure Connection

Depending on the environment type, provide the required connection details:

#### GitHub

1. Select **GitHub**.
2. Enter:
   * **Environment Name** – a descriptive label for the connection.
   * **Description** – optional details for context.
   * **Installation ID** – generated during the GitHub App installation. To get the ID:
     * In the upper-right corner of GitHub, click your profile picture
     * Click on <picture><source srcset="/files/BqRPXnExELXsTEASQQ1g" media="(prefers-color-scheme: dark)"><img src="/files/c79XmJtbOZY1Qzn5S0kO" alt=""></picture> **Organizations**.
     * Go to <picture><source srcset="/files/e1hsQlue9rZhNJaiYypX" media="(prefers-color-scheme: dark)"><img src="/files/xfh2nRAs60YpZSZ85IL1" alt=""></picture> **Applications** under the **Integrations**.
     * Select your GitHub App and click **Configure**.
     * Copy the `<ID>` part from the URL, which looks like this:

       <https://github.com/organizations/\\><Organization-name>/settings/installations/\<ID>
     * The `<ID>` is your **GitHub App Installation ID**.

For more details on installing the GitHub app visit the relevant [GitHub App installation documentation](https://docs.github.com/en/apps/using-github-apps/installing-a-github-app-from-a-third-party).&#x20;

#### GitLab

1. Select **GitLab**.
2. Enter:
   * **Environment Name** – a descriptive label for the connection.
   * **Description** – optional details for context.
   * **Personal Access Token** – a valid GitLab token with appropriate permissions:
     * read\_api &#x20;
     * read\_repository

For more details visit the [GitLab Personal Access Tokens](https://docs.gitlab.com/user/profile/personal_access_tokens/?utm_source=chatgpt.com).

After filling out the details, click **Create** to complete the setup.

## Manage Environments

Once at least one environment is added, the **Environments page** lists all active connections, including:

* **Environment Name** – the given name of the environment.
* **Environment Type** – currently GitHub or GitLab.
* **No. of Discovered Repositories** – repositories scanned in that environment.
* **Created At** – when the environment was first connected.

From here you can manage existing environments or add new ones using **Add Connector**.

<figure><img src="/files/VmYRASHqhGMn9hGM5hol" alt=""><figcaption><p>Figure 2: Environments Page</p></figcaption></figure>

## Next Steps

Once your environment is connected, the [scans](/ai-asset-management/scan-for-ai-assets.md) can be triggered.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.probe.splx.ai/ai-asset-management/connect-environments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
