Setting up the Mattermost Agents plugin

A practical guide to enabling the Mattermost Agents plugin on a self-hosted server, configuring an LLM service, and setting the default bot, hostname allowlists and outbound proxy.

On this page

Setting up the Mattermost Agents plugin on a server you operate

Setting up the Mattermost Agents plugin on a self-hosted server means checking prerequisites, choosing and configuring an LLM service, and controlling outbound network access from the Mattermost server. Teams need this section once users start asking AI assistants to summarize channels, draft replies or search conversations, because each of those requests can send message content to a model endpoint outside the server. Before anything is switched on, the team should decide where that content is allowed to go, which identity and admin roles can configure AI, and whether the model runs in a cloud service, a private data center or a network with no internet route. The plugin is preinstalled in supported server releases, but availability, plan level and exact setting names depend on the server version you run, so confirm them against the Mattermost documentation for that version before you change production.

Start with the prerequisites on the server and database side, then configure one LLM service in the System Console. Confirm the server version and its support window using the Mattermost release notes, check that the plugin is enabled and healthy, and record which database and extensions the release needs. Next, choose the default bot that agents respond through and decide which users can reach it. Keep the first configuration to one provider so you can test responses, logging and permissions before adding more. Write down each LLM API endpoint and credential source, and store secrets outside plain configuration files wherever your deployment method allows. Changes to these settings should go through the same change control you use for other server configuration, because a mistake here can expose data to an unapproved service without any visible error in the chat interface.

Outbound network control is the step most often skipped. The server must reach the chosen model endpoint, so the team should list the hostnames the provider requires, then add them to the allowlist for the plugin and, where the environment uses one, set the outbound proxy so requests leave through a controlled path. Test from the server itself, not from a laptop, because a successful browser test proves nothing about the Mattermost process. Ask your Mattermost account team or consult the server documentation for the current hostname list for each provider, since these lists change with provider and release. Then run a short acceptance test with a non-sensitive channel, confirm the request appears in your logs, and document the result so the security and compliance teams can review the configuration.

How a user request reaches the LLM service through the Agents plugin

A request starts when a user posts in a channel or direct message and the Mattermost server hands it to the Agents plugin. The plugin builds the call and sends it toward the configured LLM service, and the outbound path is where you set the proxy and the hostname allowlist, so those are the control points to check first. The database is also in the path for conversation data, and the answer returns along the same route to the user. Exact routing depends on the chosen provider and the plugin version, so confirm the path against your own configuration before you approve the outbound rules.

Request path from a user through the plugin to the LLM service, with the trust boundary marked.

Which LLM service configuration fits your data boundary

This table compares three broad ways to point the Agents plugin at a language model: a hosted provider API, a provider-managed service inside your cloud account, and a self-hosted model behind an OpenAI-compatible endpoint. Read each row for where prompts and channel content travel, which hostnames and proxy settings you must allow, and what your security team should review before enabling a bot. Model-specific configuration is covered on the sibling pages.

ConfigurationData path and outbound needsWhat security must review and confirm with the vendor
Hosted provider API over the internetPrompts and retrieved channel content leave your network for the provider's public endpoint. Allow only the provider hostname on the Mattermost server, and route it through your outbound proxy if one is required.Provider data retention and training terms, regional processing options, logging of prompts, and whether the account plan covers commercial data use. Confirm the exact hostname and any IP range changes with the vendor.
Provider-managed service in your cloud accountRequests travel from the Mattermost server to a private or regional endpoint in your cloud tenant, using identity from the instance rather than a shared key. Outbound rules are narrower, but the cloud network path and endpoint names must be confirmed.Identity and access policy for the service, model access approvals, cross-region routing behavior, encryption and logging settings in your account, and the vendor's statement on how customer inputs are stored or used.
Self-hosted model via OpenAI-compatible endpointRequests stay on your internal network between the Mattermost server and a model server you operate. No public hostname is needed, but the internal endpoint, its port and any TLS certificate must be allowed and trusted by the server.Who can reach the model host, GPU and storage isolation, log retention on the model server, patching of the serving software, and whether the model's license permits your use. Confirm with the serving project which API features are supported.
Required server allowlistHostnames the Agents plugin calls must appear in the server's allowed hosts setting, or requests fail. Keep the list to the single endpoint you choose for each bot.Review every added hostname in the change record, and confirm that no bot is configured to call an endpoint outside the approved list.
Outbound proxy pathIf your organization forces egress through a proxy, the Mattermost server settings must point at it for LLM calls. Internal endpoints usually need a proxy exclusion so traffic does not leave the network.Proxy logging and inspection rules for prompt content, certificate handling for TLS inspection, and whether the proxy exclusion list is narrow enough to keep internal model traffic internal.
Default bot and per-bot accessThe default bot uses one configured service unless you create additional bots. Each bot's connection determines where its prompts go, so a single misconfigured bot can move data to a different boundary.Who may create or edit bots, which channels each bot can read, and whether the default bot's service matches the boundary your policy allows. Ask the vendor how bot configuration is audited.
Model-specific stepsSetup steps differ for each provider or serving tool, including endpoint paths, authentication, and feature toggles. Do not treat the rows above as complete configuration instructions.Follow the sibling pages for OpenAI-compatible local models, Amazon Bedrock, and the provider comparison before approving a specific service.

Which server and database prerequisites to check before enabling AI

Mattermost runs as a single Linux binary with PostgreSQL as its database, so the Agents plugin sits on the same server and database your organization already operates. Before you enable it, confirm which server version and release track you run. Mattermost ships server versions in binary form on the 16th of each month, and the Extended Support Release track changes how often you take upgrades. Check that your running version is inside its support window, because an AI feature enabled on an unsupported server adds risk without a supported path to fix it. Then confirm the plugin's minimum server version in the release notes for the version you plan to run, not from memory or a forum post.

Next, confirm the PostgreSQL version and capacity. Record the current version, the number of connections the application servers open, and the disk headroom on the database host, since AI features add message processing and stored data. Ask whether the Agents plugin needs any extension, such as a vector extension for embeddings, and whether the search or indexing components it uses must be installed in the same database. Confirm these requirements in the documentation for your exact Mattermost version and your PostgreSQL major version. If the documentation does not list a requirement, treat it as unconfirmed and ask the vendor before you schedule the change. Plan the storage, backup and restore impact of any vector data before enabling the feature in production.

If your deployment is a high availability cluster, every application node must see the same shared file storage, either Amazon S3, an S3-compatible service or a NAS mounted on each node, because local file system storage will not work correctly and risks corrupting files. Configuration must also match on every node, so the plugin settings, LLM service details and proxy settings must be identical across the cluster. Check the high availability cluster documentation for the current requirements, and test the change on a staging cluster that mirrors your node count and storage layout before you roll it out.

How the release track changes when you can enable AI

An Extended Support Release (ESR) is a server version Mattermost supports for a longer period than a standard monthly release, which suits organizations that want fewer upgrades and a stable baseline for AI features. The current ESR in the supplied release facts is v11.7, released on 2026-05-15 with support ending on 2027-05-15. The previous ESR, v10.11, reached end of life on 2026-08-15, so an organization still on it would have needed to move before that date.

  • Longer support window: v11.7 is supported until 2027-05-15, which gives the platform and security team a fixed horizon for planning.
  • Fewer upgrade cycles: Staying on one ESR means fewer changes to test against your LLM provider, proxy and plugin settings.
  • Possible lag in Agents features: A stable track may not include the newest Agents plugin capabilities, so confirm which version first ships the feature you need.
  • Hard end-of-life dates: Plan the move to the next ESR well before the support end date, because an unsupported server is harder to justify in a security review.
  • Budget for a larger jump: Moving between ESRs can bundle several months of changes into one upgrade, so schedule a staging rehearsal.

Before committing, confirm with Mattermost which ESR contains the Agents plugin version and configuration options your organization requires.

How to enable the Agents plugin and connect an LLM service

This sequence takes a self-hosted Mattermost from a server with the Agents plugin present to a working AI assistant that answers a test prompt. Each step ends with a check you can run, so problems surface before any user sees the feature.

  1. Confirm the Agents plugin is present and enabled

    The administrator opens the System Console and goes to the plugin management area for the server version you are running. Confirm that the Agents plugin is listed, that its version matches the server release you installed, and that it is switched on. Copy the exact menu labels from the documentation for your version, because they change between releases. Check: the plugin shows as enabled with no error state, and the server log shows no plugin load failure at the most recent restart.

  2. Verify network path to the LLM endpoint

    The Mattermost server administrator, working with the network or platform team, confirms that the server can reach the chosen LLM service endpoint. Test from the Mattermost host itself, not from a workstation, and route the test through the outbound proxy if your environment requires one. Confirm that the endpoint hostname is on the allowlist settings that apply to outbound requests in your version. Check: a request from the server host returns a valid HTTP response from the endpoint, and the proxy logs show the request passing through.

  3. Add the LLM service with credentials as server secrets

    In the Agents settings of the System Console, add the LLM service you selected and enter its API URL and any model identifiers it needs. Store API keys or other credentials in the secret or environment variable mechanism your deployment uses, not in plain text fields that others can read in configuration exports. Ask your LLM provider or your internal platform owner which endpoint path and model names apply to your account. Check: the service saves without a validation error, and the configuration export you review contains a placeholder or reference in place of the key.

  4. Create or review the default bot

    Open the bot configuration in the Agents settings and either create the default bot or review the one the plugin created. Confirm that the bot is linked to the LLM service you just added, that its display name and description match your naming standard, and that it is not granted access beyond what your first pilot group needs. Record the bot's account name so the audit trail and access reviews can identify it later. Check: the bot appears in the server's user list as an active bot account and its status shows the linked service.

  5. Run a test prompt in a non-production channel

    Create a private test channel with a small group of administrators, invite the Agents bot, and send a simple prompt with no sensitive content, such as asking for a summary of a short sample message. Confirm the response arrives within a reasonable interval for your network and model, and that the reply is attributed to the bot. Repeat the test once from a standard user account to confirm permissions behave as expected. Check: the bot returns a coherent answer to both prompts, and the channel shows no error messages from the bot.

  6. Check server logs for errors

    Review the Mattermost server logs from the time of the test prompts, focusing on entries from the Agents plugin and from outbound HTTP calls. Look for connection timeouts, TLS certificate errors, proxy refusals, authentication failures from the LLM service and any messages that mention an allowlist or blocked host. Compare what you find with the troubleshooting guidance for your version, and fix one cause at a time before retesting. Check: the test window contains no plugin errors, and two repeated test prompts produce no new warnings in the log.

What the default bot controls and how to change it safely

The Agents plugin answers users through a bot account, so the default bot is a policy decision, not a cosmetic setting. Its configured model determines the quality and location of answers, its account permissions and channel membership determine which conversations and files it can read when it is asked to summarize or search, and its visibility determines who can start a conversation with it. Before you let anyone use the feature, review the bot account the way you would review any service account: confirm which teams can message it, which channels it has joined, what system role it holds, and which LLM service it calls. Confirm in the version you run how the plugin enforces each user's existing channel access when the bot retrieves content, because that answer sets the real data exposure.

Plan now for more than one bot if different groups need different models or access. A single default bot forces every team onto the same provider, the same data handling terms and the same reach into channel history. Teams with sensitive work, such as legal or incident response, may need a bot that calls a self-hosted model or has tighter visibility, while a general productivity bot can use a hosted provider. Decide early which groups need their own bot, how each bot is named so users pick the right one, and who approves changes to each bot's model and access. Confirm with your Mattermost contact or the release notes for your version whether per-bot configuration is available on your plan and build.

Changing the default bot after users depend on it has side effects that are easy to miss. Conversation history is tied to the bot that answered it, so users may lose the context they expect when they open an older thread, and a model swap can change answer style, tool behavior and output quality without any change on the user side. Treat a change as a planned event: announce it, test representative prompts against the new model, tell users whether existing threads remain accessible, and keep the previous configuration available for rollback. Confirm in your version how existing conversations behave after a bot change, since that behavior is not something to assume from another release.

Security controls to set before users send prompts

The Agents plugin sends channel content to a model service that sits outside Mattermost's own control, so the boundary has to be set before anyone asks a question. The cards below cover the network path, the credentials, who can reach the bot, what gets kept, and how changes are reviewed. Each one names the risk and a check your security team can run.

Hostname allowlists

Outbound access from the Mattermost server should be limited to the hostnames the chosen LLM service actually needs, such as the provider API endpoint and nothing else. Without an allowlist, a misconfigured or compromised plugin can reach any destination the server can. Ask your team to list every hostname the plugin calls during a test conversation, then compare that list with the firewall or egress policy. Confirm the exact endpoints with your LLM provider, since they vary by service and region.

Deployment planning docs

Outbound proxy routing

Routing model traffic through an outbound proxy gives one place to log requests, enforce destination rules and inspect failures. The risk is traffic that bypasses the proxy, such as a direct route from the application host. Check that the Mattermost server's proxy settings are applied to the plugin's calls, then confirm from the proxy logs that prompts reach only the approved endpoint. Test a blocked hostname to verify that the denial is recorded.

LLM service key storage and rotation

The API key for the LLM service grants billable model access and, depending on the provider, may expose conversation data. Store it in the server configuration with restricted file permissions or in your secrets manager, never in a channel or a shared document. Set a rotation schedule with an owner, and confirm that rotating the key does not require a plugin restart that would break a live conversation. Review who has System Console access, because that role can view or change the setting.

Named key owner
1 owner

Bot and channel access control

The Agents plugin lets administrators decide which users and channels can interact with a bot, and each bot can be configured with its own model. A bot available to every channel can read content from channels its users should never expose to a model. Map each bot to a defined user group and a short list of channels, then test as a user outside that group to confirm the bot refuses to respond. Re-run this check whenever a bot or channel membership changes.

Retention and audit review of AI conversations

Responses generated by an AI bot are stored like any other message, so retention settings and deletion rules apply to them. Decide how long prompts and responses are kept, who may read them, and whether they fall under legal hold or export policies. Run a sample review: post a test prompt, confirm the message is retained as your policy requires, and confirm that an authorized reviewer can locate it. Confirm the retention behavior with your Mattermost deployment owner before go-live.

Change control for plugin and server upgrades

The Agents plugin and the Mattermost server both change over time, and a plugin update can alter how prompts are built or which endpoints are called. Mattermost releases server versions monthly, and Extended Support Releases follow a longer cycle, so the schedule matters. Test each plugin version in staging, repeat the hostname and proxy checks, and record the approved version. Confirm the current support dates for your server version before choosing a release channel.

Monthly release day
16th
Server releases page

Questions teams ask before enabling AI in self-hosted Mattermost

What does enabling Mattermost Agents cost, and what drives the price?

The software side has a published cost structure only in part: Mattermost sells Professional, Enterprise and Enterprise Advanced plans as prepaid annual subscriptions based on seat licenses, and the pricing page lists no public prices, so you need a quote from Mattermost sales. Your own costs come from the LLM service you choose, which bills by usage or license under its own terms, plus the engineering time to configure it. Ask for the plan level your AI use requires, the LLM service fees you will carry, and whether any agent feature depends on a plan tier. DeployOpen quotes follow from a written scope that covers the number of bots, LLM services, network approvals and the security review you need.

Can our internal team set up Mattermost Agents without a partner?

Often yes, if your team already runs the Mattermost server and has the access and time to change configuration. The work is configuration rather than custom code: enabling the preinstalled Agents plugin, meeting server and database prerequisites, adding an LLM service, setting the default bot, and maintaining hostname allowlists and outbound proxy settings. The effort rises when several teams need separate bots on different models, when your security group must review data flows, or when your network team must approve new outbound destinations. Decide early which of those you can staff in-house, and ask a partner to take on only the gaps.

How long does setting up Mattermost Agents take?

The duration depends on how quickly your organization can approve the work, not on the plugin itself. The main timing drivers are the state of your existing Mattermost server and database, the number of LLM services and bots in scope, how long outbound network change requests take to approve, and how much review your security team requires before users get access. A narrow pilot with one bot and one approved LLM service moves faster than a multi-bot rollout. Ask any provider for a written timeline tied to these dependencies, and treat any fixed duration without them as an assumption to test.

What do we need to provide before the setup starts?

Plan to provide four things before work begins:

  • Administrator access to the self-hosted Mattermost server and its PostgreSQL database, including the ability to change configuration and restart services.
  • An account with the LLM service you intend to use, with the model access and billing set up under your organization.
  • Approved network change requests for the outbound hostnames the LLM service needs, and any outbound proxy details your network uses.
  • A small test group of users and a named owner who can decide whether the pilot is ready for wider use.

Confirm each item with your server, network and security owners early, since approvals are often the longest step.

Is Mattermost pricing published, and who should we ask?

No. Mattermost does not publish prices on its pricing page, which directs buyers to contact sales. The page lists the Professional, Enterprise and Enterprise Advanced plans and states which features each includes, such as SSO and AD/LDAP user sync from Professional, high availability clustering and FIPS 140-3 compliance from Enterprise, and air-gapped deployment in Enterprise Advanced. Ask Mattermost sales for a quote based on your seat count and required features, and confirm in writing which plan covers the Agents capabilities you plan to use. Use that plan decision as the input to any DeployOpen scope.

Can Mattermost Agents run in an air-gapped environment?

It can be designed for air-gapped operation, but you must confirm this against your plan and your model setup before committing. Mattermost lists air-gapped deployment as part of the Enterprise Advanced plan on its pricing page. Beyond the license, an air-gapped setup needs an LLM backend reachable inside your boundary, such as a self-hosted model service, and no outbound calls to external hostnames. The hostname allowlist and proxy settings should be reviewed against that constraint. Ask Mattermost to confirm in writing which Agents features and LLM options work offline in your environment.

What security review should we expect before users get AI access?

Expect a review of where prompts and channel content go, which LLM service receives them, and who can use each bot. The key checks are the hostname allowlist, outbound proxy routing, the credentials stored for the LLM service, and the default bot's access. Your security team will also want to know which data leaves your boundary and whether the service terms meet your data handling rules. DeployOpen can test the setup and prepare the evidence your reviewers ask for, but it does not issue audit reports or certifications. Ask your compliance team which controls they need to see before the pilot begins.

Limits to confirm in your own environment

The Agents plugin depends on your plan level, release, LLM service, network path and cluster design, and each one changes what you can deploy. Confirm these six items with Mattermost and in your own environment before you approve a rollout or write the change request.

Plan level and LLM options

Ask Mattermost which plan includes the Agents plugin and which LLM service options each plan allows. The public pricing page lists plan tiers and their feature groups, but it does not list prices, so the contract must name the plugin and the LLM paths in writing. Check whether your procurement team is buying a plan that already includes the plugin or an add-on, and whether air-gapped use depends on the plan you choose.

Pricing page

Supported LLM services by version

Confirm the LLM services supported in the exact server and plugin version you plan to run, not in the latest release notes. Support can differ between a monthly release and an Extended Support Release, so record the version, the provider list and the model options your team tested. Treat any provider not on that list as unsupported until the vendor confirms it in writing.

Current ESR
v11.7

Default enablement in your release

Check whether the Agents plugin is enabled by default in your release, and whether it ships preinstalled or must be installed. Read the plugin state in the System Console after the upgrade, and confirm that no bot or LLM connection is active before you configure one. An upgrade can change plugin state, so verify this on a staging server built from the same image as production.

Proxy coverage for plugin traffic

Ask Mattermost which outbound calls the plugin makes and whether every one of them honors the server's outbound proxy settings. Include LLM API calls, MCP tool endpoints, embedding and any model discovery requests. Test each path from a host that has no direct internet route, because a call that bypasses the proxy fails silently in an restricted network.

Behavior in a high availability cluster

High availability in Mattermost uses redundant application servers, database servers and load balancers, and requires shared file storage on each node. Confirm with Mattermost whether the Agents plugin state, bot configuration and LLM credentials are consistent across all nodes, and how a failover affects in-flight agent requests. Test a node failure during an active conversation in staging before you rely on it.

HA cluster docs

Data and logs on each LLM path

For each LLM service, ask what prompt and response content leaves your boundary, where the provider stores it, how long it is retained, and whether it is used for training. Also confirm which messages, prompts and tool outputs the Mattermost server writes to its own logs and at what level. Map the answers to your data classification and retention policy before you enable any path that sends channel content to an external service.

How DeployOpen works on this

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including the Mattermost Agents plugin. We start from a written scope that names your LLM service, network path, proxy and data handling requirements before any configuration changes are made.

How we scope

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • The written scope names the Mattermost server version, database, and which LLM service and default bot the Agents plugin will use.
  • Scope records hostname allowlist entries, outbound proxy requirements, and any air-gapped or restricted network constraints.

How we build

  • We confirm server and PostgreSQL prerequisites, then enable the preinstalled Agents plugin in a staging environment first.
  • We configure the chosen LLM provider, default bot and proxy settings, and record each value in your change management system.
  • We test that agents respond through each allowed hostname and that blocked destinations fail as intended.

How we hand over

  • You receive a configuration record covering the LLM connection, bot settings, allowlist entries and proxy values.
  • Runbooks explain how to rotate provider credentials, change the default bot and add a hostname to the allowlist.
  • We walk your administrators through the admin console settings so your team can operate the plugin after handover.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, covering plugin updates after Mattermost server upgrades.
  • Retainer work can include rechecking hostname allowlists and proxy rules when your LLM provider or network changes.
  • Ask for a quote based on the written scope, which identifies the support tasks and response expectations you need.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.