AI governance

AI agents for multiple clients need a boundary the model can't talk past

Running AI agents for multiple clients means every connection is a way into someone else's data. The boundary has to live in a gateway, not a prompt.

8 min read

If you do automation work for more than one client, your AI agent has a problem your clients never see. Each of them has their own database, their own Airtable, their own n8n, their own Vercel team and their own inbox. Every one of those connections is a way into someone’s business. Put them in front of an agent and the question stops being “can it do the work” and becomes “which client’s data can it reach right now”. The usual answer is: whatever happened to be connected last.

TL;DR: Running AI agents for multiple clients turns client separation into a security property, and a security property can’t live in a prompt. The model mostly follows “only use this client’s tools”, and mostly isn’t good enough when the data belongs to someone else. The boundary has to sit below the model: each connection belongs to one client, a piece of work can reach only its own project’s connections, and a gateway the agent can’t talk to adds the keys, refuses anything else and logs every call. Then approvals can be rare instead of constant, and undo can carry the weight that attention can’t. I built a desktop app on that idea, Ringkeeper. It’s free and open source, and the design matters more than the app.

The boundary nobody draws

With Claude Desktop or Claude Code, every time I switched clients I had to switch connections: swap keys, change config files, remember which MCP server pointed where. Leave the last job’s connection in place by accident, and an agent can read the wrong client’s data. That’s the kind of mistake you only get to make once.

The tools have improved. Claude Desktop lets you turn connectors on and off per chat. But a connector isn’t tied to a client. Nothing stops one client’s chat from using another client’s connector, so the separation is still a habit, yours, repeated on every switch. Habits are fine for things that fail loudly. Cross-client access fails quietly: the query runs, the answer looks right, and it came from the wrong company.

Two more things are missing once you look for them. Permissions are per tool, the same for a test database as for a production one, so you either approve everything or trust everything. And nothing counts what each client’s work cost you, which matters the day you invoice.

A boundary has to live below the model

The tempting fix is an instruction. Tell the agent which client it’s working for, list the tools it may use, ask it to stay inside the lines. Models are good at this. In my own tests, when I pushed the model to reach the other client, it declined every time.

That still isn’t a boundary. A rule the model holds is only as strong as the model’s judgment on that call, including the calls where it has just read a customer note with instructions buried in it. I wrote about the general version of this in a sandbox that’s a prompt, not a network control: a limit that lives in the conversation isn’t enforced at all, only observed.

So the rule I built around is simple. Every guarantee is enforced by code the agent can’t talk to.

The ruleTold to the modelEnforced by the system
Stay inside this client”Only use this client’s tools”Each connection belongs to one client; a task’s pass reaches only its own project’s connections
Don’t leak keys”Never print credentials”The task never holds a key; the gateway adds it on the way out and strips secrets from the answer
Ask before changing live data”Check with me first”Changes to a production connection are held until a person approves them
Keep a record”Summarize what you did”Every call and every refusal is logged where neither the agent nor I can edit it

The left column is what most setups rely on today. The right column is what you can actually show a client.

What that looks like in practice

In Ringkeeper, every connection — a database, an Airtable base, an n8n instance, a GitHub repo — belongs to one client and is attached to that client’s projects. You ask in plain words: “add last week’s leads to General Informatics’ Airtable”. A router works out which client and project you mean and starts a task there.

The task runs Claude Code, but it never gets a key. It gets a short-lived pass for its own project. Every call to a client’s service goes through a gateway on your computer, which checks that the project may use that connection, adds the key itself, removes secrets from the answer, and writes the call to the log. If the task asks for another client’s connection, the gateway refuses, whatever the prompt says. The model’s judgment is a second line, not the first.

The same gateway covers the chat apps people already use. A pass lets Claude Desktop, Claude Code or Cursor use one project’s connections through Ringkeeper, with the same checks as a task. You keep the chat app; the rules come with the pass. The app never sees a client’s key, and you can revoke the pass at any time.

Approvals that stay rare

Once the boundary is enforced, approval can do the job it’s good at instead of every job. I’ve written about why human-in-the-loop approval stops working around prompt fifty: a person approving at the agent’s pace approves almost everything. The fix there was fewer decisions, not better ones, and the same applies here.

So reads run without asking. Changes on a staging or development connection run too, because that’s what those connections are for. A change to a production connection stops and waits, showing exactly what will run: the SQL, the record, the workflow. You can approve in the app, or from Telegram, Slack or Discord, which means a held change doesn’t wait for you to get back to your desk. Deletes and other destructive changes need the connection’s name typed, in the app itself, not from a phone. Approval should be fast for what’s safe to approve quickly and slow on purpose for what isn’t.

Then there’s the part that lets approving be imperfect: undo. Before a change runs, Ringkeeper keeps a copy of only what it’s about to change, and for 7 days you can put it back. That covers a plain update or delete on a database table, Airtable changes, and n8n workflow changes. A revert waits for approval too. If something else changed those rows since, the approval says so, and if they change before you approve, the revert stops rather than overwrite them. What can’t be undone, like a sent email or a deploy, says “can’t be undone” on the approval card, before you approve. An undo that works at 3 a.m. beats an approver who doesn’t.

A meter per client

The quieter benefit of a boundary is that it gives you a place to count. If every task belongs to one client’s project, you know what each client’s AI work cost. I’ve argued that AI agent costs are a meter nobody owns; per-client work is where that bites first, because the cost is real and the invoice goes to someone else.

Each client in Ringkeeper has a month view: the tasks, the changes approved or declined, the calls that were refused, and the AI cost. There’s a report you can send the client, which never names another client, and a monthly spending cap per client. Once a client’s month reaches it, new tasks wait for you and routine runs are skipped, so a runaway routine stops at the cap rather than at the invoice.

What I tested, and what it doesn’t prove

The self-test runs real requests through the real router, workers and gateway against two made-up clients, on a real model. On 7 November 2026 it passed 23 of 23 scenarios: 18 of 18 requests reached the right project, all 5 production changes were held for approval, and 15 calls were refused at the gateway, for about $0.24 in estimated model cost. Six scenarios that need real test accounts were skipped, and an earlier run that day passed 22 of 23. The report is public, and anyone can run it.

Two of those scenarios push the model to reach the other client: one through instructions hidden in a record’s text, one by naming the other client’s connection outright. The model declined both times on its own. That’s good news about the model, and it means those runs don’t show the gateway refusing anything. That part is covered separately, by tests that call the gateway directly with the other client’s connection. A guarantee that depends on the model behaving isn’t a guarantee, so it’s tested without the model.

The limits, plainly. It’s a beta, and Windows comes first; the Mac build is experimental and unsigned. On the desktop, a task runs as your own user: the gateway controls what it does through connections and keeps keys out of its environment, but it doesn’t wall it off from your computer. Strong isolation means running tasks in Docker, which gives each task only its project’s folder. That’s off by default, because it needs Docker Desktop, and I recommend turning it on for client work.

If you never install it

The design is the useful part, and it works with whatever you run:

Give every connection an owner. Not a shared pool of keys with a naming convention, but one client per connection, written down somewhere the system checks.

Keep keys out of the agent. If the agent can read a key, the boundary is the agent’s goodwill. A proxy or gateway that adds credentials on the way out is a small piece of plumbing and it changes what a mistake can cost.

Split test from live. The same tool should be free on a staging database and held on a production one. That one distinction removes most of the approvals nobody reads.

Make changes reversible before you make them approved. Undo degrades gracefully; vigilance doesn’t.

And count per client. If you can’t say what each client’s agent work cost and what it changed, you can’t send them a straight answer when they ask.

None of this is AI work. It’s the process and integration work that decides whether any of it holds up. If you run AI work for several clients and want the boundary set up properly, tell me what you’re connecting. If you’d rather do it yourself, Ringkeeper is free, and the code is on GitHub.

FAQ

Can I use one AI agent for several clients safely?
Yes, if the separation between clients is enforced by the system rather than by the model. An instruction like "only use this client's data" is a request the model usually follows, and usually isn't good enough when the data belongs to someone else. The safe design gives each connection to exactly one client, lets a piece of work reach only its own project's connections, and puts a gateway in front of every call that refuses anything outside that project, whatever the model asks for.
Doesn't Claude Desktop already let me turn connectors on and off?
It does, per chat, and that helps. But a connector isn't tied to a client, so nothing stops one client's chat from using another client's connector if it's switched on. Keeping clients apart stays your job, every time you switch. Permissions are also set per tool, the same for a test database as for a live one, and there's no undo and no record of spend per client.
Should every AI agent action need human approval?
No. Approval works when it's rare. Reads can run, and changes on a staging or development connection can run, because they're cheap to get wrong. Changes to live data should wait for a person, deletes should need a deliberate extra step, and as much as possible should be reversible, so approving doesn't have to be perfect.
What is Ringkeeper?
Ringkeeper is a free, open-source (MIT) desktop app by Alexey Yushkin for doing AI work across many clients. You connect each client's tools once and attach them to that client's projects. Claude does the work without ever holding a key: every call goes through a gateway on your computer that refuses another client's connection, holds changes to live data for your approval, and logs the call. Database, Airtable and n8n changes can be undone for 7 days. It's a beta, Windows first, with an experimental Mac build.