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

# Enterprise Configurations

> Configure MatterAI for your enterprise deployment features as per your organization

<Note>
  These instructions are for self-hosted enterprise MatterAI deployments.
</Note>

## Github App Configuration

Once you have created your own GitHub App, you need to configure it for MatterAI.

Below are the configuration values needed:

* App Name
* App ID
* Client ID
* Client Secret
* Private Key (base64 encoded)
* Webhook Secret

<Warning>Remember to Base64 encode the `private-key.pem`, you can run `base64 -i private-key.pem` and enter the output in the Private Key input box under github app config</Warning>

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/3U87DakErDeBshmz/images/enterprise/github-app-config.png?fit=max&auto=format&n=3U87DakErDeBshmz&q=85&s=0460eb5d16417514f75ae6aef7594b87" alt="GitHub App Configuration" width="2724" height="1126" data-path="images/enterprise/github-app-config.png" />
</Frame>

## Review Configurations

Customize how MatterAI handles code reviews with the following settings:

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/wYzwDEzm8aIOC005/images/enterprise/ai-code-review-setting.png?fit=max&auto=format&n=wYzwDEzm8aIOC005&q=85&s=4cb2b00b63840087d459388f49bcfee3" alt="Review Configurations" width="2940" height="1616" data-path="images/enterprise/ai-code-review-setting.png" />
</Frame>

### **Enable PR Review Comments**

When enabled, MatterAI will post detailed review comments on pull requests, highlighting potential issues and suggestions directly in the code diff.

#### Enable PR Review on Commits

When enabled, MatterAI will automatically review new commits pushed to pull requests, providing feedback on the latest changes.

#### Enable Language Rulesets in Review

When enabled, MatterAI will apply language-specific rules and best practices during code reviews, ensuring code quality and consistency.

#### Enable Similarity Search

When enabled, MatterAI will search for similar code patterns across your codebase to identify potential duplications or reusable components.

#### Enable Lite Review

When enabled, performs a faster, less resource-intensive review that focuses on critical issues only.

### **Enable PR Description Generation**

#### Enable PR Description as Comment

When enabled, the generated PR description will be posted as a comment instead of updating the PR description directly.

#### Enable Quality Recommendations in Summary

When enabled, includes code quality improvement recommendations in the review summary.

#### Enable Sequence Diagram in Summary

When enabled, generates and includes sequence diagrams in the review summary to help visualize complex interactions in the code.

## Disabled Repositories

Mark repositories that MatterAI should not review automatically. Manual reviews can be triggered for these repositories using `/matter` [commands](/features/command-list).

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/-boUb8mu3Ny1_cmb/images/enterprise/disabled-repositories.png?fit=max&auto=format&n=-boUb8mu3Ny1_cmb&q=85&s=eb2b63a241298c41ef7a46fe2f2297ad" alt="Disabled Repositories" width="2456" height="234" data-path="images/enterprise/disabled-repositories.png" />
</Frame>

## Advanced Code Review Repositories

Mark repositories that MatterAI should automatically review with advanced settings. Manual reviews can be triggered for these repositories using `/matter review-max`.

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/HWKUJih_kkU6R5Q1/images/enterprise/advanced-code-review-repositories.png?fit=max&auto=format&n=HWKUJih_kkU6R5Q1&q=85&s=8eea9d38376fa1986fa6f3e2ac83dde4" alt="Advanced Code Review Repositories" width="2490" height="232" data-path="images/enterprise/advanced-code-review-repositories.png" />
</Frame>

## AI Provider Keys

### Setup

AI Provider keys are your AI API keys stored securely in MatterAI. You can create and manage them in the MatterAI dashboard.

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/-boUb8mu3Ny1_cmb/images/enterprise/ai-provider-keys.png?fit=max&auto=format&n=-boUb8mu3Ny1_cmb&q=85&s=4c854a22696a0855a1c701b0cf0d484d" alt="AI Provider Keys" width="2546" height="1220" data-path="images/enterprise/ai-provider-keys.png" />
</Frame>

### Anthropic

To setup Anthropic, simply add your API key in the MatterAI dashboard. You can get your API key from [Anthropic Console](https://console.anthropic.com/settings/keys)

### OpenAI

To setup OpenAI, simply add your API key in the MatterAI dashboard. You can get your API key from [OpenAI Console](https://platform.openai.com/api-keys)

### Gemini

To setup Gemini, simply add your API key in the MatterAI dashboard. You can get your API key from [Gemini Console](https://aistudio.google.com/app/apikey)

### Vertex AI

To setup Vertex AI, you need to create a service account in Google Cloud Console and required details as below.

* Project ID
* Project Location (eg; us-central1)
* Service Account JSON

#### Creating Service Account for Vertex AI

<Steps>
  <Step title="Create a new Service Account">
    Visit GCP Console for Service Accounts and create a new Service Account: [https://console.cloud.google.com/iam-admin/serviceaccounts](https://console.cloud.google.com/iam-admin/serviceaccounts)

    <Frame>
      <img className="block" src="https://mintcdn.com/gravitycloud-9ebb5c50/3U87DakErDeBshmz/images/enterprise/vertex-ai-1.png?fit=max&auto=format&n=3U87DakErDeBshmz&q=85&s=afa87b3bd7e196dc9affa6279d8123d8" alt="Create a new Service Account" width="2940" height="1416" data-path="images/enterprise/vertex-ai-1.png" />
    </Frame>
  </Step>

  <Step title="Configure the Service Account">
    Configure the Service Account with required name and role.

    * Name: `matterai`
    * Role: `Vertex AI Colab Service Agent`

    <Frame>
      <img className="block" src="https://mintcdn.com/gravitycloud-9ebb5c50/3U87DakErDeBshmz/images/enterprise/vertex-ai-2.png?fit=max&auto=format&n=3U87DakErDeBshmz&q=85&s=d28e2d4d8115a24e02029fc997d889fd" alt="Configure Service Account" width="1850" height="1408" data-path="images/enterprise/vertex-ai-2.png" />
    </Frame>

    <Frame>
      <img className="block" src="https://mintcdn.com/gravitycloud-9ebb5c50/3U87DakErDeBshmz/images/enterprise/vertex-ai-3.png?fit=max&auto=format&n=3U87DakErDeBshmz&q=85&s=c39f584e9c601be99cb657fc8190f769" alt="Configure Service Account" width="1684" height="1416" data-path="images/enterprise/vertex-ai-3.png" />
    </Frame>
  </Step>

  <Step title="Create a Key">
    Create a key for the service account and download the JSON file.

    <Frame>
      <img className="block" src="https://mintcdn.com/gravitycloud-9ebb5c50/3U87DakErDeBshmz/images/enterprise/vertex-ai-4.png?fit=max&auto=format&n=3U87DakErDeBshmz&q=85&s=069762ec3d479bd35ef4aff5c2ce3491" alt="Create a Key" width="1874" height="1306" data-path="images/enterprise/vertex-ai-4.png" />
    </Frame>
  </Step>

  <Step title="Add the details in MatterAI dashboard">
    Add the details in MatterAI dashboard.

    * Project ID
    * Project Location (eg; us-central1)
    * Service Account JSON

    <Frame>
      <img className="block" src="https://mintcdn.com/gravitycloud-9ebb5c50/3U87DakErDeBshmz/images/enterprise/vertex-ai-5.png?fit=max&auto=format&n=3U87DakErDeBshmz&q=85&s=05b203faf2d356741af6b1f6f3b42527" alt="Add the details in MatterAI dashboard" width="2522" height="1174" data-path="images/enterprise/vertex-ai-5.png" />
    </Frame>
  </Step>
</Steps>

## RuleSets

Rulesets are your custom organization-specific AI rules for languages, security and repositories stored securely in MatterAI. You can create and manage them in the MatterAI dashboard.

### Language Rules

Create or edit existing language rules in the MatterAI dashboard as per how AI should should review your codebase with specific instructions.

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/3U87DakErDeBshmz/images/enterprise/language-rules.png?fit=max&auto=format&n=3U87DakErDeBshmz&q=85&s=8c2f32023b2c9161d08c767587ba588e" alt="Language Rules" width="2732" height="1436" data-path="images/enterprise/language-rules.png" />
</Frame>

### Security Rules

Create or edit existing security rules in the MatterAI dashboard as per how AI should should review your codebase with specific instructions.

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/3U87DakErDeBshmz/images/enterprise/security-rules.png?fit=max&auto=format&n=3U87DakErDeBshmz&q=85&s=b7dc27412e2e94d6648f8ab6d663a301" alt="Security Rules" width="2726" height="1436" data-path="images/enterprise/security-rules.png" />
</Frame>

## IDE Code Reviews

Transform your development workflow with Matter AI's new asynchronous review engine designed for IDE integration.

**Benefits:**

* Instant feedback submission without waiting for analysis
* IDE stays responsive during complex code reviews
* Perfect for large diffs and complex codebases
* Built-in retry logic and error handling

### Quick Setup

1. Install the Axon Code extension from [https://www.matterai.so/axon-ai-coding-agent](https://www.matterai.so/axon-ai-coding-agent) for your IDE
2. Keep your MatterAI Enterprise Backend URL and MCP Server Key ready
3. Setup Enterprise Configs

<video autoPlay muted loop playsInline allowFullScreen className="w-full aspect-video rounded-xl" controls src="https://mintcdn.com/gravitycloud-9ebb5c50/rz08PyHrk-47B_Vp/videos/ide-code-reviews-matter-ai-enterprise-2x.mp4?fit=max&auto=format&n=rz08PyHrk-47B_Vp&q=85&s=847d059e206345c0bf0b95a02459f443" data-path="videos/ide-code-reviews-matter-ai-enterprise-2x.mp4" />

## IP Whitelisting

You can add MatterAI IP addresses to your Git provider firewall rules to ensure restricted access to API requests.

```
100.24.89.85
54.165.168.189
```
