> For the complete documentation index, see [llms.txt](https://docs.forestall.io/forestall/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.forestall.io/forestall/configuration-center/ai-model-configuration.md).

# AI Model Configuration

On the AI Model Configuration page you connect and manage the AI providers and models that the AI Assistant uses. Open it from **Configuration Center > AI > Manage** (the card requires the **ReadAIConfiguration** permission).

You can add cloud-based or self-hosted AI providers, select which models are available to the Assistant, and control which tools and data each provider is allowed to use.

{% hint style="info" %}
Provider configurations are **per user**. The providers, API keys and model selections you add are visible and usable only in your own account. Other users, including administrators, do not see them and must add their own providers.
{% endhint %}

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-920cb00c0b3eafc3a27247a829e57b320aa89cfd%2Fconfiguration-center-ai-model-configuration-image-1.png?alt=media" alt="AI Model Configuration page with no provider configured"><figcaption><p>AI Model Configuration Page</p></figcaption></figure>

When no provider is configured, the page shows **Set up your AI assistant** with an **Add your first provider** button. Once providers exist, the **Providers** section shows a summary such as `2 configured · 1 active`, an **Add provider** button and one card per provider.

### Adding an AI Provider

To use the AI Assistant, at least one AI provider and model must be configured.

Click **Add provider** to start the **Add an AI provider** wizard. The wizard has four steps: **Choose provider**, **Connect**, **Select models** and **Data access**.

#### 1. Choose provider

Select the AI provider you want to connect.

Both cloud-based and self-hosted providers are supported. Providers you have already added are marked with a **Configured** badge.

<table data-search="false"><thead><tr><th>Provider</th><th>Type</th></tr></thead><tbody><tr><td>OpenAI</td><td>Cloud</td></tr><tr><td>DeepSeek</td><td>Cloud</td></tr><tr><td>Anthropic</td><td>Cloud</td></tr><tr><td>OpenCode Go</td><td>Cloud</td></tr><tr><td>OpenCode Zen</td><td>Cloud</td></tr><tr><td>Ollama</td><td>Self-hosted</td></tr><tr><td>vLLM</td><td>Self-hosted</td></tr><tr><td>LM Studio</td><td>Self-hosted</td></tr><tr><td>LocalAI</td><td>Self-hosted</td></tr></tbody></table>

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-3e3b9c5b2f9ae751ad75e20aecf86c6315f0f8aa%2Fconfiguration-center-ai-model-configuration-image-2.png?alt=media" alt="Choose provider step"><figcaption><p>Choose a provider</p></figcaption></figure>

Cloud providers process AI requests in an external service. Self-hosted providers run the models on infrastructure that your organization manages.

#### 2. Connect

After selecting a provider, enter the information required to establish the connection:

* **Display name**: the name shown for this provider in Forestall.
* **API key**: for cloud providers.
* **Server URL**: for self-hosted providers, the address where the AI service is running.

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-736d4692ac17941afb25b0403426319f078c5ce8%2Fconfiguration-center-ai-model-configuration-image-3.png?alt=media" alt="Connect step"><figcaption><p>Connect to the Provider</p></figcaption></figure>

Click **Connect & discover models** to validate the connection and retrieve the models available from the selected provider.

The connection is validated before the provider is saved. If the credentials or server address are invalid, an error is shown, and you can correct the connection information before continuing.

#### 3. Select models

After a successful connection, the models discovered from the provider are listed.

Choose which models should be available to users in the AI Assistant.

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-834edf987db12afa1e886f54f15bf0f9889d61d0%2Fconfiguration-center-ai-model-configuration-image-4.png?alt=media" alt="Select models step"><figcaption><p>Select Models</p></figcaption></figure>

Enable only the models you want users to see.

The enabled models appear in the AI Assistant model selector after the provider configuration is saved.

#### 4. Data access

The Data access step determines which Forestall tools (MCP tools) the model may call when answering questions. The tools are listed in two groups:

| Tool group                    | Description                                                                                               |
| ----------------------------- | --------------------------------------------------------------------------------------------------------- |
| **Documentation tools**       | Answers from Forestall documentation. No scan results, vulnerabilities, or environment data are involved. |
| **Forestall live data tools** | Read live scans, vulnerability findings, AD/AWS/GCP entities, attack paths, and environment data.         |

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-21e381157c9c47744305ec0454fdef16be303c58%2Fconfiguration-center-ai-model-configuration-image-5.png?alt=media" alt="Data access with the Documentation tools and Forestall live data tools groups"><figcaption></figcaption></figure>

Each group has a checkbox that selects or clears all of its tools and shows how many are selected (for example `6/6`). Click a group to expand it and select individual tools.

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-cb4865d320b5dd663edd3d6c1b8bb6b020af8373%2Fconfiguration-center-ai-model-configuration-image-6.png?alt=media" alt="Documentation tools group expanded"><figcaption><p>Documentation tools</p></figcaption></figure>

The resulting data access is summarized with a badge on the review panel and on the provider card:

* **Docs only**: only documentation tools are enabled. This is the default. The Assistant can explain how a feature works, explain a finding or give general remediation guidance, but cannot retrieve live scan or entity data.
* **Full access**: all documentation and live data tools are enabled.
* **N tools**: a custom selection of individual tools (for example `12 tools`). Use it when a provider needs access to specific areas of Forestall without the complete set of live data.

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-667e45333850c6d0eae44eef66de43d9f3d601e1%2Fconfiguration-center-ai-model-configuration-image-8.png?alt=media" alt="Custom tool selection: 2 of the live data tools selected"><figcaption><p>Custom tool selection</p></figcaption></figure>

When you enable live data tools for a **cloud** provider, the **Enable live data tools?** window opens. It warns that the selected tools will send live scan results, vulnerability findings and other environment data to the provider's API, and recommends a local model if you need live data. Click **Enable selected tools** to confirm or **Cancel** to keep them disabled. The window is not shown for self-hosted providers.

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-3098c5995aba8b9253a754d1378656089e035b70%2Fconfiguration-center-ai-model-configuration-image-7.png?alt=media" alt="Enable live data tools? confirmation window"><figcaption><p>Enable live data tools?</p></figcaption></figure>

### Save the Provider

The last step shows a **Review** panel with the **Provider**, **Server** (self-hosted providers), **Models enabled** (`X of Y`) and **Data access** badge. Click **Add provider** to save.

The configured provider is then displayed on the **AI Model Configuration** page and its enabled models become available in the AI Assistant.

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-8c6f391097d53484d5fd3420adc9438392808858%2Fconfiguration-center-ai-model-configuration-image-9.png?alt=media" alt="Provider card"><figcaption></figcaption></figure>

Each provider card shows the display name, the provider type, an **Active** / **Off** status, a **Cloud** / **Local** badge, the data access badge, the masked API key (for example `sk-e...lGuI`) or server URL, and **Manage provider**. The three-dot menu offers **Manage provider**, **Disable** / **Enable** and **Delete**.

You can add several providers to your account, for example to use different models with different data access settings.

## Managing an AI Provider

Open a configured provider (**Manage provider**) to update its models, data access settings, connection information, or availability. The page has three sections: **Models**, **Data access** and **Settings**.

### Models

The **Models** section shows the models currently available from the provider.

Click **Refresh** to discover the models again, change which models are enabled, and click **Save changes**.

Disabling a model removes it from the Assistant model selector without removing the provider configuration.

### Data access

The **Data access** section shows the same **Documentation tools** and **Forestall live data tools** groups as the wizard. You can switch between docs-only access, full access, or a custom selection of tools. For cloud providers, enabling live data tools asks for confirmation again.

Changes to data access affect future AI Assistant requests made with models from that provider.

### Settings

The **Settings** section contains the connection details and the provider lifecycle.

Depending on the provider type, you can update the **Display name**, the **API key** or the **Server URL**, then click **Save changes**.

Stored API keys are not displayed in full after they have been saved. Leave the **API key** field blank to keep the existing key. Enter a new key only if it needs to be changed.

### Enabling or Disabling a Provider

A provider can be disabled without deleting its configuration, either from the card's three-dot menu or from **Settings** (**Disable provider**).

When a provider is disabled, its models are no longer available for selection in the AI Assistant. The provider can be enabled again later without recreating the configuration.

### Deleting a Provider

To remove a provider, use the card's three-dot menu or **Settings** (**Delete provider**), then confirm with **Delete Provider**.

Deleting a provider removes its configuration and all its model settings, and prevents its models from being used in future AI Assistant conversations. This cannot be undone.

## Data Privacy and External Providers

The data sent by the AI Assistant depends on the tools enabled for the selected provider.

With **Docs only**, the model cannot call live data tools, so live environment data is not made available to it. With **Full access** or a custom selection that includes live data tools, information retrieved from the Forestall environment may be sent to the selected AI provider when it is required to answer a question.

With a cloud provider, the permitted data can leave the Forestall environment and is processed by the external AI service. With a self-hosted provider, the model runs on infrastructure that your organization controls.

> **Note:** Documentation and finding searches may use a separate embedding service to process the search phrase, including when a self-hosted model is selected.
