Skip to content

AIChatbot

Configure the AI chatbot sidebar, including which built-in providers are available and the ability to add custom providers. For more information, see Access AI chatbots in Firefox on support.mozilla.org.

  • Providers: Configures the available AI chatbot providers.
    • Add: An array of custom provider objects to add. Each object accepts the following properties:
      • url (required): The URL of the AI chatbot provider.
      • name (required): Display name for the provider.
      • id (required): Unique identifier for the provider.
      • iconUrl: URL of the provider's icon.
      • queryParam: Query parameter name used to pass prompts to the provider. Firefox sends prompts to custom providers in the q query parameter, so set queryParam if your bot or provider expects something different.
    • BuiltIn: An object to remove specific built-in providers. Set a provider key to false to remove it. To add a provider that isn't already listed, use the Add key. The following built-in providers are available:
      • Anthropic Claude
      • ChatGPT
      • Copilot
      • Google Gemini
      • HuggingChat
      • Mistral Vibe
      • localhost
      • Le Chat Mistral (Deprecated. Use Mistral Vibe instead.)
    • Default: The name of the provider to use as the default, for example Anthropic Claude or the name of a provider in Add.
  • Prompts: Configures the AI chatbot prompt suggestions.
    • Enabled: Set to true to enable prompt suggestions or false to disable them.
    • BuiltIn: An object to remove individual built-in prompts. Set a prompt key to false to remove it. The following built-in prompts are available:
      • Summarize
      • Explain
      • Quiz
      • Proofread
policies.json
{
"policies": {
"AIChatbot": {
"Providers": {
"BuiltIn": {
"Anthropic Claude": true,
"ChatGPT": false,
"Copilot": false,
"Google Gemini": false,
"HuggingChat": true,
"Mistral Vibe": true,
"localhost": true
},
"Default": "Anthropic Claude",
"Add": [
{
"url": "https://ai.example.com",
"name": "Example AI",
"id": "exampleai",
"iconUrl": "https://ai.example.com/icon.png",
"queryParam": "someparam"
}
]
}
}
}
}
JSON schema
AIChatbot JSON schema
{
"type": "object",
"properties": {
"Providers": {
"type": "object",
"properties": {
"Add": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "moz-url"
},
"name": {
"type": "string"
},
"id": {
"type": "string"
},
"iconUrl": {
"type": "string"
},
"queryParam": {
"type": "string"
}
},
"required": [
"url",
"name",
"id"
]
}
},
"BuiltIn": {
"type": "object",
"properties": {
"Anthropic Claude": {
"type": "boolean"
},
"ChatGPT": {
"type": "boolean"
},
"Copilot": {
"type": "boolean"
},
"Google Gemini": {
"type": "boolean"
},
"HuggingChat": {
"type": "boolean"
},
"Mistral Vibe": {
"type": "boolean"
},
"Le Chat Mistral": {
"type": "boolean"
},
"localhost": {
"type": "boolean"
}
}
},
"Default": {
"type": "string"
}
}
},
"Prompts": {
"type": "object",
"properties": {
"Enabled": {
"type": "boolean"
},
"BuiltIn": {
"type": "object",
"properties": {
"Summarize": {
"type": "boolean"
},
"Explain": {
"type": "boolean"
},
"Quiz": {
"type": "boolean"
},
"Proofread": {
"type": "boolean"
}
}
}
}
}
}
}

This example adds a company-hosted LibreChat instance, makes it the default, and removes every built-in provider so it's the only choice in the sidebar. Set url to the page that starts a new chat, /c/new for LibreChat. Default must match the provider's name, not its id. Users who had already picked one of the removed providers are switched to LibreChat:

{
"policies": {
"AIChatbot": {
"Providers": {
"Add": [
{
"url": "https://chat.example.com/c/new",
"name": "LibreChat",
"id": "librechat",
"iconUrl": "https://chat.example.com/assets/favicon-32x32.png"
}
],
"BuiltIn": {
"Anthropic Claude": false,
"ChatGPT": false,
"Copilot": false,
"Google Gemini": false,
"HuggingChat": false,
"Mistral Vibe": false,
"localhost": false
},
"Default": "LibreChat"
}
}
}
}

To offer LibreChat in addition to the built-in providers, omit the BuiltIn object. To turn off the chatbot entirely instead, use the AIControls policy.

This example removes the built-in prompts, such as Summarize and Explain, and the prompt shortcut that appears when users select text on a page. Users can still type their own prompts in the chatbot in the sidebar:

{
"policies": {
"AIChatbot": {
"Prompts": {
"Enabled": false
}
}
}
}
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\Add\1\url = "https://example.com"
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\Add\1\name = "Example AI"
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\Add\1\id = "example-ai"
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\Add\1\iconUrl = "https://example.com/icon.png"
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\Add\1\queryParam = "q"
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\BuiltIn\Anthropic Claude = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\BuiltIn\ChatGPT = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\BuiltIn\Copilot = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\BuiltIn\Google Gemini = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\BuiltIn\HuggingChat = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\BuiltIn\Mistral Vibe = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\BuiltIn\localhost = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\AIChatbot\Providers\Default = "Example AI"
Software\Policies\Mozilla\Firefox\AIChatbot\Prompts\Enabled = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\AIChatbot\Prompts\BuiltIn\Summarize = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\AIChatbot\Prompts\BuiltIn\Explain = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\AIChatbot\Prompts\BuiltIn\Quiz = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\AIChatbot\Prompts\BuiltIn\Proofread = 0x1 | 0x0
<dict>
<key>AIChatbot</key>
<dict>
<key>Providers</key>
<dict>
<key>Add</key>
<array>
<dict>
<key>url</key>
<string>https://example.com</string>
<key>name</key>
<string>Example AI</string>
<key>id</key>
<string>example-ai</string>
<key>iconUrl</key>
<string>https://example.com/icon.png</string>
<key>queryParam</key>
<string>q</string>
</dict>
</array>
<key>BuiltIn</key>
<dict>
<key>Anthropic Claude</key>
<true/> | <false/>
<key>ChatGPT</key>
<true/> | <false/>
<key>Copilot</key>
<true/> | <false/>
<key>Google Gemini</key>
<true/> | <false/>
<key>HuggingChat</key>
<true/> | <false/>
<key>Mistral Vibe</key>
<true/> | <false/>
<key>localhost</key>
<true/> | <false/>
</dict>
<key>Default</key>
<string>Example AI</string>
</dict>
<key>Prompts</key>
<dict>
<key>Enabled</key>
<true/> | <false/>
<key>BuiltIn</key>
<dict>
<key>Summarize</key>
<true/> | <false/>
<key>Explain</key>
<true/> | <false/>
<key>Quiz</key>
<true/> | <false/>
<key>Proofread</key>
<true/> | <false/>
</dict>
</dict>
</dict>
</dict>
FirefoxFirefox ESRFirefox Enterprise
AIChatbotNot supportedNot supportedAvailable since 149
Providers.BuiltIn.Le Chat Mistral1Not supportedNot supportedAvailable from 149, removed in 155
Providers.BuiltIn.Mistral VibeNot supportedNot supportedAvailable since 161
  1. Has no effect since Firefox 155, when the provider was renamed. Use Mistral Vibe instead.

CCK2 Equivalent: N/A
Preferences Affected: browser.ml.chat.enabled, browser.ml.chat.provider, browser.ml.chat.providers, browser.ml.chat.shortcuts, browser.ml.chat.prompts.0, browser.ml.chat.prompts.1, browser.ml.chat.prompts.2, browser.ml.chat.prompts.3