# What Changes When the Agent Stack Runs Inside the Client's Network

A cloud demo of an AI agent hides a lot of assumptions. Models arrive over the internet, embeddings come from someone else's API, logs go to a hosted dashboard, and nobody asks where the traffic goes. Move the same stack onto a client's servers and each of those assumptions turns into a ticket.

I want to walk through what actually changes, because most of it is dull infrastructure work, not AI work.

## Four components, one boundary

When I sketch an on-premise agent stack, I draw four boxes and one line around them.

The boxes are the model server, the retrieval store, the orchestration layer that runs the agent logic, and the log store. The line is the network edge. Everything inside should work with the internet unplugged, or at least with only a short, explicit list of outbound destinations.

That line is the whole design. If a component needs to reach outside it, you either move the component inside or write the exception down and get it approved.

Running on site is slower to set up and harder to update, so it needs a reason. Data residency rules, a security team that won't approve outside traffic, or a regulator who wants proof of where documents go are all good reasons. Curiosity is not. If you're weighing it, the breakdown of [***costs and trade-offs of on-premise AI***](https://aihive.global/blog/on-premise-ai/) covers hardware, staffing and update burden in more depth than I can fit here.

## What breaks first

The first surprises are rarely the model. They're the things around it.

Package installs and container pulls fail because the build host can't reach a public registry. Telemetry in a library tries to phone home and gets blocked, sometimes silently. An embedding step turns out to call a hosted API, which quietly defeats the point of running on site. Certificates are issued by an internal authority the container doesn't trust.

None of these is hard to fix. All of them are painful to find during the week you promised the client a demo.

## Check the egress before go-live

The cheapest guard I know is an allowlist check on every endpoint the stack is configured to call. It won't catch everything, since a dependency can call out on its own, but it catches the mistakes people make in configuration files.

This runs in Node and I tested it before pasting:

```js
const ALLOW = new Set(["models.internal.example", "vectors.internal.example"]);

function checkEgress(urlString) {
  const host = new URL(urlString).hostname;
  return { host, allowed: ALLOW.has(host) };
}

const configured = [
  "https://models.internal.example/v1/chat",
  "https://vectors.internal.example/search",
  "https://telemetry.vendor.example/ping",
];

const report = configured.map(checkEgress);
console.log(report.filter((r) => !r.allowed));
// [ { host: 'telemetry.vendor.example', allowed: false } ]
```

Pair it with a network-level rule that blocks anything not on the list. The script tells you what you intended. The firewall tells you what actually happens.

## Updates without a live internet connection

On a cloud stack, updating means pulling a new image. On a client's network, it usually means a signed bundle that someone imports during a maintenance window.

Pin every version. Keep a staging copy that mirrors production, so the bundle gets tested before it touches anything real. Write the rollback step before the update step, because the first time you need it will not be a calm afternoon.

Model updates deserve extra care. A new model version can change answers in small ways, so rerun your test set against the staging copy before you promote it. If the results shift, you want to find out on a Tuesday afternoon with the client's ops team watching, not on a Friday evening.

## Logs and traces without a hosted dashboard

A hosted observability tool is one more outbound connection, so on site you keep logs inside the boundary. A plain log store with search is enough to start. What matters is what you write down: the trace ID, who the agent acted for, which tool it called, and what came back.

Make sure the client's security team can read those logs without asking engineering for help. If they can't, the first audit will turn into a support ticket.

## The handover is part of the build

The last piece is the one teams forget. Someone on the client's side has to run this after you leave. Give them a short runbook: how to check health, how to read the logs, how to restart each component, and who to call.

If the runbook doesn't exist, you haven't deployed anything. You've built a demo they're now afraid to touch.

Have you ever found a component phoning home during a client deployment? I'd like to hear what it was.

Disclosure: I advise teams on rollouts like this at AI Hive, where the platform can [***deploy AI agents on your own infrastructure***](https://aihive.global/) for a client.
