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

# Customize Semgrep Multimodal

> You can customize Semgrep Multimodal by enabling and using the features detailed on this page.

## Autofix

To receive AI-generated code changes for Semgrep Code findings, enable [Autofix](https://docs.semgrep.dev/semgrep-code/triage-remediation/autofix.md). Autofix opens a pull request or merge request with proposed fixes.

## Suggested fix

Enable Multimodal's **[Suggested fix](https://docs.semgrep.dev/semgrep-multimodal/overview#suggested-fix)** to see an explanation on how to fix true positives.

To enable Suggested fix, follow these steps:

**Step 1**

Sign in to Semgrep AppSec Platform, and navigate to **Settings > General > Code**.

**Step 2**

Click the **Suggested fix**  toggle to enable this feature.

**Step 3**

*Optional*: Select a **confidence level** in the drop-down box. This value determines the quality of Suggested fix. For example, if you select lower confidence, Semgrep Multimodal suggests a fix even when the suggestion quality is lower.

> [!TIP]
>
> **TIP**
>
> Semgrep recommends setting a low confidence level since even imperfect suggestions may be useful starting points for triage and remediation.

## Weekly priority emails

[Weekly priority emails](https://docs.semgrep.dev/semgrep-multimodal/overview/#weekly-priority-emails) allows organization admins to receive information on top backlog tasks according to Multimodal. If this feature is not enabled for your deployment, you can do so as follows:

**Step 1**

Sign in to Semgrep AppSec Platform, and navigate to **Settings > General > Global**.

**Step 2**

Click the **Weekly priority emails**  if it is not yet enabled.

## Noise filtering

Multimodal is [over 95% accurate in categorizing Semgrep Code findings as false positives](https://docs.semgrep.dev/semgrep-multimodal/metrics.md), so you can minimize the number of findings shown by enabling **Noise filter for Code PR/MR comments**. To do so:

**Step 1**

Sign in to Semgrep AppSec Platform, and navigate to **Settings > General > Code**.

**Step 2**

Click the **Noise filter for Code PR/MR comments**  if it is not yet enabled.

**Step 3**

Select whether you want to enable PR or MR comments for false positive findings:

1. **Don't leave a PR/MR comment**: Hide Semgrep's comments on findings that are likely to be false positives. These findings are available for security review on the [**Code > Pre-production backlog** page](https://semgrep.dev/orgs/-/findings?tab=open\&last_opened=All+time\&backlog=preprod). Comments still appear for rules in [**Block** mode](https://docs.semgrep.dev/semgrep-code/policies#block-a-pr-or-mr-through-rule-modes).
2. **Include a notification in the PR/MR comment**: Show developers likely false positive findings in PR/MR comments, but include a note explaining why Multimodal thinks the finding may be safe to ignore.

Findings filtered out by Multimodal can be reviewed at any time in Semgrep by going to the [**Code > Pre-production backlog** page](https://semgrep.dev/orgs/-/findings?tab=open\&last_opened=All+time\&backlog=preprod). Semgrep also allows you to agree with the filtering to close the finding or disagree to reopen.

## Add Memories

Memories allow admins to tailor Multimodal's remediation guidance to their organization's standards and defaults. You can provide feedback by adding custom instructions whenever Multimodal provides a Suggested fix.

Memories are enabled by default for all organizations with Multimodal enabled.

### Add a memory

**Step 1**

Sign in to [Semgrep AppSec Platform](https://semgrep.dev/login).

**Step 2**

Navigate to [ **Rules & Policies > Memories**](https://semgrep.dev/orgs/-/memories).

**Step 3**

Click **New Memory**.

**Step 4**

In **Memory**, enter your preferred remediation approach and secure default.

**Step 5**

Select the **Projects** and the **Rules** to which the memory should be applied.

1. Choose **All projects** or any specific project.
2. Choose **All rules**, or search for and select a specific rule or a general vulnerability class. Selecting a vulnerability class means the memory applies to *all* rules with that vulnerability class.

**Step 6**

Click **Add memory** to save your changes and proceed.

See [Best practices for writing Memories](https://docs.semgrep.dev/semgrep-multimodal/best-practices-for-memories.md) for information on writing effective memories.

### Add a memory based on Multimodal's Suggested fix

To add a memory based on a Suggested fix presented by Multimodal:

**Step 1**

Identify the specific instance of **Multimodal's Suggested fix** that you want to modify. This can be found on the finding details page or in the PR or MR comment.

* If Multimodal used existing memories to generate the guidance, you can click on **Referenced X memories while writing this guidance** to see the memories used.

**Step 2**

Click **Customize fix** to open an input box, and enter your preferred remediation approaches and secure defaults for the project. Your suggestion can be as general as "Use X library to sanitize SQL queries."

**Step 3**

Click **Save and regenerate**.

**Step 4**

Multimodal regenerates the Suggested fix to reflect the instructions you provided.

Memories are scoped to remediation guidance on a per-project, per-vulnerability class, or per-rule basis. A saved memory only affects future guidance for findings triggered by the same rule in the same project.

### Add memory during triage and receive memory suggestions from Multimodal

When you identify findings that are safe to ignore and provide reasoning for your actions, Semgrep Multimodal can use this triage feedback to suggest memories. It can start suggesting memories from the very first triage feedback it receives, or it may suggest memories from multiple pieces of feedback, depending on the level of detail in the feedback and the finding's unique context. If Multimodal creates a new memory, it will use the memory to assess if similar findings are safe to ignore and hide from developers.

To triage and create a memory (Semgrep automatically attempts to create a memory during triage if possible):

**Step 1**

Identify the specific finding you want to modify, and open up its finding details page.

**Step 2**

Click **Ignore**, select an **Ignore reason**, and provide **Comments** on why you're triaging the finding as **Ignore**.

**Step 3**

Click **Ignore**. Multimodal attempts to create a memory using the information you provide. If Multimodal successfully creates a memory for you, you'll see a link to the list of memories for your organization in the dialog that appears.

Permissions:

* Automatic generation of memories: if you are an **admin** user, Multimodal tries to generate **active** memories from your triage feedback.
* If you are a non-admin user, such as a manager, Multimodal creates a **suggested** memory that needs an admin to activate it.

### View and edit memories

**Step 1**

Sign in to [Semgrep AppSec Platform](https://semgrep.dev/login).

**Step 2**

Navigate to [ **Rules & Policies > Memories**](https://semgrep.dev/orgs/-/memories).

There are two tabs on the **Memories** page for your review:

* The **Active** tab displays a list of memories that Multimodal is actively using to generate triage advice
* The **Suggested** tab displays a list of memories Multimodal has generated based on past triage actions and developer feedback. For each suggestion, you can:
  * Activate the suggested memory to inform Multimodal's advice on current and future findings
  * Edit the memory, then activate it
  * Delete the suggested memory

Only users assigned the `admin` role in Semgrep can activate suggested memories.

### Remove memories

**Step 1**

Sign in to [Semgrep AppSec Platform](https://semgrep.dev/login).

**Step 2**

Navigate to [**Rules & Policies > Memories**](https://semgrep.dev/orgs/-/memories).

**Step 3**

Identify the memory you would like to delete, then click the **icon** to remove the memory.

## Select your AI provider

Semgrep evaluates available models from multiple providers and selects the most performant option for each Multimodal feature, based on the providers enabled for your organization. [Autofix](https://docs.semgrep.dev/semgrep-code/triage-remediation/autofix.md) requires Amazon Bedrock. If Bedrock is disabled, Autofix does not run.

To choose how Semgrep selects providers:

**Step 1**

Sign in to [Semgrep AppSec Platform](https://semgrep.dev/login) and navigate to [ **Settings > Global**](https://semgrep.dev/orgs/-/settings/general).

**Step 2**

Click the  **icon** next to **AI providers**.

**Step 3**

Select **Automatic** or **Manual**, then click **Save**.

### Automatic

**Automatic** is the default. Semgrep manages the AI providers and API keys under [zero data retention agreements](https://docs.semgrep.dev/semgrep-multimodal/privacy.md). Semgrep keeps the provider list up to date. It currently includes:

* OpenAI
* Amazon Bedrock
* Cloudflare Workers AI

Organizations on the [minimal data retention policy](https://docs.semgrep.dev/semgrep-multimodal/privacy.md#minimal-data-retention-policy-optional) get OpenAI and Amazon Bedrock only.

### Manual

**Manual** lets you choose your own AI providers and API keys. It requires a Semgrep subscription plan that includes bring your own key (BYOK). Organizations that already use **Manual** can keep using it.

In Manual, select the providers you want. Each feature uses the enabled providers it supports. Cloudflare Workers AI can't be the only enabled provider.

The following providers can use your own API keys or accounts. Anthropic is available only with your own API key.

> [tab] OpenAI
>
> ### OpenAI API with your own key
>
> Under **OpenAI account**, select **Your key**, then paste your OpenAI API key.
>
> By switching from Semgrep's key to your key, note that you lose access to the following:
>
> * Semgrep's fine-tuned models that can increase the quality of results.
> * Semgrep's [Zero Data Retention agreement](https://docs.semgrep.dev/semgrep-multimodal/privacy.md) that prevents OpenAI from saving input or output data.
> * Semgrep paying for the cost of your AI usage.

> [tab] Amazon Bedrock
>
> ### Your own Amazon Bedrock account
>
> To keep all data within your AWS account, under **AWS account**, select **Your account**, then choose an **Auth method**:
>
> * **IAM role assumption**: Enter your **Role ARN** and click **Save**. Semgrep generates an **External ID** and shows its **Semgrep principal ARN**. Add both values to your role's trust policy, then click **Verify**.
> * **Access keys**: Enter your **AWS access key ID** and **AWS secret access key**.
>
> Select your **AWS region**, then click **Save**.
>
> The IAM role or user must have the **AmazonBedrockLimitedAccess** AWS IAM permissions preset.
>
> Semgrep constantly evaluates new models for Multimodal features and frequently swaps out requested models, so it is recommended to always have the most recent models in Bedrock enabled. Currently, Multimodal uses `claude-sonnet-4-6`, `claude-opus-5-5`, `claude-sonnet-5-5`, and `claude-haiku-5-5`.
>
> #### Supported AWS regions
>
> When you use your own Amazon Bedrock account, you can select one of the following AWS regions:
>
> * US East (N. Virginia) - `us-east-1`
> * US East (Ohio) - `us-east-2`
> * US West (N. California) - `us-west-1`
> * US West (Oregon) - `us-west-2`
>
> All Bedrock calls are pinned to the region you select. Semgrep does not use AWS cross-region inference profiles for customer-managed Bedrock accounts, so requests stay within your configured region.
>
> > [!NOTE]
> >
> > Since Semgrep does not use AWS cross-region inference profiles, the models Multimodal requires must be available for on-demand inference in the selected region. Because of that requirement, regions outside the US (where the models are offered only through cross-region inference profiles) are not currently supported.

> [tab] Microsoft Foundry
>
> ### Microsoft Foundry
>
> Microsoft Foundry, formerly Azure OpenAI, runs OpenAI and Claude models that you deploy in your Azure subscription. Semgrep calls them with your resource's API key.
>
> 1. In the [Foundry portal](https://ai.azure.com), open your Foundry resource and copy its **Endpoint** and **API key**.
> 2. In Semgrep, select **Microsoft Foundry**.
> 3. Paste the endpoint into **Resource endpoint**, for example `https://my-resource.services.ai.azure.com`. You can also paste the target URI of any deployment on the resource; Semgrep keeps only the resource address.
> 4. Paste the key into **API key**.
> 5. Under **Deployments**, add each deployment Semgrep should use. Enter its **Deployment name** as it appears in Foundry, and select the **Model** it runs. If the model isn't listed, select **Other model** and enter its model ID.
> 6. Click **Save**. Semgrep tests the connection before it saves your settings.
>
> Multimodal features use the first deployment in the list. Claude models in Foundry require API key authentication; models that support only Microsoft Entra ID authentication can't be used.
>
> #### Foundry models for Agentic Workflows and AI-powered detection
>
> [Agentic Workflows](https://docs.semgrep.dev/workflows/overview.md) and [AI-powered detection scans](https://docs.semgrep.dev/semgrep-code/ai-powered-detection-concepts) use deployments of the following models:
>
> | Model | Used for |
> | :- | :- |
> | `gpt-5.6-luna` or `claude-haiku-5-5` | Most steps |
> | `gpt-6.1-sol` or `claude-opus-5-5` | Steps that need the most capable model |
> | `gpt-5.6-terra` or `claude-sonnet-5-5` | Steps that ask for one of these models |
>
> * If you add more than one deployment of the same model, Semgrep uses the first one.
> * If your resource has only one deployment, Agentic Workflows and AI-powered detection scans use it for every step, except steps that need a specific model. Its model doesn't have to be in the table, but it must be a model that Semgrep can calculate AI credits for.
> * If your resource has more than one deployment, AI-powered detection scans need a deployment of a fast model, `gpt-5.6-luna` or `claude-haiku-5-5`, and a deployment of a quality model, `gpt-6.1-sol` or `claude-opus-5-5`.
>
> Your resource endpoint must use a Foundry domain: `openai.azure.com`, `cognitiveservices.azure.com`, or `services.ai.azure.com`. Agentic Workflows and AI-powered detection scans don't use Foundry resources behind a custom domain.

> [tab] Google Gemini
>
> ### Google Gemini
>
> Select **Google Gemini**, paste your key into **Gemini API key**, and click **Save**.
>
> Semgrep Multimodal only supports Google Gemini with Google AI Studio, not Vertex AI.

> [tab] xAI
>
> ### xAI
>
> Select **xAI**, enter your **xAI API key** and **xAI endpoint** (for example, `https://api.x.ai/v1`), and click **Save**.

> [tab] Anthropic
>
> ### Anthropic
>
> Select **Anthropic**, paste your key into **Anthropic API key**, and click **Save**. Multimodal uses `claude-sonnet-4-6`, `claude-opus-5-5`, `claude-sonnet-5-5`, and `claude-haiku-5-5`, so your key needs access to all of them.

### Agentic Workflows and AI-powered detection on your own providers

[Agentic Workflows](https://docs.semgrep.dev/workflows/overview.md) and [AI-powered detection scans](https://docs.semgrep.dev/semgrep-code/ai-powered-detection-concepts) can run on OpenAI, Anthropic, Google Gemini, xAI, and Microsoft Foundry with your own key. They don't use Amazon Bedrock with your own AWS account or Cloudflare Workers AI.

When you enable at least one provider with your own key or account, Agentic Workflows and AI-powered detection scans send all of their model requests to your providers. They don't fall back to Semgrep-managed OpenAI or Amazon Bedrock, even if you enable those too. If a step needs a model that none of your providers serves, that step fails.

If you enable more than one provider with your own key or account, each step uses the first model in its list of preferred models that one of your providers serves. For example, a step that asks for a fast model uses `gpt-5.6-luna` if you enable OpenAI with your own key, even if you also enable Anthropic. You can't choose which provider a step uses. A single run can send requests to several of your providers, and each provider bills you for its own usage.

Your provider bills you directly for model usage on your key or account, and Agentic Workflows runs and AI-powered detection scans still consume AI credits. See [AI credits with your own providers](https://docs.semgrep.dev/usage-and-billing/overview#ai-credits-with-your-own-providers).
