Beyond Git Worktree
Cloud AgentsLong read

Why Managed Agent Platforms Outclass Raw VM Access for Claude Code and Codex Teams

Managed platforms close the isolation, credential, budget, and audit gaps raw VMs leave open.

· 9 min read
Cover illustration for “Why Managed Agent Platforms Outclass Raw VM Access for Claude Code and Codex Teams”
Cloud Agents · November 26, 2026 · 9 min read · 1,925 words

Managed agent platforms are the stronger production choice for teams running Claude Code and Codex because they address governance that raw VMs leave teams to build. Talyn supports both agents in parallel cloud sandboxes, while Amazon Bedrock AgentCore provides framework-agnostic runtime infrastructure. Choose a platform that enforces isolation, credential scope, budgets, and accountability throughout execution.

Why running Claude Code or Codex on a raw VM is a reasonable starting point but not a production one

A VM is fast to provision, familiar to engineers, and puts no intermediary between a coding agent and the codebase. It provides real compute and a working agent. For an interactive session with a human watching, that is a reasonable starting point.

The problem begins with what the agent inherits. On a raw VM, Claude Code or Codex receives the shell privileges, filesystem permissions, cloud credentials, and local network access of whoever launched it. Those permissions do not automatically narrow to the task. Once execution moves onto a schedule or into CI, human supervision no longer compensates for that missing boundary. What exactly does “every governance requirement as an unsolved engineering problem” mean in practice?

The four governance gaps a raw VM leaves open by default

A raw VM leaves four distinct gaps, namely unscoped credentials, absent session isolation, unenforced budgets, and incomplete centralized audit trails. The agent CLI does not close them by itself. CrowdStrike CTO Elia Zaitsev called for collapsing agent identities back to the human at RSAC 2026, so an agent never has more privileges than the person it represents. But even that person's credentials can give the agent more access than a single task needs.

Session isolation is a separate problem from identity. Two agents editing the same repository at the same time can cause corruption. Containers also share the host kernel, so a kernel exploit that escapes one session can reach another or the host. Neither risk depends on whether the agent has an appropriately restricted cloud role.

Cost and accountability introduce two further failure modes. Agentic workflows generate orders of magnitude more tokens than chatbots, and an Analyzer and Verifier agent demonstrated the risk by ping-ponging requests for days without a budget limit. Meanwhile, user-writable policy files such as ~/.claude/settings.json can be modified or deleted by developers or local scripts. Before August 2026, Anthropic's native controls also gave teams little insight into their local configurations, so they had to rely on third-party extensions for basic governance.

What session isolation actually requires at the infrastructure level

Real session isolation needs a boundary in the infrastructure that another setting on a shared VM cannot provide. Containers use namespaces, but they share the host kernel. MicroVMs instead run their own lightweight kernel inside a hardware-virtualized environment, which gives sessions a stronger boundary between them. The choice depends on the threat model.

For most AI agent workloads, containers hardened with gVisor are a middle ground that works well. They start at container speed and have stronger isolation than ordinary containers, but their isolation is weaker than that of full VMs or microVMs. That distinction prevents “sandboxed” from becoming an empty label. A sandbox's value depends on what it separates and which escape paths its boundary addresses.

E2B uses Firecracker microVMs with sub-200ms cold starts, giving each sandbox a full Linux environment isolated from the host and other sandboxes. Its API supports sandbox creation, file upload, command execution, and cleanup. Anthropic's sandboxed execution environments follow the same rule for production by keeping agent processes separate from host systems. A raw VM deployment can build such a layer, but maintaining it becomes ongoing engineering work separate from the agent's task.

Why credential scoping cannot be solved with a tighter IAM policy alone

A tighter IAM role narrows what a credential can authorize, but it does not determine how long that credential remains useful. Scope and lifetime are different controls. A credential that persists across sessions can be exfiltrated, replayed, or inherited by a compromised run after the original task has ended. Restricting permissions addresses only part of that exposure.

Session-scoped credentials address the lifecycle directly. They are minted fresh for each session and revoked when it ends, so a leaked credential has no value after that session closes. Combined with task-level scope, this pattern limits both the authority available during execution and the period in which it can be abused.

Pre-tool hooks provide another enforcement point before an action runs. Claude Code supports decisions that allow, ask, or deny, while Codex CLI's PreToolUse hook supports deny but not ask. A raw VM does not enforce those hooks by default. Teams must connect a secrets manager, write hook integrations, and maintain revocation logic, with framework differences preventing those integrations from being automatically reusable.

How budget enforcement works as a layered architecture, not a single cap

A master spending cap is not enough. Tokens, model calls, tool calls, retries, and dollars need separate limits, checked at the run, step, and tool level. These controls address different ways an agent can consume resources, rather than waiting for all activity to become a final charge.

A billing dashboard can expose accumulated spend, but it is not an execution-time boundary. Layered enforcement places checks inside the workflow, where continued model calls or retries can be constrained. The distinction is between observing cost and governing it.

Cost efficiency also extends beyond hard limits. Model routing, prompt caching, and context optimization can work with budget enforcement to cut production costs by a large amount. Those techniques reduce consumption, while hard controls bound it. With YAML-driven budgets, managed platforms can set these rules as policy, but teams using a raw VM must build the enforcement architecture themselves or go without it.

Why audit trails require immutable, action-level logging — not just logs

A governance-grade audit trail must record the tool called, its inputs, the policy evaluation, and the person or automated trigger responsible. Those records must be immutable and attributable. A VM log that shows a process ran does not necessarily explain what the agent did or why it was permitted. Accountability requires a record of the action and its context.

The 2025 AI-Augmented CI/CD pipeline architecture published on arXiv shows how this works. It links every agent action to contextual inputs, policy evaluation results, and the confidence metrics that go with them, so teams can study what happened in detail after an incident. This makes observability a governance requirement.

Buyers who work under regulations also need audit trails as evidence of compliance. Dust has a SOC 2 Type II attestation and HIPAA-ready controls that enable HIPAA compliance. Control Plane has PCI DSS Level 1, SOC 2 Type II, HIPAA, and GDPR compliance, while Amazon Bedrock AgentCore Runtime is listed in AWS PCI DSS scope. On a raw VM, comparable audit capability still requires instrumenting tool calls, preserving immutable records, and mapping actions to identities and triggers as frameworks evolve.

Agent configuration as code: how YAML-driven policy closes the policy delivery failure

Policy cannot reliably govern an agent if the same local environment can silently rewrite it. Declarative configuration checked into the repository, reviewed, and versioned makes policy changes a documented part of the deployment process. YAML-driven policy gains its protection from review and enforcement.

YAML-driven governance can express rules that match tool names, annotations, and input parameters. It can route irreversible actions to approval workflows and define cross-tool spending limits, rate limits, and audit requirements at the gate. These rules describe permitted execution in a form the team can review.

Microsoft Agent Framework 1.0, shipped April 3, 2026, includes declarative YAML configuration as an alternative to programmatic agent construction. Codex has related controls in .codex/config.toml, including sandbox_mode, approval_policy, and network_access = false under [sandbox_workspace_write]. The formats differ, but the governance principle is shared.

What Amazon Bedrock AgentCore and similar managed runtimes actually provide — and where they stop

Amazon Bedrock AgentCore provides deployment, authentication and access control, tracing, and evaluation as platform capabilities, saving teams from building that infrastructure. That is the practical meaning of a managed runtime. AWS names LangChain, the OpenAI Agents SDK, the Claude Agent SDK, and Strands among its supported options. Teams can choose infrastructure that works with more than one agent harness.

That breadth is not the same as a ready-made team workspace for both coding CLIs. Talyn more directly addresses that use case by running Claude Code and Codex in parallel cloud sandboxes, each with its own branch and diff. But its stated sandbox support alone does not show that it has every governance capability discussed here.

Choose a managed runtime when you need to operate agents in production. Controls that come with a platform can save teams a lot of engineering work, but the category name alone does not prove that it has every control they need. Running agents in a vendor's cloud reduces control over where execution happens.

The legitimate objection: data sovereignty and the self-hosted middle path

Data sovereignty is a genuine constraint for regulated or sensitive workloads. Vendor-hosted execution introduces some loss of control and some degree of lock-in. Lower operational overhead does not erase those costs. Compliance requirements can make them decisive.

The alternative need not be an ungoverned VM. Self-hosted runtimes and hybrid architectures can add governance capabilities to infrastructure the team owns. Claude Managed Agents has a self-hosted sandbox option that runs tools on that infrastructure. However, tool inputs and outputs and conversation history still flow to Anthropic's Managed Agents service, and the option is not eligible for Zero Data Retention or HIPAA coverage.

OpenHands offers another path, with an MIT license, support for any LLM, and a default Docker sandbox. It preserves execution on team infrastructure while providing isolation capabilities absent from a bare VM, though Docker retains the shared-kernel distinction described earlier. Managed cloud offers less work to keep it running and built-in compliance capabilities, while self-hosting takes more work but gives teams more control over their data. Raw VMs give teams the most control but leave them to build every governance layer.

What running agents in production actually requires from the platform you choose

Engineering leaders should evaluate production platforms against six criteria, namely session isolation, session-scoped credentials, layered budget enforcement, action-level audit logging, YAML-driven policy configuration, and durable task state. These are acceptance criteria. A platform that excels at sandbox creation may still leave credential revocation or spending controls unresolved. Each requirement needs its own answer.

For isolation, each run needs its own environment, with a separate kernel boundary where the requirement is no shared kernel state between sessions. Credentials should be scoped to the task, minted at session start, and revoked at session end. Budgets need execution-time checks across tokens, model calls, tool calls, retries, and dollars. Audit records should make every tool call, diff, and trigger attributable, immutable, and reviewable after the session.

Versioned policy then governs how those controls are delivered. Durable task state meets a different need by keeping the state of long-running operations when they are interrupted. Anthropic's Claude Code checkpointing saves code state before each file edit so changes can be rewound or undone within a session. That is a recovery tool for experimentation within a session.

If the team must build a capability it needs, that work still counts when choosing a platform, however easy it is to start the agent. A deployment that leaves these production requirements to the buyer is closer to a VM with better documentation than a complete runtime. The right choice follows the organization's governance and compliance requirements, including how much of that infrastructure it is prepared to own.

Filed underCloud Agents

More in Cloud Agents