Join our Newsletter — 33% off our NHI Course

When should teams choose a managed agent runtime over self-hosted orchestration?

Choose a managed runtime when operational simplicity, built-in auditability, and centralised control matter more than code-level flexibility. Choose self-hosted orchestration when the organisation can reliably govern approvals, sandboxing, credentials, and observability across its own infrastructure. The decision should follow governance maturity, not developer preference.

Why This Matters for Security Teams

The runtime decision is really a governance decision: managed agent platforms reduce the number of moving parts, but they also concentrate trust, policy, and telemetry in a provider-controlled control plane. Self-hosted orchestration offers more flexibility, yet it only improves security if the organisation can consistently govern credentials, sandboxing, approvals, and audit trails across every workload. For agentic systems, that matters because the agent can chain tools, request new permissions mid-task, and act faster than a human review process can keep up.

This is why many teams anchor the decision in governance maturity rather than engineering taste. In practice, the same failure mode shows up in both models: over-privileged secrets, weak revocation, and incomplete visibility into what the agent actually did. NHIMG data shows that 97% of NHIs carry excessive privileges, and only 5.7% of organisations have full visibility into their service accounts, which is a strong signal that unmanaged operational sprawl is still the norm Ultimate Guide to NHIs — Lifecycle Processes for Managing NHIs. Current guidance from NIST AI Risk Management Framework and the OWASP Agentic AI Top 10 both reinforce the same idea: the safer choice is the one the team can actually govern end to end. In practice, many security teams discover their true operating model only after an agent has already accumulated permissions they did not intend to grant.

How It Works in Practice

Managed runtimes are usually the better fit when the organisation needs centralised logging, built-in policy enforcement, and a simpler path to audit readiness. They can reduce the burden of standing up separate systems for approvals, secret delivery, session recording, and incident response. That is especially useful when agents are early in adoption, when multiple product teams are experimenting, or when security needs a single place to see which tools an agent accessed and why.

Self-hosted orchestration becomes more attractive when the organisation needs deep integration with internal systems, custom sandboxing, bespoke policy logic, or strict data residency controls. But that flexibility only helps if the team can operationalise controls such as just-in-time credentials, workload identity, and real-time policy checks. Best practice is evolving toward intent-aware authorisation, where the decision is made at request time based on what the agent is trying to do, the data it can reach, and the current task context. That aligns with the direction of CSA MAESTRO agentic AI threat modeling framework and the MITRE ATLAS adversarial AI threat matrix, both of which emphasize dynamic abuse paths rather than static roles.

  • Use managed runtime defaults when teams cannot reliably enforce secret rotation, approval workflows, and session-level observability across all environments.
  • Use self-hosted orchestration when the organisation can issue short-lived credentials per task and verify the agent with workload identity instead of long-lived static secrets.
  • Require policy-as-code so authorisation can be evaluated at runtime, not baked into a pre-approved path that assumes predictable behaviour.

For practical NHI governance, the question is less about where code runs and more about whether the organisation can prove who or what executed each action. The OWASP NHI Top 10 and NHIMG lifecycle guidance both point to the same operational need: identity, secrets, and revocation must be tied to each task, not left to durable standing access. These controls tend to break down when agents are allowed to span multiple internal trust zones without a single policy engine because the approval path becomes too fragmented to enforce consistently.

Common Variations and Edge Cases

Tighter managed-runtime controls often increase dependency on the provider’s roadmap, audit model, and integration limits, so organisations have to balance speed and visibility against portability and customisation. That tradeoff is real, especially for regulated teams or platform groups that need to prove control ownership. Current guidance suggests managed runtimes are strongest for standardised workflows, while self-hosted orchestration is better reserved for teams with mature identity operations and strong platform engineering.

There is no universal standard for this yet, but a few edge cases consistently change the answer. If agents handle sensitive production actions, self-hosting can be justified only when the organisation can enforce zero standing privilege, ephemeral secrets, and continuous telemetry. If the main concern is rapid adoption across many business units, managed runtime centralisation often wins because it reduces policy drift. If the agent must reach external tools, the risk profile rises quickly, and incident evidence becomes more important than interface flexibility. NHIMG’s research on NHI exposure and the documented risk patterns in agentic applications show why durable credentials and scattered control planes remain a common failure point Ultimate Guide to NHIs — 2025 Outlook and Predictions, especially when paired with NIST Cybersecurity Framework 2.0 expectations for governance and response.

In short, managed runtimes are usually the safer default when governance maturity is uneven, while self-hosted orchestration belongs to teams that can already run identity, policy, and observability as a disciplined platform service. In practice, organisations often pick self-hosted for flexibility and then discover they are building a security control plane after the first access review fails.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 A01 Addresses agentic misuse from dynamic tool chaining and excess autonomy.
CSA MAESTRO TRM Covers agent threat modeling and operational controls for orchestration choices.
NIST AI RMF GOVERN Supports governance, accountability, and risk ownership for agentic workloads.
NIST CSF 2.0 PR.AC-4 Least-privilege access management is central to choosing orchestration models.
OWASP Non-Human Identity Top 10 NHI-03 Covers secret rotation and lifecycle controls for agent credentials.

Assign ownership for agent decisions, then govern approvals, monitoring, and escalation paths as a formal AI risk process.