Upgrading Medplum Agents remotely with $upgrade

The Medplum Agent $upgrade operation moves agents on on-premises hosts to a new version without remote desktop access, but only when the server and agent versions meet the stated floors. This page explains how to plan, sequence and verify that rollout.

On this page

Why the Medplum Agent upgrade needs a plan before the first $upgrade call

Check the server and the agent together before you call $upgrade. The operation can move one agent or a set selected by search parameters, and it defaults to the latest published version. It requires Medplum Server above 3.1.9 and Medplum Agent above 3.1.10, so a fleet still on older agents may need a different sequence than the one you planned for the server. For a team that cannot reach its on-premises hosts by remote desktop, a failed remote upgrade can leave an agent unreachable, which is why the version floors should be confirmed before any host is touched.

Versions move quickly. The latest Medplum release at research time was 5.2.5, published on October 15, 2026, so the server you run and the agent you target may sit on different release lines. Each Agent feature, such as Agent/$push with async responses or Agent/$reload-config, carries its own minimum server and agent versions, so a target agent can be valid for the upgrade but still lack a feature your integrations depend on. Confirm the exact floors and feature minimums in the Medplum Agent upgrade docs for the target release, and record them in your change plan.

The server path also constrains the agent plan. Self-hosted Medplum must be upgraded through each minor version in sequence, so the server version you land on determines which agent releases are compatible with it. Decide the target server version first, then select the agent version that matches it, and confirm both in staging. Ask your agent hosts' owners to list every host, its current agent version and whether it can be reached remotely, so you know which hosts depend on the remote path at all.

What changes in the Medplum Agent upgrade path and what each change requires

This table compares each part of the $upgrade path against what it changes for your deployment and what you need to do before running it. Read it top to bottom before scheduling a rollout, because the server and agent version floors apply to every host you upgrade, not just the first one.

ChangeImpactAction needed
Scope of $upgradeUpgrades one agent by ID or a set selected by search parameters, so one request can reach many on-premises hosts.Filter the search carefully and confirm the selected set in a test environment before running it across production agents.
Default target versionIf no version is given, the operation targets the latest published Medplum Agent release.Pass an explicit version for production rollouts so every host lands on the release you tested.
Server version floorThe $upgrade operation requires Medplum Server above 3.1.9.Confirm your server version is above 3.1.9 before any agent upgrade request is sent.
Agent version floorThe $upgrade operation requires Medplum Agent above 3.1.10 on each host being upgraded.Inventory the current agent version on every host. Hosts below the floor need a manual upgrade first.
Feature minimums (Agent/$push, async responses)Each agent feature needs minimum versions of both the server and the agent, and the minimums are listed per feature.Check the Agent features docs for each feature you use and confirm the numbers for your target release.
Feature minimums (Agent/$reload-config)This operation also depends on a minimum server and agent pair, so a newer agent on an older server may lack it.Confirm the minimum pair in the Agent features docs and test the operation on a staging agent first.
Server upgrade sequenceSelf-hosted servers must move through each minor version in order. Skipping minors can cause startup failures and affects which agent versions the server supports.Plan the server upgrade path first, then move the agents to a version that the upgraded server supports.

Preparing the server, agents and host inventory before a remote upgrade

Remote upgrades only work when the team knows which agents exist, which server version they talk to and what happens to hosts that cannot be reached. The cards below are checks the team performs before the first $upgrade call, and each one narrows the risk of a batch failing in the middle of a window.

Inventory every agent and its host

List each Medplum Agent, the host it runs on, its current version and the Agent features your integrations depend on, such as Agent/$push with async responses or Agent/$reload-config. Record the hostname, operating system, site and the owner of each host. A feature that needs a newer Agent than the one installed tells you which hosts must be upgraded before a feature can be turned on, and which hosts can wait.

Agent features docs

Confirm the server version floor

Check that the Medplum Server is above 3.1.9, which the $upgrade operation requires, and that the server is on a version your team plans to keep on the supported path. Confirm the server version against the release history and the versioning policy before scheduling agent work, because an agent upgrade on an unsupported server line adds risk without reducing exposure.

Versions and release policy

Test the target on a staging agent

Install the target Agent version on a staging host that resembles production in operating system, network path and the systems it connects to, such as an EHR interface or a device. Run the integrations that matter, including any feature that depends on a minimum Agent version. Treat a staging pass as evidence only for the configurations you actually tested, and note any production host whose setup differs.

Back up configuration and the database

Before the server changes, take a backup of the Medplum server database and export the configuration each agent uses, including its connection settings and credentials references. Store the backups where the rollback team can reach them and confirm a restore on staging. Agent configuration lives on the hosts, so a host that is rebuilt later without its settings will need that configuration restored from your own records.

Plan for offline and unreachable hosts

Decide in advance what happens to agents that are offline, powered down or behind a network change during the window. Record the reason each host may be unreachable, the person who can reach it physically or through a local administrator, and whether it is safe to leave on an older version. Hosts left behind must still be supported by the server, so check that the older Agent version can run alongside the new server.

Name an owner for each batch

Assign one named person to approve each batch of agents before the team triggers the upgrade, and a second person to watch the results. The approver should hold the inventory, the staging results and the backup record for that batch. Without a named owner, a partial failure can stall because no one has the authority to decide whether to continue or stop.

How a $upgrade request reaches an on-premises agent

The operator starts at the Medplum Server, which checks its own version against the documented floor before it accepts the $upgrade request. The server then looks up the target agent, checks that agent's version, and sends the upgrade instruction across the boundary to the agent on the on-premises host. The agent installs the selected version, reconnects, and reports its new version back. If the agent does not reconnect within the configured wait, the operation takes the timeout path, and the operator should check the agent's status before retrying.

Version checks and the timeout path on the way from the server to an on-premises agent.

Medplum Agent upgrade sequence from staging to fleet-wide rollout

This sequence moves a fleet of on-premises Medplum Agents to a new version in controlled stages, so each batch is checked before the next one starts and every batch has a recorded rollback point. It produces a documented, repeatable record of which agents run which version.

  1. Confirm server and agent versions against the floors

    The platform engineer records the running Medplum Server version and the version of every Agent in scope, then compares them with the floors for $upgrade: Medplum Server above 3.1.9 and Medplum Agent above 3.1.10. The gate is simple: every Agent you plan to upgrade remotely must already be on a version above 3.1.10, and the server must be above 3.1.9. If the server is below its floor, go to the next step. If the agents are below their floor, plan a manual install on those hosts first, because $upgrade will not serve as the bridge. Keep the inventory as the baseline for later batches.

  2. Upgrade the server through the supported minor path

    If the server is at or below its floor, the server team upgrades it one minor version at a time, following the supported path in the Medplum upgrading guide and waiting for post-deploy migrations to finish at each stop. Skipping minor versions causes startup failures, so do not jump directly to the target. The gate is a healthy server on the required version with no failing post-deploy migrations. If a migration stalls or the server fails to start, stop, keep the previous version running, and resolve the issue in staging before retrying.

  3. Pin a target agent version and run $upgrade on one staging agent

    Choose the target Agent version explicitly rather than relying on the default latest published version, and record it in your change ticket. Then call the $upgrade operation against a single staging Agent, selected by its identifier. The platform engineer confirms the request is accepted and watches the host for a restart. The gate is that the staging Agent returns to service. If the upgrade does not complete, do not widen the scope; capture the Agent logs, confirm the host still runs the prior version, and fix the cause before retrying.

  4. Verify reconnection, reported version and feature checks

    After the staging Agent restarts, confirm that it reconnects to the server, reports the pinned version, and passes the feature checks your integrations depend on. Run Agent/$reload-config and any asynchronous Agent/$push flow that your clinical or device connections use, because each feature requires minimum versions of both the server and the Agent. The gate is that every check passes on the pinned version for a full working cycle. If a feature check fails, do not promote the version; confirm that the feature's minimum versions are met and roll the staging host back to the prior version.

  5. Expand to production batches selected by search parameters

    Define production batches as search parameter sets, such as a site, a host group or a deployment wave, so each $upgrade call targets a known set of Agents. Start with the smallest batch that covers one representative site. Before each call, confirm that no Agent in the batch is already on the target version and that the batch matches the approved inventory. The gate for the next batch is that the previous batch reconnects, reports the pinned version and passes the same feature checks used in staging. If any Agent in a batch fails, pause the rollout and treat the batch as the unit for investigation.

  6. Record each batch with a rollback point

    For every batch, the operations team records the selector used, the list of Agent identifiers, the version before and after, the time of the call, the feature check results and the person who approved the next step. Keep the prior Agent version available on each host so a rollback to the previous version is possible if a later batch exposes a problem. The output is a completed fleet inventory showing the pinned version on every Agent, along with an audit trail that a compliance reviewer can read. Confirm with your Medplum account contact or the upgrade documentation how each prior version can be restored, because the rollback path must be tested before you depend on it.

Reading the server and agent version feature matrix

Agents that only need to receive new builds have the simplest requirement set. The $upgrade operation itself carries a floor: Medplum Server above 3.1.9 and Medplum Agent above 3.1.10. Those values come from the Medplum Agent upgrade documentation, and they are a starting point, not a full picture, because the operation is only one of the features your agents may use.

  • Server floor: confirm your running Medplum Server is above 3.1.9 before you call $upgrade on any agent.
  • Agent floor: confirm each host runs an agent above 3.1.10, since older agents may not accept the operation.
  • Default target: the operation defaults to the latest published agent version, so set an explicit version if you need a tested build.
  • Selection scope: the operation can target one agent or a set chosen by search parameters, so confirm the selection returns only the hosts you intend to change.
  • Pilot first: upgrade a single non-clinical host and confirm it reconnects before widening the search.

Before rollout, record the server version, the current agent version on each host, and the target version in your change record.

Version pinning and timeouts when upgrading many agents at once

Pin the target version explicitly on every $upgrade call. The Agent upgrade operation defaults to the latest published Medplum Agent version, so a call that omits a version can move a fleet to a build newer than the one your team tested against your server. Medplum publishes patch releases weekly, so the gap between the build you validated and the build that lands on a host can be small in time but still matter, especially when a host sits behind a clinical interface. Confirm in the Medplum Agent upgrade docs for your target release how the version parameter is supplied and whether it accepts an exact version string. Then check the Agent feature matrix in the Medplum Agent features docs, because each feature you rely on, such as Agent/$push with async responses or Agent/$reload-config, has its own minimum Medplum Server and Medplum Agent versions. A pinned version that falls below those minimums will leave features broken without an obvious error.

Batch upgrades that time out or stop partway leave the fleet mixed. Some hosts will be on the new version, some on the old one, and some may be mid-restart or unreachable. Treat the batch result as unknown until you have checked each agent. Confirm in the upgrade docs for your release what the operation returns when a timeout occurs, whether the remote upgrade continues after the caller disconnects, and whether a retry is safe. To find out which agents changed, query the Agent resources and record the reported version for each one, then compare that list with the set you selected by search parameters. Keep that inventory with your change record, because it is the only reliable way to decide which hosts need a retry, a rollback or a manual check.

Set a written rule before the first batch: which version is pinned, how large each wave is, and who signs off before the next wave starts. Start with one or two agents on a non-critical interface, confirm the reported version and the feature checks you depend on, then widen the selection. If a timeout occurs, pause the rollout, reconcile the inventory and only then retry the agents that did not change. Ask your DeployOpen or in-house team to write the timeout values you observe into the runbook so the next operator does not have to rediscover them.

What makes an agent fleet upgrade take longer

This table lists the factors that stretch a Medplum Agent rollout beyond a simple $upgrade call, with what each one means for your plan. Read each row as a question to answer for your fleet before you set a schedule, because the drivers often compound: a large, remote fleet with few staging hosts and strict change windows usually takes the longest.

DriverWhy it mattersWhat to check
Number of agents and their spreadEach agent is upgraded on its own host, so a larger fleet across more sites means more batches, more checkpoints and more places where a version mismatch can appear.Inventory every agent, its host, site and current version, and group them into waves by site and risk.
Hosts that are offline or hard to reachThe $upgrade operation targets agents that can be reached through the server. Agents that are powered off, on unstable networks or behind restricted routes may not complete the upgrade in the same pass.Identify which hosts are intermittently connected, confirm they appear as online before each wave, and plan a follow-up pass for stragglers.
Agents using features with higher minimum versionsEach Agent feature, such as Agent/$push with async responses or Agent/$reload-config, requires minimum versions of both Medplum Server and Medplum Agent. Upgrading the agent alone may not unlock the features your integrations expect.Map which features each agent uses against the minimum server and agent versions in the Medplum Agent features documentation, and upgrade the server first where needed.
Custom agent configuration or integrationsLocal configuration, device connections and clinical system interfaces may behave differently on a new agent version, so each custom setup can need its own retest after the upgrade.List custom configurations per host, record a known-good test for each interface, and confirm the owner who signs off on results.
Change windows at clinical sitesClinical operations often limit when a host can be changed. A site with narrow windows can push an upgrade wave into a later cycle, and pending messages or device traffic may need to drain first.Obtain the approved change windows from each site, avoid high-activity periods, and confirm how queued interface traffic is handled during a restart.
Number of staging hosts availableStaging hosts are where you prove a new agent version works with your real integrations before production. Few or no staging hosts usually means production becomes the test environment.Confirm how many staging hosts match production configurations, whether they connect to test versions of the same systems, and who keeps them current.
Version pinning and rollback approachPinning the target version keeps waves consistent, but a mixed fleet during a long rollout needs clear rules on which agent and server versions are supported together.Document the target version, the supported server and agent pairings, and the steps to return a host to its prior version if a wave fails.

Medplum Agent upgrade questions buyers ask before hiring help

What drives the cost of a Medplum Agent upgrade project?

The main drivers are how many Agent hosts are in scope, how varied those hosts are, and how many Agent features your integrations depend on. Each host needs a version check, a rollout decision and a verification step, and features such as Agent/$push with async responses or Agent/$reload-config add their own minimum-version checks. Cost is one-time for the rollout plan and runbook, and it can recur if you want DeployOpen to run future upgrades under a retainer. The written scope sets the quote, so ask for the host list, the features in use and the approval steps before comparing offers.

Can our internal team run the Medplum Agent upgrade with $upgrade alone?

Yes, a capable internal team can call the $upgrade operation directly, since it upgrades one agent or a set selected by search parameters and defaults to the latest published version. The harder part is what surrounds the call: confirming server and agent versions, choosing target versions, sequencing hosts so clinical integrations stay up, and checking that each Agent feature still works afterward. Teams with few hosts and a clear change process often handle this in-house. Outside help makes most sense when the fleet is large, the hosts are hard to reach, or the change process needs documented evidence for auditors.

What does DeployOpen need from our team for an Agent upgrade?

DeployOpen needs enough access to read the Agent host inventory and the running server and agent versions, plus a working path to confirm the upgrade on each host. Your team should provide change windows agreed with clinical and operations owners, one or more staging hosts that mirror production integrations, and named approvers who can accept each rollout stage. Expect to supply the Agent configuration, the list of device and system integrations that depend on each host, and a point of contact for rollback decisions. The exact access model is confirmed in the written scope before work starts.

How long does a Medplum Agent upgrade take?

The duration depends mainly on the number of hosts, how many change windows you can use, and how many Agent features must be re-tested after each upgrade. A small fleet with one staging host and a single approval path moves much faster than a fleet spread across many sites with separate sign-off. Timelines are set in the written scope, not estimated here. Ask for a stage-by-stage schedule that shows the staging test, the first production wave, the full rollout and the verification window for each.

What happens if our Medplum server is below 3.1.9 or an agent is below 3.1.10?

The $upgrade operation requires Medplum Server above 3.1.9 and Medplum Agent above 3.1.10, so a server or agent below those versions cannot be upgraded remotely with this operation. In that case the server or the affected hosts need to be brought to a supported version first, and that work is planned as a separate step before the remote rollout. Engineers should confirm the current versions on every host and on the server before scoping the work. The upgrade path to a supported starting point is then sized as part of the written scope.

Which Medplum Agent features need to be checked after an upgrade?

Each Agent feature has its own minimum Medplum Server and Medplum Agent versions, so the check list depends on which features your integrations call. Agent/$push with async responses and Agent/$reload-config are two examples that need explicit testing after a version change. Build the check list from the features in production use, then confirm each one against the feature documentation for both the server and agent versions you are moving to. Keep the results with the change record so reviewers can see what was tested.

Does DeployOpen publish a price list for Medplum Agent upgrades?

No. DeployOpen does not publish a price list for Medplum Agent upgrades or for any other service. A quote follows from the written scope, which lists the hosts, features, environments, change windows and deliverables agreed before work starts. To compare offers fairly, ask each provider to price the same host list, the same staging plan and the same verification and rollback steps.

What evidence should an Agent upgrade leave for compliance reviewers?

Reviewers typically want a record of which hosts were upgraded, from and to which versions, who approved each stage and what tests confirmed the integrations still worked. For a HIPAA-regulated organization, the Security Rule expects administrative and technical safeguards to be documented and applied, but it does not issue certifications. DeployOpen prepares the change records and test evidence, while independent auditors or your own compliance team judge whether they are sufficient. Ask for the evidence pack format in the written scope.

How DeployOpen scopes, runs and supports a Medplum Agent upgrade

DeployOpen plans and runs Medplum Agent upgrades inside your own infrastructure, starting from an inventory of which hosts run which agent versions and which server version they must match. The work is delivered as a fixed-scope engagement with the rollout sequence, test evidence and operating notes agreed in writing before any host is touched.

How we scope

  • Inventory every Medplum Agent host, its current agent version and the Medplum Server version it connects to.
  • Confirm the server is above 3.1.9 and each agent is above 3.1.10 before any $upgrade request is planned.
  • Agree in writing which agents, which target version and which feature requirements, such as Agent/$push or Agent/$reload-config, are in scope.

How we build

  • Build the $upgrade request sets by search parameter so each batch of agents is explicit and repeatable.
  • Test the rollout in a staging environment with agents on representative hosts, including timeout and failed-upgrade cases.
  • Document the version pins and the server and agent feature matrix used for each batch before production runs.

How we hand over

  • Deliver the written runbook with batch order, timeout settings, and the checks to confirm each agent reconnected after upgrade.
  • Provide a host-by-host record of starting and ending agent versions, along with any hosts that needed manual handling.
  • Walk your platform and operations team through the runbook so they can repeat the upgrade for future Medplum releases.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, covering later Medplum Agent releases.
  • Retainers can cover re-checking the server and agent version matrix when either side of the pairing changes.
  • Ask any provider to confirm how they handle hosts that fail to reconnect and who has access to the agent hosts during the work.

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.