← All articles

AI agent managers · November 17, 2026 · OPAYA Team

Onboarding a New Agent Without Breaking the Old Ones

Additive by default.

Onboarding a New Agent Without Breaking the Old Ones

Adding one more AI agent to a machine that already runs two or three sounds like a five-minute job. It usually is — until the new process claims a port an existing client library already binds, overwrites a shared config file, or starts with a broad API key that now has two authors. The failure is rarely loud at install time. It surfaces a day later when a scheduled job returns nothing and nobody remembers which change caused it.

This guide is a repeatable procedure for safe AI agent onboarding: inventory first, isolate second, verify third, and never mutate what is already working. It is written for agent managers who run agents on local computers, remote servers or Docker and need the old agents to keep working.

Additive by default: treat every existing agent as production

The working rule is simple to state and hard to hold under time pressure: every agent already running on a machine is production, even if it is just a helper on your laptop or a scratch box a client gave you access to. Production gets a maintenance window, a rollback note and a verification pass after someone else touches the host. A new agent gets none of that by default, which is exactly why the new agent should be the only thing that changes.

Additive onboarding means four commitments. The new agent gets its own name, its own port or endpoint, its own credentials and its own on-disk state. Nothing shared is edited in place. If the new agent genuinely needs a change to a shared component — a reverse proxy route, a shared network, a global CLI binary on the PATH — that change is scheduled as a separate step with its own verification, not bundled into the install.

This is where a workspace view helps. OPAYA is a desktop workspace for installing, connecting and managing agents on local computers, remote servers and Docker, which makes the question which agent runs where, against which endpoint and which credentials something you can look at instead of reconstruct. Use whatever registry your team already keeps; if that registry is OPAYA, update it before you run the installer, not after. The discipline matters more than the tool, but the tool is the reason you will still know the answer in three months.

Prerequisites for safe AI agent onboarding

  • Access to the target host. Shell access on the local machine, remote server or Docker host where the agent will run, with enough privilege to read the current process and container list.
  • An inventory of what already runs there. If you do not have one, Step 1 produces it. Do not skip Step 1 because you know the box.
  • Ability to create a new credential. A key, token or SSH identity that belongs to the new agent alone. If issuing a scoped credential requires an approval, start that request before install day.
  • The vendor's install instructions and a specific version. A tag, digest or exact package version — not latest.
  • A health signal. A health endpoint, a CLI command, or a known-good minimal request that produces a verifiable answer.
  • Numbers, not guesses, for disk and memory. Current usage on the host and the expected footprint of the new agent's image, dependencies and model or cache artifacts.

Step 1 — Inventory the host before you install

Five minutes of recording prevents an hour of 2 a.m. arithmetic. Capture three things: what is listening, what is running, and where each agent keeps its state.

# Listening sockets with owning process (Linux)
ss -ltnp 2>/dev/null || netstat -ltnp

# Containers, images and port mappings
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Ports}}'

# Running systemd services
systemctl list-units --type=service --state=running | grep -i agent

# launchd labels (macOS)
launchctl list | grep -i agent

Then fill a table you can paste into the runbook or the ticket:

  • Agent name and owner — who gets paged if it stops.
  • Host and runtime — local machine, remote server or Docker container.
  • Port or endpoint — including whether it binds to localhost only or to all interfaces.
  • Credential used — the label of the key, never the key itself.
  • Version or image — the pinned tag, as it actually runs.
  • State directory — config path, data path, log path.
  • Health check — the exact command that proves it works.

That last column is the one you will use most. If an existing agent has no health check, write one now, before you add anything. A health check created after an incident is a health check written by a tired person.

Step 2 — Check port, service and Docker name collisions

Agent tools are not coordinated with each other. Many ship with overlapping defaults in the 3000, 5000 and 8080 range, or take a port from a local API server that was already there. Names collide even more often than ports: generic unit names, generic container names, and Compose project names derived from the directory name mean that two checkouts in directories both called agent fight over the same namespace on the same host.

Check all four namespaces before you install:

  • Sockets. Confirm the candidate port is free, and confirm what holds it if not: ss -ltnp | grep ':8080'. On a host where you lack root, the owning process may be hidden — treat an unidentified listener as taken.
  • Process and service names. Decide the unit name, container name and process name in advance, and prefix them with the agent's identity rather than its function: research-agent-api, not api.
  • Docker namespaces. Container names, Compose project names, networks and volumes are separate namespaces that all collide independently. Two services on the same user-defined network must have distinct service names even if they run on different ports.
  • Path prefixes behind a proxy. If a reverse proxy fronts the host, a new route that shadows or reorders an existing prefix will break the old agent without any port conflict at all.

Pick a port outside the range the existing agents use, and write the allocation down. An unwritten port assignment is a future collision with a delay on it.

Step 3 — Scope credentials to each agent

Sharing a key between agents feels efficient and quietly removes three things: blast-radius control, log attribution, and independent revocation. When two agents use one key, you cannot tell from the vendor's dashboard which one hit a rate limit, and revoking the key to stop one agent stops both.

Give the new agent its own credentials across every layer it touches:

  • Model and tool provider API keys, labelled with the agent name, host and issue date.
  • Deploy keys or SSH identities for remote servers, one per agent or per host-agent pair.
  • Registry credentials if the agent pulls its own images.
  • Tokens the agent uses to call other agents or internal APIs, scoped to the endpoints it actually needs.

Start read-only or minimally scoped, verify the health check passes with the narrow credential, and widen only if a real workload fails in a way the credential explains. Store the secret in a file readable only by the agent's user (chmod 600) or in your team's secret store — never in the repository, and never pasted into a shared chat channel during a debugging session.

One caution on timing: rotating or revoking other agents' keys is a separate change. Do it in its own window, with its own verification. Bundling a cleanup rotation into an onboarding install is how a routine addition becomes an outage.

Step 4 — Pin versions and record the install command

An unpinned install is an unrepeatable install. If you cannot state the exact version that went onto the machine, you cannot roll back to the version that was there before, and you cannot reproduce the working setup on a second host.

  • Containers: pin to a specific tag or, better, an image digest. A tag can be repointed by the publisher; a digest cannot.
  • Python and Node packages: install an exact version and keep the lockfile in version control alongside the install notes.
  • CLI installers: if the vendor's script only offers a latest-channel install, record the version it produced immediately afterwards and treat the next upgrade as a deliberate change with its own window.

Copy the exact command you ran into the runbook, including environment variables that affect behaviour. Pinning has a real cost — pins drift out of security patches — so pair it with a review cadence: a scheduled, separate upgrade step rather than a surprise upgrade during someone else's incident.

Step 5 — Measure disk and memory headroom before install

Measure before you install. The numbers you need are the host's free memory, free disk, container disk usage if Docker is in play, and the current growth rate of the largest log directory. Then measure the new agent's footprint after its first real workload rather than estimating it from a download size.

df -h
du -sh /var/log/* 2>/dev/null | sort -h | tail -n 10
free -m
docker system df

Two failure modes are common and both look like something else later. Disk exhaustion from image layers, model or cache artifacts and unbounded logs turns into a write failure in an unrelated agent that shares the volume. Memory pressure produces the OOM killer choosing a victim by score, and the victim is often the oldest, largest resident process — the agent you have been running happily for months.

If headroom is thin, the additive answer is to put the new agent somewhere with room: another host, a container with an explicit memory limit, or a different machine entirely. Note the tradeoff on memory limits — a container killed for exceeding its limit will fail its health check with a confusing error unless you have set the limit high enough to absorb first-run spikes.

Step 6 — Install alongside existing agents without editing shared config

Now install, with the rule that no file belonging to an existing agent is edited. In practice that means:

  • Back up anyway. Copy the existing config directories before you start, even though the plan is not to touch them. Plans change under pressure.
  • Namespace the new state. New config directory, new data directory, new log path. If the tool insists on a single global config location, point it elsewhere with a flag or environment variable if one exists, or copy the global file to a new path and diff it afterwards.
  • New Compose project, new volume. Join an existing network only if the new agent must talk to something on it, and give the service a distinct name.
  • Separate users where practical. On a remote server, running the new agent under its own user keeps file ownership, permissions and unit names from entangling with the existing one.

If, after verification, a shared component really must change, make that change second, alone, and re-run the health checks of every agent behind it.

Step 7 — Run layered health checks after install

Verify in layers, and stop at the first failure rather than pushing forward.

  1. Process or container is up and stays up for several minutes — a crash loop often looks fine in the first thirty seconds.
  2. The port binds where you intended, on the interface you intended. A service bound to all interfaces when you expected localhost is a correctness bug, not a style issue.
  3. The new credential authenticates and the health endpoint reports ready, not merely reachable.
  4. One real workload succeeds — a genuine request through the tool or model path, not just a ping.
  5. Logs are clean for that workload, including warnings about deprecated configuration or missing optional dependencies.
  6. Every pre-existing agent still passes its health check. This is the step people skip. It is also the entire point of the exercise.
  7. Resource use after the first workload is within the headroom you measured in Step 5, and scheduled jobs and background workers still fire on time.

AI agent onboarding test checklist

  • The inventory table is filled in for every agent on the host, old and new.
  • The new agent's port is documented and does not overlap any existing allocation.
  • Unit, container, Compose project and volume names are unique and prefixed.
  • No shared credential is used; the new key is labelled with agent, host and date.
  • The install used a pinned version or digest, and the command is in the runbook.
  • Disk and memory headroom were measured before install and re-checked after the first workload.
  • Existing config files are byte-identical to the pre-install backup, or every difference is explained in the change notes.
  • The new agent completes one real request successfully.
  • Each pre-existing agent completes its own health check after the install.
  • A rollback note exists: which command or tag returns the host to its previous state.

Edge cases and how to handle them

A port is taken by a process you cannot identify

Without root on Linux, the owning process is hidden. Resolve it before installing — ask the host owner, check container listings, or check the service manager — rather than picking a nearby port and hoping.

Two agents want the same data directory

This is worse than a port conflict. Two processes writing one SQLite file or one session store corrupt state in ways that look like model errors. Confirm the default state paths differ before the first run.

A client machine where you have no administrative rights

Use user-level installs and non-privileged ports, keep everything under the user's home directory, and document that the agent will not survive a host-level restart unless the user's own session manager starts it. Say so explicitly in the handoff.

An older or differently-arched remote server

Prebuilt binaries and container images may not match the host's architecture or system libraries. Check before install day, not during it; a mismatched image fails in a way that is easy to misread as a configuration problem.

A global CLI name collision

Two agents that both install a binary called agent or run will shadow each other on the PATH depending on install order. Check which one resolves, and prefer the vendor's namespaced command or an explicit path.

Two people onboarding on the same host at the same time

Coordinate names before either installs. Concurrent changes on one machine are the same problem as conflicting edits on one file, minus the merge tool.

The new agent must call an existing one

Treat it as an API integration: pin the endpoint, verify both directions, and check that the old agent's response contract is unchanged. Add the call as a distinct verification step, not an afterthought.

FAQ: safe AI agent onboarding

Can't I just install into the same environment and fix whatever breaks?

You can, and on a disposable laptop it is often fine. On a machine that other people or scheduled jobs depend on, it converts a bounded addition into an unbounded debugging session, and the blast radius includes agents you did not touch. The additive path takes longer to prepare and much less time to recover from.

How do I know a port is safe to use?

Confirm nothing is listening on it now, that it sits outside the range your existing agents and their clients use, and that the number is written down in the allocation list. Also confirm whether the host's firewall or proxy exposes it — an unexpectedly exposed port is a configuration issue you want to catch during install, not later.

Is a separate API key per agent overkill for development?

Separate keys in development are what make production separation routine. The habit is the point, and the cost is a few minutes of key creation. If key sprawl becomes a problem, solve it with naming and a rotation calendar rather than by sharing secrets.

What if the vendor only publishes a latest tag?

Record the resolved version or digest immediately after install, keep the install command in the runbook, and schedule upgrades as separate reviewed changes. You cannot pin what the publisher will not pin for you, but you can always document what actually landed on the machine.

How does OPAYA fit into this procedure?

OPAYA is a desktop workspace for installing, connecting and managing agents across local computers, remote servers and Docker. In this procedure it is the place where the inventory lives — which agent runs where, with which endpoint and which credentials — so Step 1 is a lookup rather than an investigation. The safety properties above come from your process; the workspace keeps the process from decaying into tribal memory.

What is the single most important check?

Re-running the health check of every pre-existing agent after the new one is installed. Everything else in this guide exists to make that check boring.

Next action: prepare the inventory before install day

Pick the agent you are adding next and do only Steps 1 to 3 today: write the inventory for its target host, reserve a port and a set of unique names, and open the request for a scoped credential. Install nothing. Then schedule the install as its own change with its own window, run the checklist above, and keep the rollback note with the ticket.

If you want the inventory to live somewhere your team can read it rather than in a thread, OPAYA is built for exactly that job — one desktop workspace for the agents you run on local machines, remote servers and Docker. Start at opaya.dev/agent-managers to see how agent management is organized, and opaya.dev/features for the capabilities themselves.

Visual guide: Onboarding a New Agent Without Breaking the Old Ones
A real OPAYA product view relevant to this guide.