Where should the keys your AI agents use actually live — on your own machine, or in a cloud secrets service? Both can be done well. Both can be done badly. The right answer depends on who you are, and for a solo operator running agents on their own hardware, the math tilts harder toward local than most people assume.

What "cloud credential storage" gets right

Managed secrets services (the big cloud vaults) are genuinely good at a few things:

  • Team scale. Many people, many services, central rotation policy — this is what they were built for.
  • Rotation automation. Scheduled rotation and integration with cloud IAM is real value when you have dozens of services.
  • Compliance paperwork. If an auditor needs to see a policy, these tools produce it.

If you're an enterprise with a platform team, this is the established path and you should probably stay on it.

What it costs you

  • Your secrets live in someone else's system. You're trusting a third party's breach history, access model, and incident response with the keys to your accounts.
  • It's another bill and another dependency. When the secrets service has an outage, your agents can't authenticate.
  • It's overkill for one person and five agents. The setup tax is real, and most solo operators end up half-configuring it and falling back to a plain .env file anyway — which is the worst outcome of all.

What "local-first" gets right

Local-first means your real credentials never leave your machine. For someone running local LLMs and agents on their own box, this lines up with why you went local in the first place:

  • Smallest possible exposure. Keys that never touch the cloud can't be leaked from the cloud.
  • No third party in the trust chain. You are the breach surface, and you control it.
  • No extra dependency or bill. Nothing to be down when a SaaS is down.
  • It matches the threat you actually have. Your risk isn't a nation-state hitting a cloud vault — it's an agent pasting a key somewhere it shouldn't.

The failure mode local-first must avoid

"Local" done naively is just keys in a .env file on your laptop — encrypted by nothing, copied into Git, printed in logs. Local-first only wins if you pair it with the right storage pattern: keys encrypted at rest, read at runtime, and — best of all — never handed to the agent in raw form.

That last part is the key insight. The strongest local-first setup isn't "agent reads key from keychain." It's "agent never sees the real key at all."

The pattern that wins for solo operators: a local broker

A local credential broker keeps your real keys on your own machine and hands each agent a scoped, revocable credential instead of the raw secret. You get the local-first benefits (nothing in the cloud, no third party in the trust chain) plus the per-agent isolation that a plain keychain can't give you.

Agent Master Key is the local-first broker for exactly this situation: connect your accounts once on your Mac, each agent gets its own scoped Master Key, your real credentials never leave the machine, and revoking any agent is one click. It's local-first without the .env-file footgun.

So which should you pick?

You are Pick Why
Enterprise with a platform team Cloud secrets manager Built for team scale, rotation, compliance
Solo operator / small team running agents locally Local-first broker Smallest exposure, no third party, per-agent revocation
Anyone currently using a .env file Almost anything else A committed .env is the most common leak there is

Bottom line

Cloud secrets managers earn their place at team scale. But if you're an independent operator running agents on your own hardware, local-first — done with a broker, not a flat file — gives you less exposure, fewer dependencies, and per-agent control that matches the risk you actually face. Keep the secrets where you can see them.

Not sure your current setup is sound? The $99 AI Agent Security & Setup Audit tells you exactly where your keys are exposed and how to fix it.