Choosing an LLM provider for Mattermost Agents starts with where data may go
The choice of LLM provider for Mattermost Agents decides three things: where message content and prompts are processed, which outbound network paths your servers must open, and how each bot is configured. A self-hosted team that wants AI assistance should settle this before enabling the plugin, because switching later can mean re-approving data flows with security and compliance reviewers and changing firewall rules. Decide it up front if your channels hold regulated records, customer data, or security incident content, or if your network policy blocks general internet egress from the Mattermost server.
Start by mapping the providers Mattermost Agents supports against your data rules. Hosted options such as Azure OpenAI, Google Vertex AI, Mistral, OpenAI and Anthropic each send prompts to an external service endpoint, so your questions are about the contractual terms, the region where inference runs, and which regional endpoint or private connectivity option the provider offers. An OpenAI-compatible option can point at a model you run yourself. Confirm the supported provider list, the exact configuration fields, and any version-specific behavior against the current Mattermost documentation for the server version you run, since providers and fields change between releases. The Mattermost server releases page shows which version is current and which Extended Support Release you may be on.
Record the answers in a short decision sheet before any configuration. For each intended bot, list the channels and users it can reach, the provider and endpoint it will call, the data classes allowed in those prompts, and the hostnames your outbound proxy or allowlist must permit. Mattermost Agents can be configured with more than one bot, so a bot for general help can use a hosted model while a bot in a restricted team uses a model inside your boundary. Ask each provider for written statements on data retention, training use, logging, and subprocessors, and have your security team review them. Those statements, not the product page, are the evidence your auditors will request.
Which LLM backend fits which constraint
This table compares the LLM backends Mattermost Agents can use by the questions buyers ask first: where inference runs, what network egress is required, which account or key model applies, and when a self-hosted model is the better fit. Read each row as a question to put to the vendor or your own environment, since provider-specific limits, regions, and terms are not listed here and must be confirmed before you choose.
| Constraint | Hosted cloud backends (Azure OpenAI, Vertex AI, Mistral, OpenAI, Anthropic) | Self-hosted via OpenAI-compatible option (Ollama, vLLM) |
|---|---|---|
| Where inference runs | In the provider's cloud, in regions you select where the service offers them. Confirm which regions and model versions are available for your account. | On hardware you operate, inside your data center or cloud account. Prompts and completions stay within your network boundary. |
| Network egress required | Mattermost server must reach the provider's API endpoints over outbound HTTPS. Confirm exact hostnames and allowlist entries with each vendor and your proxy team. | Mattermost server must reach the model server's internal API URL, typically on your private network. No public egress is needed for inference. |
| Account or key model | Each provider uses its own account, API key or cloud identity. Confirm which authentication method each provider supports for your Mattermost version. | Usually no vendor account. Access is controlled by your network and any gateway or token you place in front of the model server. |
| Data residency assurance | Depends on the provider's data handling terms and the region you deploy to. Ask for written terms covering retention, training use and subprocessors. | You control where data is stored and logged, since the model server runs in your environment. Assessors will still ask how logs and caches are handled. |
| Per-bot configuration | Confirm whether each bot can point to a different provider or deployment in your Mattermost version, and how model names map to each provider's identifiers. | Confirm whether each bot can target a different model server URL and model name, and whether the Responses API toggle applies to that model. |
| Model feature parity | Hosted frontier models usually offer the widest feature set. Confirm which tool calling, file or image features each provider exposes through Mattermost. | Features vary by model and server. Tool use, long context and structured output may not work with every model, so test each one before rollout. |
| Who pays for compute | The provider bills usage under your contract. Ask for pricing per model and whether volume commitments apply. DeployOpen does not estimate these costs. | You buy and run the hardware and power, then carry capacity planning and upgrades. Costs are mostly one-time hardware plus recurring operations. |
| When self-hosted is the better fit | Less suited when prompts must never leave your boundary or when your assessor will not accept the provider's data terms. | Best fit when data must stay inside the boundary, egress is restricted, or you need an air-gapped deployment and can staff model operations. |
How data residency and network access change the choice
Some teams must keep prompts and responses in a particular geography because a regulator, a customer contract or an internal policy names one. Start by asking the provider which regions host the model you plan to use, because model availability varies by region and by provider. Mattermost Agents sends requests from your server to the provider endpoint, so the region you choose becomes the endpoint you configure and the hostnames you allow.
- Region-scoped endpoints: Azure OpenAI and Google Vertex AI deployments are created in a chosen region, which makes the region part of the endpoint itself. Confirm the exact regional hostnames with the provider.
- Model availability: A model may exist in one region and not in another. Confirm that the specific model and version are deployed in the region your review requires.
- Allowlist changes: Each regional hostname must be permitted by your outbound rules, so moving to a different region changes firewall and proxy configuration as well as the provider setting.
- Direct vendor APIs: For OpenAI, Anthropic or Mistral direct access, confirm in writing where requests are processed and stored, since that depends on the vendor's data handling terms.
- Hosted options: Where a model is offered through a cloud marketplace or managed service, residency depends on the hosting option you choose, so confirm it per option.
Check: get the region for each model in writing from the provider, then list the exact hostnames in your allowlist before testing.
Security reviews that forbid any outbound model traffic leave only self-hosted backends. The Agents plugin runs inside your Mattermost server, so the real question is where the model runs. Ollama and vLLM run inside your own infrastructure and can be reached through the OpenAI-compatible option, which keeps prompts and responses within your boundary. Air-gapped deployment also requires that the server has no route to the internet, and the Mattermost pricing page places air-gapped deployment in the Enterprise Advanced plan.
- Cloud backends are excluded: Azure OpenAI, Google Vertex AI, Mistral, OpenAI, Anthropic and Amazon Bedrock all require an outbound connection from the server to a provider.
- Self-hosted models: Models served on hardware you control keep inference inside the boundary, subject to the compute sizing and feature limits covered in the local models guidance.
- Documented allowlist: An empty external allowlist, verified by test, gives reviewers a concrete control they can inspect.
- Update and plugin delivery: Confirm how plugin installation, updates and license checks reach your server in an air-gapped setup, since these run outside the model path and may need a separate transfer process.
- Plan requirement: Confirm with Mattermost that your plan includes the air-gapped deployment you need before you design around it.
Check: block outbound traffic at the firewall, run the Agents plugin against your self-hosted backend, and confirm that requests to any external host fail.
Teams that already buy from a cloud provider often have data processing terms, committed spend, private networking and identity controls in place. Choosing a backend from the same provider can reuse those arrangements instead of creating new ones. Azure OpenAI fits organizations already operating in Azure, Google Vertex AI fits Google Cloud customers, and Amazon Bedrock fits AWS customers, where a Mattermost server on EC2 can use IAM instance profiles rather than stored keys.
- Contract scope: Confirm whether your existing agreement covers the AI model service itself, not just the compute, storage or networking around it.
- Private connectivity: Ask whether the provider offers private endpoints that your network team can route to, since these change the hostnames and therefore the allowlist.
- Workload identity: Where the provider supports instance profiles or workload identity, use them in preference to long-lived keys, and record the decision for the reviewer.
- Quota and limits: Check the quota and rate limits in your chosen region under your existing subscription before you plan the number of bots.
- Direct vendor agreements: Contracts with OpenAI, Anthropic or Mistral need their own review of data terms, separate from any cloud agreement you hold.
Check: ask procurement and legal to confirm which terms cover prompts, responses and any stored data before the backend is selected.
Mattermost Agents can host more than one bot, and each bot can be configured separately. A review can therefore accept one backend for general use and a stricter backend for sensitive teams. The network design then has to cover every bot, because the server's outbound rules are shared across all of them. Reviewers usually judge the most permissive bot in the deployment, so the design should be assessed as a whole.
- Per-bot backend: A bot can point at a different provider, so an external model can serve low-sensitivity work while a self-hosted model covers restricted channels.
- Combined allowlist: Every backend that any bot uses adds hostnames to the server's outbound rules, so the allowlist is the sum of all bots.
- Access by bot: Confirm which users and channels each bot can reach, since access controls determine who can send data to which backend.
- Inventory: Keep a register of each bot with its backend, region, data terms and owner, and keep it aligned with the live configuration.
- Change control: Adding or changing a bot alters data flows, so route it through the same review that approved the original design.
Check: list every configured bot with its hostnames and confirm that the security review covers each one, including the default bot.
Selecting and connecting a provider, step by step
This sequence moves from compliance requirements to a working, reviewed connection, so the provider choice is made once and each bot inherits settings that have been checked. Each step ends with a check you can record before moving on.
Confirm compliance and data-handling requirements
Your security, legal and compliance owners decide what data may leave your boundary, which regions data may be processed in, how long a provider may retain prompts and responses, and whether training on your data is allowed. Write these as requirements before anyone compares vendors. Done means a signed-off list that names the data classes allowed to reach an external model and the approvers for each. Confirm the exact retention and training terms with each provider in writing, since these vary by service and account type.
Choose the provider and account model
Shortlist the backends that Mattermost Agents supports and match each to your requirements: data residency options, whether the service is reached through a cloud account you control, and how credentials are issued. Decide whether one provider account serves all bots or whether separate accounts or deployments split sensitive and general use. Done means a recorded decision naming the provider, the account that owns it, the region, and who holds administrative access to that account.
Confirm the endpoint and network path
From the Mattermost server itself, not your laptop, confirm that the provider's endpoint resolves and that outbound connections on the required port succeed. Check any firewall, proxy or egress allowlist between the server and the endpoint, and confirm that the hostname is permitted in the Agents settings. If the server has no internet route, decide now whether a proxy or a self-hosted model is the route. Done means a test connection from the server returns an expected response code and the route is written into your network diagram.
Configure the service in the System Console
An administrator with the Agents plugin enabled adds the LLM service in the System Console, entering the endpoint, the authentication method and the model or deployment names the provider issued. Store credentials only in the fields the product provides, restrict who can view or change them, and record the change in your audit process. Done means the service saves without error and appears in the configuration with the model names you approved, not defaults you have not reviewed.
Verify with a test prompt
Send a non-sensitive test prompt from a test account and confirm that a response returns within normal latency and that the request appears where your provider logs requests, such as its console or your gateway logs. Repeat with a prompt that should be refused or limited by your policy to confirm the boundary works. Done means both results are recorded, including the endpoint that served the request, so you can match it to the approved route from the network step.
Check that responses reach the expected bot
Where more than one bot exists, send a prompt to each and confirm that the reply comes from the intended bot account, uses the intended model and reaches only the channel or user that asked. Check that a bot restricted to certain users or teams does not respond to others. Done means a short table of bot, model, test user and observed behavior, signed off by the owner of that bot's data policy.
Add per-bot settings and review access
Set each bot's model, access rules and permitted tools according to the requirements from the first step, so that sensitive bots use only approved backends. Confirm the settings with a second administrator and repeat the bot-level check for any change. Done means every bot has a documented provider, model and access scope, and you have a dated review date to repeat this sequence when the provider, model or your requirements change.
How a Mattermost Agents request reaches a model provider
A request starts when a user posts a message that addresses an agent bot in Mattermost. The Agents plugin on the Mattermost server builds the prompt and sends it outward, so the outbound network path is the hop to check first: it must either go through your approved proxy or reach a hostname your allowlist permits. The chosen LLM backend then answers back through the same path. The self-hosted boundary covers the Mattermost server and database, and everything beyond the egress point is a provider you have chosen to trust.
Request path from a user message to the chosen model backend, with the self-hosted boundary marked.
Why per-bot provider settings matter for mixed data sensitivity
A single Mattermost deployment can host several Agents bots, and each bot can be pointed at its own LLM backend. That makes per-bot provider settings the control that lets a team keep sensitive workflows on an approved path while sending general-purpose tasks to a different service. Treat the bot-to-provider mapping as a data handling decision, not an afterthought in the initial setup, because it determines where every prompt and channel excerpt goes.
Start with three design questions. First, which bots will read or respond in regulated channels, such as those carrying customer records, legal matters or incident data? Second, which users and teams can reach each bot, and does that match the channels they are allowed to read? A bot that is available to a broad group can expose data from a narrow channel through its answers, so access to the bot and access to the underlying channel should be reviewed together. Third, who can change a bot's provider, model or endpoint, and how is that change approved? Confirm in your own environment which roles can edit bot settings and whether those edits leave an audit trail you can show a reviewer.
Write the answers down before you configure anything. A short register that lists each bot, its permitted channels, its provider and model, and its approver gives your security and compliance teams something concrete to test. For the provider side, the sibling topics on Sovereign and air-gapped AI with Mattermost and on local models cover the backend choices, so this section only sets the rule: each bot's provider should be justified by the sensitivity of the data it will see. Then verify the result by sending a test prompt through each bot and confirming it reaches the intended endpoint.
Security and operational risks of each provider path
Whichever backend you choose, the same six exposure points recur: where keys live, where data goes, what gets logged, how upgrades change behavior, what spending looks like, and who can change bot settings. Treat each as a control you configure and verify, not a default you inherit.
API key storage on the server
Every hosted provider authenticates with a key, token or cloud identity. Those credentials sit in the Mattermost server configuration or the environment of the host, so anyone who reads the config file, a backup or a process environment can call the model under your account. Confirm in the current Agents documentation where each provider's secret is stored, whether it is encrypted at rest, and whether it is masked in the admin console and in exports.
Egress to third-party endpoints
Each provider path sends prompts, retrieved channel content and tool results to an endpoint outside your network unless the model is self-hosted. Your firewall and proxy rules decide which hostnames the server can reach. Verify the exact endpoints each provider requires, whether the Agents hostname allowlist covers them, and whether your outbound proxy settings apply to every provider path, including any used for tool calls.
Logging of prompts and responses
Prompts and completions can end up in server logs, debug output or support bundles, and a provider may keep its own records under its terms. Channel content that a user never expected a model to see can appear there. Ask each provider what it retains, whether it trains on submitted data, and how long. On your side, check the server log level, what the Agents plugin writes, and how your retention policy applies to any copies.
Provider changes after upgrades
Mattermost ships a new server version each month and Extended Support Releases on a longer cycle, and plugin behavior can change with them. A default bot, a model name or an API option may change or be retired between versions, which can silently move traffic to a different backend. Before each upgrade, record the active provider and model for every bot, read the release notes for Agents changes, and test one request per bot on staging.
Server release scheduleCost and usage monitoring
Hosted models bill per request or per token, and an agent that answers in a busy channel or runs tool loops can multiply usage quickly. Your cost depends on the provider's pricing, which you should obtain in writing from the provider or your cloud account, not from this page. Set provider-side spending limits and alerts where the provider offers them, and ask whether the Agents plugin exposes per-bot usage so you can attribute spend to a team.
Administrator access to bot configuration
Any system administrator who can edit a bot can redirect its traffic to another provider, add an endpoint outside your approved list or read stored settings. Limit who holds the system admin role, record changes to Agents configuration in your audit process, and confirm which configuration actions the server logs. Where your plan supports it, use separate bots with separate providers so a change to one team's assistant does not affect another.
Questions teams ask before choosing an LLM provider
What drives the cost of choosing and setting up an LLM provider for Mattermost Agents?
The cost comes from three places: the provider's model usage charges, the infrastructure around the Mattermost server, and the people time to evaluate and configure the setup. Usage charges recur and grow with the number of users, bots and conversations, so ask each provider for its current pricing model in writing. Infrastructure and staff time are mostly one-time costs for the initial setup, with ongoing effort for keeping keys, allowlists and models current. Your Mattermost licensing is a separate line item: the pricing page lists no public prices and directs buyers to contact sales. Any quote should separate evaluation, configuration, testing and recurring support so you can compare options on the same basis.
How long does evaluating LLM providers for Mattermost Agents usually take?
Duration depends mainly on how many providers you compare, how many bots you plan to run, and how many approvals sit between your security, legal and procurement teams. A narrow evaluation of one or two providers against a single use case is much shorter than a comparison covering data residency, private network routing and per-bot access across several models. Your own internal approval cycles often take longer than the technical work. No duration is set here, so ask any partner to state assumptions and milestones in a written scope before work starts, and confirm the timeline against your own review calendar.
What does our team need to provide before the provider evaluation starts?
You need to supply four things: network access, account owners, a data classification and a list of use cases. Network access means confirming which outbound destinations the Mattermost server may reach, whether traffic must pass through an approved proxy, and whether a private endpoint is available. Account owners are the people who can create provider accounts, accept model terms and hold billing and API keys. The data classification states which channels, files and personal data the agents may send to a model. Finally, list the bots and their purpose, since data handling often differs by use case. Confirm these inputs with your security and network teams before the comparison begins.
Can our internal team choose and configure an LLM provider without a partner?
Yes, many internal teams can do this if they have people who understand cloud identity, outbound networking, Mattermost administration and your data rules. The work splits into a decision step, where security, legal and the business agree on provider terms, and a configuration step, where an administrator sets up the Agents plugin, provider settings, hostname allowlists and any proxy. The harder parts are usually the data review and proving that the setup behaves as the review expects. A partner can take on scope such as configuration, testing or documentation, but that should be written into a fixed scope with deliverables and timelines. Check your team's gaps against the skills listed above before deciding.
How do we switch to a different LLM provider later without losing our Mattermost setup?
Switching is usually manageable when the Mattermost configuration stays separate from provider-specific details. Keep a record of each bot's purpose, model choice, access controls and the allowlisted hostnames, so you know what to change. Plan for a test phase where the new provider runs alongside the old one for a limited set of bots, and verify output quality, permissions and logging before cutting over. Expect work on credentials and identity settings, and review what chat history or embeddings were sent to the old provider under its terms. Ask any provider in writing how it handles retained data, and confirm the migration steps against the current Mattermost and provider documentation.
Which provider data handling and residency questions should we answer first?
Start with where prompts, responses and any stored content are processed and retained, and whether the provider uses your data for training. Then check whether the provider offers a region or deployment option that matches your residency requirements, and whether private network routing is available. Ask about logging, encryption, subprocessors and how long data is kept. These answers belong in your data classification and in the provider's contract, not only in a product page. Your compliance team should review the written terms, since the controls you need depend on your regulator and your own policies.
Is there a difference between running engineers' questions through a cloud model and a self-hosted model?
Yes. A cloud provider handles model hosting, scaling and patching, but your prompts leave your infrastructure and you rely on the provider's terms and controls. A self-hosted model, such as one served with Ollama or vLLM, keeps prompts inside your boundary but moves hardware sizing, model updates and availability into your operations. Each option has its own cost pattern: cloud costs follow usage, while self-hosting costs follow compute capacity and staff time. Many organizations compare both before deciding, and some run different bots on different backends. Ask your team to test the same use cases against each option before deciding.
Keeping provider settings stable across Mattermost releases
Provider configuration for Mattermost Agents should be re-tested after every server upgrade, because the server release cadence changes often enough to matter. Mattermost releases a new server version in binary form on the 16th of each month, and some of those releases are Extended Support Releases. Your LLM provider settings, the default bot and any per-bot provider assignments sit alongside server code that moves on that schedule, so a change that looks unrelated can still break how a bot reaches its model. Treat every upgrade as a chance to confirm that each bot still answers through the provider you chose.
Plan upgrades around support windows, not just release dates. The v11.7 release is an Extended Support Release, released on 2026-05-15 with support ending 2027-05-15, which gives teams that prefer fewer upgrade cycles a long window to test and stage changes. Before you change anything, read the release notes for the version you are moving to and look for changes to Agents, LLM service configuration, hostname allowlists and outbound proxy handling. Confirm with your Mattermost contact how the provider integrations you selected are covered in each release you plan to run, since support status for a given provider path can differ from the server support dates.
Keep a short written test for each provider and bot, and run it on a staging copy of your deployment before production. The test should send a known prompt to each bot, confirm the response, check that the provider endpoint and credentials still resolve, and confirm that outbound traffic still passes through the approved proxy and allowlisted hostnames. Record the server version, provider settings and bot assignments next to the test results so that a rollback has a known-good baseline. If a release notes change affects your provider, hold the upgrade until the test passes or the setting is updated and retested.

