Why upgrade the Mattermost Agents plugin to v2, and which path to take
If your self-hosted Mattermost team runs the Agents plugin v1.x, the decision in front of you is when to move to Agents plugin v2, which ships with Mattermost v11.7. The supported route starts from v1.x and follows the upgrade guide Mattermost publishes, so the first task is to confirm your current plugin version and whether it sits on that documented path. Do not schedule anything until you have read the important upgrade notes and matched the exact plugin version steps to your own environment.
The timing question is shaped by the server release calendar. Mattermost v11.7 is an Extended Support Release (ESR), 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 any team still on that line is already outside vendor support and should treat its server upgrade as urgent regardless of the plugin. Teams that want the longer support window for the plugin change will typically align the work with the v11.7 server, so confirm with your own change calendar whether that fits your review cycle.
Plan the decision around three questions: which server version you are on today, whether your plugin configuration depends on behavior that changes in v2, and how many people rely on AI bots in channels now. Those answers determine whether the move is a routine ESR step or a project with testing, communication and a rollback plan. Ask your team to inventory the bots and agent settings in use before the change window opens, because that inventory drives the rest of the upgrade.
What changes in the Agents plugin v2 release
This table maps the three kinds of change in the Agents plugin v2 release (automatic migrations, breaking changes and default-behavior flips) to their impact and the action each one needs. The supplied guidance does not list every individual entry, so each row points you to the specific entry in the important upgrade notes to confirm before you upgrade production.
| Change | Impact | Action needed |
|---|---|---|
| Automatic migrations on first start of v2.0.0 | Database or plugin data is changed when v2.0.0 first starts, so the change cannot be undone by simply swapping the plugin back | Take a full database and plugin file backup, then read the migration entries in the important upgrade notes and rehearse the start in staging |
| Supported version path from v1.x | Only the documented path from v1.x is supported, so skipping steps can leave the plugin in an unsupported state | Confirm your current Agents plugin version and follow the documented path step by step in the upgrade notes |
| Breaking changes in v2 | Existing bot configurations, integrations or custom code that depend on earlier behavior may stop working | Find each breaking change entry, inventory the bots and integrations on your server that it affects, and test them in staging |
| Default-behavior flips | Features that were on or off by default in v1.x may change state after upgrade without any edit to your configuration | Compare each flipped default with your current settings, then set explicit values where your policy requires a specific state |
| Existing AI bots and agent accounts | Bots already in use may depend on the changed behavior, migrated data or defaults listed above | Record each bot's model provider, permissions and channels, then verify its responses after the staging upgrade |
| Mattermost v11.7 platform dependency | The plugin ships with v11.7, so the server version and plugin version must match the release you target | Confirm the server release and plugin version together in the release notes before scheduling the change window |
How the upgrade path moves a server from v1.x to v2.0.0
The path starts on a server running the Agents plugin v1.x. Before anything changes, the team takes a backup and inventories its AI bots and plugin settings. The Mattermost server then moves to v11.7, the release that includes Agents plugin v2. On first start of v2.0.0, the plugin runs its migrations automatically, so the backup must already exist. After start, check the default-behavior changes listed in the important upgrade notes against your configuration. If those checks fail, the rollback decision determines whether to restore the backup.
General phase view of moving a server from Agents plugin v1.x to v2.0.0.
How the path differs for single servers, clusters and air-gapped installs
On a single Linux server, the upgrade is one binary change followed by one first start. You take a backup, stop the service, install the Mattermost v11.7 package, and let the v2.0.0 Agents plugin migrate when Mattermost starts. With one node, there is no ordering to manage, but the main risk is a long, unattended migration that falls outside the window you planned.
- Backup first: Take a database dump and a copy of file storage and configuration before stopping the server, so a failed first start can be reversed.
- One start, one migration: The v2.0.0 migration runs on the first start after the binary changes. Watch the logs until it completes before you open access to users.
- Plugin state: Confirm whether the Agents plugin on the server is the bundled v2 version or an earlier v1.x package that needs replacing. Check file ownership in the plugin directory after the change.
- Provider and bot settings: Review LLM provider and bot configuration after the first start. Defaults that changed in v2 apply to this instance as soon as it runs.
Before you announce the window closed, check the migration log, the plugin version in the System Console, and at least one bot response from a test account.
A high availability cluster runs redundant application servers, redundant database servers and redundant load balancers, and it is available only on the Enterprise and Enterprise Advanced plans. Every node reads the same database and shared file storage, so the v2 migration changes shared state. Sequencing matters more here than on a single server, because the order of node restarts determines which nodes see the migrated data and which still run the older code.
- Shared storage first: Each node needs Amazon S3, an S3-compatible service or NAS mounted on it. Confirm every mount is healthy before you start, since local file system storage will not work correctly and risks corrupting files.
- Migration once: Expect the v2.0.0 migration to change the database one time for the whole cluster, not once per node. Confirm in the upgrade notes which node runs it and whether the other nodes must wait.
- Node order: Plan a rolling sequence with a defined point where the cluster runs mixed versions. Confirm whether the upgrade notes allow that state before you schedule it.
- Replicas: If you run database read replicas or search replicas, confirm they are current before the primary changes schema, because reads are distributed across them.
- Restore point: Record a restore point that covers the database and shared file storage before the first node restarts.
Confirm your plan tier, storage mounts and replica state with the team that operates the cluster before you fix the change window.
An air-gapped deployment is an Enterprise Advanced item. The server cannot reach public package sources, so the v11.7 server package, the Agents plugin v2 bundle and any model dependencies must enter the environment through your approved transfer process. Mattermost's server deployment planning documentation includes a separate starting point for air-gapped deployments, and that guide should shape the sequence you write for your team.
- Plugin delivery: Confirm how the Agents plugin v2 package reaches the enclave and who verifies it before installation. Do not assume that the v1.x package is replaced automatically during the server upgrade.
- Model access: If AI models are self-hosted, confirm they are reachable inside the enclave and that the v2 provider settings point only at internal endpoints.
- Staging rehearsal: Run the upgrade on a copy of production inside the enclave, including the first-start migration, before the production window.
- Transfer records: Move server binaries, plugin bundles and database backups through the same approved route, and record a checksum for each item.
- Defaults review: Compare each default that changed in v2 with your security baseline before go-live, because you may not be able to consult outside sources during the window.
Confirm how the plugin is delivered in your environment with the team that owns your transfer process, and complete the staging rehearsal before you schedule the production change.
Checks to run before the first start of v2
Agents plugin v2 runs its migrations automatically on the first start of v2.0.0, so there is no separate step to undo them. The checks below decide whether you can roll back cleanly if the migration or the new defaults cause trouble, and who signs off that AI bots behave as expected before users return.
Verified PostgreSQL and file storage backup
Take a backup of the PostgreSQL database and the file storage together, then restore it to a separate host to confirm it is usable. Because the first start migrates data automatically, this backup is the only reliable way back if the schema change or the migrated data goes wrong. Record the time of the backup so you can match it against the change window.
Inventory of AI bots and providers
List every AI bot, LLM provider and model configuration that teams use, along with the channels and users that depend on each one. Review which settings are stored in the plugin configuration and which are set per bot, since defaults that change on upgrade can affect those bots differently. Confirm the list with the team leads who own each bot.
Custom code and webhooks calling the plugin
Identify every script, webhook, slash command, bot or external service that calls the Agents plugin or its API. Any of these can break if an endpoint, payload or behavior changes in v2, and a backup does not protect them. Assign each one to an owner who will test it against the upgraded server.
Staging copy that mirrors production
Restore a recent production backup to a staging server running the same Mattermost version, database and plugin set. Run the upgrade there first and watch the migration logs for errors and slow steps. Staging only proves something if its data, configuration and plugin versions match production, so check those before you rely on the result.
Named owner for AI bot sign-off
Name one person who approves that each AI bot still answers correctly after the upgrade, including the default behavior changes listed in the upgrade notes. Without a single owner, teams discover regressions after users have already relied on the bots. Give this owner the staging results and a short test script covering the bots in your inventory.
Change window agreed with users
Schedule the upgrade in a window that users and bot owners have agreed to in advance, and tell them when AI features may be unavailable. Set the window long enough to take the backup, run the migration, and complete the sign-off tests, with time left to roll back. Confirm the window with your own operations team, since the duration depends on the size of your data and your infrastructure.
How to run the upgrade with checks and rollback points
This sequence moves the Agents plugin to v2 through staging first, with a named check before each move, so that production changes only after the plugin, its migrations and every AI bot have been verified and a rollback point exists.
Freeze changes on the target server
Pause plugin installs, bot edits, configuration changes and other server work for the duration of the upgrade, and tell the people who manage AI bots and integrations that changes are on hold. Agree the owner of the upgrade and who can approve a rollback. This step is done when the change freeze is announced in writing and the owner confirms that no other administrator is making changes to the Agents plugin, its bots or the server configuration.
Take backups before any change
Back up the PostgreSQL database, the file storage used by the server, and the server configuration, and record the current Mattermost server version and the installed Agents plugin version. Store the backups somewhere the upgrade cannot overwrite. The check that closes this step is a restore test on a separate host or a documented confirmation from the database team that the backup can be restored, because a backup that has never been restored is not yet a rollback point.
Upgrade a staging copy to v11.7
Restore the production backups into a staging environment that matches production as closely as possible, including the same plugins, bots, LLM provider settings and network paths. Upgrade the staging Mattermost server to v11.7 by following the server upgrade guide. The check is that the server starts cleanly, the admin console loads and the server reports the expected version before any plugin change is made.
Confirm the plugin reaches v2.0.0 and migrates
On staging, confirm that the Agents plugin reports v2.0.0 after the first start and that its automatic migrations finish without errors in the server logs. Review the upgrade notes for any configuration keys that were renamed or removed and check the logs for warnings about them. The check that closes this step is a clean migration log and a plugin status that shows v2.0.0 as active, with no bot or conversation data reported as missing.
Verify each AI bot and its permissions
List every AI bot on staging and compare it against the inventory you made before the freeze. For each bot, confirm that it exists, that its LLM provider or model connection still works, that its channel and team access matches the earlier setting, and that its owner is still assigned. Confirm that any behavior the upgrade changed by default has been reviewed for each bot. The check is a signed-off table with one row per bot showing the result of each item, and no bot left in an unknown state.
Test user-facing flows end to end
Have a small group of testers run the conversations your teams actually use with the bots, including direct messages, channel mentions, any tool or file actions, and the responses users see in threads. Include a test for a user who should not have access to a bot, to confirm that permissions still hold. The check is a written test result for each flow, with any failures fixed and retested on staging before the team accepts the upgrade.
Promote to production with a rollback point
Schedule the production window, take a fresh backup immediately before the change, and record the backup identifier in the change ticket. Upgrade production to v11.7 using the same procedure that worked on staging, then repeat the plugin, bot and user-flow checks. Keep the pre-upgrade backup and the recorded versions until the owner signs off that production is stable. The check that closes the upgrade is a production status that matches staging results, plus a documented rollback point that the team can restore if a problem appears.
Which flipped defaults affect teams already using AI bots
Teams already running AI bots on the Agents plugin should treat the default-behavior flips in v2 as the part of the upgrade most likely to change what users see without anyone changing a setting. The important upgrade notes list each default that changes direction in v2, and each entry is a decision point. Before the upgrade, copy the list into your change record and mark every item as one of three things: it does not touch any bot you run, it touches a bot you run, or you do not yet know. The third group is where the work starts.
The impact usually shows up in three places. First, a bot may behave differently with no explicit setting in your configuration, because the bot relied on a default that now points the other way. Second, end users may see different response content or different access to channels, tools or data than they did on v1.x. Third, integrations that call the bot, read its output or assume a particular permission model may fail quietly. Ask the bot owners to name every integration, webhook, slash command or automation that touches an AI bot, since those are the places an old default is most likely to be assumed rather than written down.
For each flipped default, make an explicit choice: keep the new default, or set the old behavior in configuration so the decision is recorded and reviewable. Keeping the new default is reasonable when the bot's purpose is unaffected, but write that decision down. Setting the old behavior explicitly is the safer path when a bot depends on the previous result, though it also needs a review date because the setting may be dropped in a later release. Then test each decision with real bot conversations on a staging server that holds a copy of your production configuration, covering the prompts, roles and channels your users actually use, before the change reaches production.
What makes the Agents upgrade longer
This table lists the factors that lengthen an Agents plugin v2 upgrade, why each one adds work, and how to shorten it. Read each row against your own environment to see which drivers apply, since the combination matters more than any single item. The main takeaway is that bot count, custom code and cluster size usually determine the effort more than the upgrade steps themselves.
| Driver | Why it adds effort | How to reduce it |
|---|---|---|
| Number of AI bots and LLM providers | Each bot has its own configuration, model settings and permissions that must be reviewed and retested after the move to v2. | Inventory every bot and provider before starting, retire unused bots, and test each remaining bot against its real use case. |
| Custom code and webhooks that rely on plugin behavior | Scripts, slash commands or integrations that read agent responses or call plugin endpoints may break when defaults or interfaces change. | List every integration that touches the Agents plugin, confirm each against the breaking-change notes, and update or retest them in staging. |
| Volume of message and file data processed on first start | The v2.0.0 migrations run automatically on first start, so larger histories and attachments mean a longer startup window and more to verify afterward. | Measure the data the migrations will touch, schedule the upgrade in a window that covers the longest expected run, and confirm backups are complete first. |
| Number of nodes in a cluster | Each node must run the same plugin version, and rolling changes across nodes need coordination so that migrations do not run unexpectedly in parallel. | Confirm the documented procedure for your topology, upgrade in a planned order, and verify each node reports the same plugin version before reopening access. |
| Availability of a staging environment | Without a copy of production data and configuration, behavior flips and migration results can only be discovered after users are affected. | Build a staging environment from a recent backup with the same plugin configuration, and run the full bot and integration test list there first. |
| Approval steps in regulated organizations | Change boards, security reviews and records of AI data handling may need updated documentation before the upgrade can proceed. | Prepare a short change record covering the version path, data touched by migrations, default changes and rollback steps before submission. |
How to test the upgrade and decide on rollback
Set the rollback point before anyone touches production. The most important decision in this upgrade is the backup and rollback point taken before the first start of v2.0.0, because the Agents plugin v2 runs its migrations automatically on that first start. Confirm from the Mattermost important upgrade notes which of those migrations can be reversed and which cannot, and record that answer in the change plan. Mattermost's downgrade guidance covers schema and binary rollback for the server, so check how it applies to a plugin that has changed its own data before you rely on it. If the notes do not make a migration reversible, treat the pre-start backup as the only way back.
Run the test on a recent copy of production data in a staging environment that matches production's Mattermost version, PostgreSQL version, plugin set, and LLM provider configuration. Script a check for each AI bot the Agents plugin hosts: confirm the bot account still exists, its channel and direct message access is unchanged, its configured model responds, and its permissions and any tool access match the pre-upgrade baseline. Compare the output against a snapshot taken before the upgrade, and record the differences, including any behavior defaults that changed on v2. Then run a user acceptance pass with a small group of users from each team that relies on a bot, using real but non-sensitive requests, and collect their findings in the same ticket.
Hold a go or no-go review with named owners for the platform, the bot owners and the security approver. Go only when every scripted check passes or has an accepted, documented exception, the acceptance findings are closed or accepted, and the backup has been restored successfully on a separate instance. Record the decision and the trigger conditions for rollback in advance, so that a failed check after the first start leads to a restore from the rollback point rather than a debate about in-place fixes. Confirm the rollback steps with the team that will execute them, and confirm the window in which the restore can still be performed without losing messages written after the upgrade.
What buyers ask before hiring help with the Agents upgrade
What does it cost to upgrade the Mattermost Agents plugin to v2?
The cost depends on the scope agreed in writing, not on a standard package. Price is driven by how many Mattermost servers and environments are involved, how many AI bots and LLM provider connections exist, whether your plugin configuration needs review, and how much testing and evidence your organization expects before go-live. Mattermost sells its server plans as prepaid annual subscriptions based on seat licenses and does not publish prices on its pricing page, so the upgrade effort is separate from any license cost. Ask any provider for a quote that separates one-time work (assessment, staging test, cutover, rollback plan) from anything recurring, such as retained support. DeployOpen does not publish a price list; a quote follows from the written scope.
How long does an Agents plugin v2 upgrade take?
Duration follows from the same drivers as cost: the number of environments, the size and configuration of your AI bot estate, and how many integrations depend on it. A single test server with a few bots is a much smaller job than a multi-environment deployment with several LLM providers and approval steps. Timing also depends on your change window and on how quickly your team can review test results and sign off. Ask the provider to state the phases, what each phase depends on from your side, and the dates they will need from you. Any timeline should appear in the written scope, where it can be checked against the work listed.
What does the internal team need to provide for the upgrade?
The work needs access and decisions from your team more than it needs hands on keyboards. Expect to provide administrator access to the Mattermost server and plugin settings, a current backup, a staging environment that mirrors production, the inventory of AI bots and their owners, and the LLM provider credentials and endpoints in use. Someone must also confirm which bot behaviors your users depend on, since defaults change in v2. Compliance or security reviewers should agree in advance on what evidence they need, such as test results and configuration records. Ask the provider to list these inputs in the scope so gaps surface before work starts.
Can one Mattermost system administrator do the upgrade alone?
A single administrator can often carry out the procedure on a small, simple deployment, but the upgrade involves more than running one update. It touches server configuration, the plugin, AI bot settings, default behaviors that change between versions, and the rollback path if something fails. A lone administrator also has no one to review changes or cover absences during the cutover. Consider whether your administrator has time, has tested changes on a non-production server, and can document the result for auditors. If the answer to any of these is unclear, a second reviewer or an outside team for the planning and testing phases may reduce risk.
What happens to existing AI bots after the Agents plugin moves to v2?
Existing bots need to be checked, not assumed to keep working. Mattermost's upgrade notes describe a supported path from v1.x, migrations that run automatically on the first start of v2.0.0, and breaking changes along with default-behavior changes. Bots that depend on a previous default, a removed setting or a specific LLM provider configuration may behave differently or stop responding until they are reviewed. The practical step is to inventory each bot, record its configuration and owner, run it against a test server on the new version, and confirm the expected responses. Ask the provider how they will test each bot and how they will report results. Read the important upgrade notes before writing the scope so that every breaking change maps to a test.
Do we need a separate staging server to upgrade the Agents plugin?
Yes, a staging server is strongly recommended, and it is the most common way to avoid a failed production cutover. Staging should run the same Mattermost server version, PostgreSQL database version, plugin configuration and LLM provider settings as production, with a recent copy of data where your policies allow it. It lets you run the automatic migrations, test every AI bot and measure how long the process takes before you schedule production. If you do not have a staging environment, the scope should say how the provider will build a test environment, who pays for it, and how it will be removed afterward. Confirm with your security team how staging data is protected.
What should we ask a provider before signing a quote for this upgrade?
Ask for a written scope that names the environments, the AI bots and LLM providers covered, the migration and test steps, the rollback plan and the deliverables. Confirm who performs each step, what you must provide and when, and what happens if the first staging run finds breaking changes. Ask how the provider documents results for your compliance team and whether any ongoing support or retesting is separate from the one-time upgrade. Request a clear statement of what is out of scope, such as new bot development or changes to other plugins. Fixed-scope engagements agree deliverables and timelines in writing before work starts, which makes these points easier to compare across quotes.
How DeployOpen scopes, delivers and supports the upgrade
DeployOpen plans, implements and documents self-hosted open-source platforms inside your own infrastructure, so an Agents plugin v2 upgrade is handled as a written, fixed-scope piece of work. We start from your current plugin configuration, AI provider setup and user base, then agree what changes, what gets tested and what you receive before any work begins.
How we scope
- Inventory your current Mattermost server version, Agents plugin v1.x configuration and the AI bots your teams use today
- Confirm the supported path from v1.x to v2.0.0 with Mattermost's important upgrade notes before fixing the plan
- Agree in writing which bot accounts, LLM providers and default behaviors are in scope and which stay out
How we build
- Rehearse the upgrade on a copy of your production database so automatic migrations on first start are observed before cutover
- Review each breaking change and default-behavior flip against your bot configuration and adjust settings explicitly
- Test AI bot responses, permissions and data handling in staging before the production upgrade window opens
How we hand over
- Deliver a written runbook covering backups, the upgrade sequence, post-upgrade checks and the rollback decision point
- Document the final plugin configuration, default settings you chose to keep or change, and bot ownership
- Walk your administrators through the checks and record the results so your team can repeat them on later releases
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer if you want DeployOpen to handle later plugin releases
- Plan the next upgrade step alongside Mattermost's monthly and Extended Support Release schedule
- Confirm support terms, response expectations and any SLA in the written agreement rather than assuming them

