How Many Credentials Should Your AI Agent Have? Zero. — Jim Clark, Docker
Oct 6, 2026AI Engineer
Summary
This post contributes to agent harness engineering by detailing a strategy for AI safety through sandboxing and credential management. It proposes using MCP gateways as a central control point for agent sandboxes, defining the sandbox by the tools and context it has access to, rather than the harness itself. The core principle is that the right number of credentials for an agent sandbox is zero, with tools and permissions granted progressively via Cross App Access (XAA) with Okta, aligned with the specific intent of the task. Examples include a newsroom split into researcher, fact-checker, and publisher sandboxes, and a coding agent that only receives signing keys when committing code.
More from the Agent Memory and Harness Engineering trail
- From Context to Memory: Your Agents Need a Real Memory Layer — Anders Swanson, Oracle
- Designing CLIs for Agents, Not Humans — Pedro Lopez, Airbyte
- Building on the Codex Harness — Dominik Kundel, OpenAI
- Stop Prompting — Greg Pstrucha, Sentry
- Brains vs Hands: How to Run AI Agents Safely in Production — Viren Baraiya