Uninstalling a Gateway
Every cluster that runs agents has its own Agent Gateway. A gateway is installed and uninstalled by your CodeNOW administrator as part of the cluster installation. CodeNOW cannot prevent an uninstall — it learns about it from the cluster and only shows the consequences. This page describes what stops working and how to recover.
Neither uninstalling nor reinstalling a gateway changes any deployment. Agents stay deployed exactly as they were until you redeploy, move or undeploy them yourself.
What happens
When the gateway of a cluster is uninstalled:
| Area | Effect |
|---|---|
| Agents deployed to environments on that cluster | Keep running, but are unreachable — nobody can call them through the gateway. Their own calls to models, MCP servers and other agents go through the same gateway, so they fail too. |
| A2A | Agents on that cluster cannot call each other. Agents on other clusters are not affected (A2A works only within one cluster anyway). |
| MCP servers | The CodeNOW MCP server and the infrastructure MCP servers of that cluster are no longer available through it. A Synchronize Agent Gateway job runs for the gateway with the reason Registrations deleted. |
| New deployments | The cluster's environments are listed but disabled when deploying an agent swarm (— No Agent Gateway on its cluster), and a deployment to them is refused. |
| Logs and Analytics | The cluster is disabled in AI › Agent Gateways (Agent Gateway uninstalled or Agent Gateway uninstalled, N agents unreachable), so its Logs and Analytics cannot be opened. The recorded traffic was stored by the gateway itself. |
| Local clients | Clients set up against this gateway stop working; it can no longer be chosen in the Agent Gateway select of AI › Local clients. |
| Permissions | Per-gateway permission levels for the gateway are kept and apply again when a gateway is installed on the same cluster. Account-wide levels are not affected. |
| Other gateways | Not affected. |
Where CodeNOW shows it
- Gateways card (AI › Agent Gateways › Permissions) — the cluster's row shows the state Uninstalled, N agents unreachable (or Uninstalled when no agents are left there) and — as the URL.
- Main navigation (AI › Agent Gateways) — the cluster is disabled, with the same information.
- Agent swarm › Deployments › <environment> — the deployment detail shows the banner The cluster of this environment has no Agent Gateway. The agents are unreachable until the gateway is back.
- Deploy dialogs — environments on that cluster are listed but disabled with the suffix — No Agent Gateway on its cluster. When a selected label targets such an environment, it is marked with an amber warning icon (No Agent Gateway on its cluster: agents can't be deployed there).
There are no active notifications (e-mail, chat) in this release.
Before you uninstall
If the uninstall is planned, prepare it together with your CodeNOW administrator:
- Find the affected agents: in AI › Agent Swarms, check the deployments in the cluster's environments.
- Decide for each of them: move it to an environment on another cluster that has a gateway, or undeploy it (see below). Undeploying works the same with or without the gateway.
- Tell the users of local clients set up against this gateway to set up their client against another gateway.
- Only then let the CodeNOW administrator uninstall the gateway.
Recovering
Pick one of the following, depending on whether the cluster should run agents again.
Reinstall the gateway on the same cluster
- Ask your CodeNOW administrator to install the gateway on the cluster again and make sure its models are configured again — model configuration is manual work on each gateway.
- CodeNOW detects the gateway and runs a Synchronize Agent Gateway job for it — check in the job list that it finished. The CodeNOW MCP server and the cluster's infrastructure MCP servers are registered again.
- The cluster's environments are offered for deployment again, and the gateway's Logs and Analytics appear in the navigation after a page reload. Per-gateway permissions apply again.
- The agents' registrations come back on their own: uninstalling does not remove them from the gateway's GitOps folder (
agent-gateway/<data plane>/deployed-agents/), and the agents keep their tokens and gateway address. No redeploy is needed as long as the gateway comes back on the same cluster with the same URL. - If the gateway URL changed — or the folder was deleted — redeploy every affected agent swarm deployment in the cluster's environments (⋯ › Redeploy on the Deployments card, see Deploy & Undeploy): the gateway and A2A URLs are part of the running agents' configuration. CodeNOW does not do it on its own.
- Verify: an agent answers through its gateway endpoint, and agents on the cluster reach models, MCP servers and each other.
Move the agents to another cluster
- Make sure the target cluster has a gateway and that the agents' models are configured on it. Agents that call each other must move together — A2A works only between agents on the same cluster.
- Prepare the deployment configuration of every moved swarm for the target environment: set the service accounts and point the A2A connections to environments on the target cluster. A target that is not deployed yet can be selected.
- In the configurations of other agents on the target cluster that call the moved agents, repoint the A2A connections to the new environment.
- Deploy the agent swarm packages to the target environments.
- Redeploy the callers from step 3 — changed A2A connections take effect only after a redeploy. Then verify the calls.
- Undeploy the old deployments from the cluster without a gateway.
- Grant per-gateway permissions on the new gateway if users relied on per-gateway levels of the old one.
Stop running agents on the cluster
Undeploy the agent swarms from the cluster's environments. The Undeploy Agent Swarm job runs exactly as with a gateway: the Agent Gateway deregistration step removes the agents' registrations from the gateway's GitOps folder and succeeds, the workloads are deleted and the tokens revoked as usual.