How to Set Up a Kill Switch for Every Employee's AI Agent
A kill switch for AI agents needs to pause execution at the endpoint — on each laptop, inside each agent (Claude Code, Copilot CLI, Cursor, VS Code, Windsurf, Claude Desktop, browser AI) — not just revoke an API key at the provider, because local sessions, cached tokens and running tasks can continue after a key is cut off. Set it up as a centrally pushed policy that overrides local settings on every enrolled device, confirm receipt from each machine, and rehearse it as a drill before you ever need it during a real incident.
When a security incident happens — a compromised credential, a vendor breach affecting an AI provider, or signs of an active prompt injection campaign hitting multiple employees — the instinct is to revoke the relevant API key and consider it handled. That's necessary but not sufficient. An API key revocation stops new calls to a provider's servers. It does nothing about an agent that's already running on a laptop with a cached session, a coding agent mid-task with local file access, or a browser extension that doesn't re-check authorization every request.
Why key revocation isn't a kill switch
AI agents installed on company machines — Claude Code, GitHub Copilot CLI, Cursor, VS Code extensions, Windsurf, Claude Desktop, AI features in Chrome, Edge or Brave — each maintain their own local state: open sessions, queued actions, cached credentials, and in some cases offline capability. During an incident, the goal is to stop activity everywhere at once, not wait for each agent to independently notice its key no longer works, which can take anywhere from immediately to never, depending on how that specific tool handles authentication failures.
A real kill switch has to reach the endpoint directly: the laptop itself, regardless of network path, regardless of which specific agent is in use.
What a kill switch needs to do
- Cover every agent a policy manages, not just one. If your workforce uses a mix of coding agents and browser AI, a kill switch that only pauses one tool leaves the others running. The switch needs to apply uniformly across whatever's installed.
- Push from a central point of control, out-of-band from normal usage. The mechanism that pauses agents shouldn't depend on the same path an attacker might also be able to interfere with — for example, if the incident involves a compromised network segment, the pause command needs a path that doesn't rely on that segment staying healthy.
- Confirm receipt, not just dispatch. A kill switch that sends a pause command and assumes it worked is not useful during an actual incident. You need to know which machines acknowledged the pause and which didn't, so the ones that didn't can be handled manually (disconnected from the network, physically isolated, or flagged for follow-up).
- Work for machines that are offline or disconnected at the moment of the incident, by having the local enforcement act on the most recent policy it received rather than requiring a live connection to pause.
Setting it up before you need it
The sequence matters more than any specific tool:
- Enroll every machine that runs an AI agent into a central policy system, so there's a single place that knows what's installed and where.
- Define an emergency policy tier that's distinct from day-to-day settings — a mode that overrides normal permissions rather than adjusting them, so there's no ambiguity about what "paused" means during an incident.
- Decide who has the authority to trigger it, and make sure that authority doesn't sit with a single person who might be unreachable when it matters.
- Practice it. A kill switch that's never been triggered outside a real emergency is untested in exactly the situation where it needs to work reliably. Run a drill: trigger the pause, measure how long it takes for machines to acknowledge, and check what breaks for employees who were mid-task.
What this costs to run well
A kill switch that actually works across every laptop, every agent, and every network condition isn't a toggle — it's continuous device enrollment, policy distribution, acknowledgment tracking, and a tested emergency tier maintained whether or not an incident is happening. That's infrastructure a company runs all the time, not something assembled during the incident itself. Treating it as a standing capability, reviewed and drilled on a schedule, is what separates a kill switch that works from one that's untested theory.
What to take away
- Revoking an API key stops new provider calls; it doesn't stop an agent already running locally with a cached session.
- A real kill switch pauses execution at the endpoint, across every agent a policy manages, not just one tool at a time.
- It needs confirmation of receipt per machine, a path that doesn't depend on a possibly-compromised network, and a defined emergency tier distinct from normal settings.
- Drill it before an incident. The first time a kill switch is triggered should not be during the incident itself.