85 agentic tools audited for security incidents · Talk to the lab →
MotionticBook a call
Glossary

What is an agent runtime?

An agent runtime is the execution layer that runs AI agents in production, hosting the agent loop and keeping session state, checkpoints, sandboxes and credentials working across long or interrupted runs.

A framework helps write an agent. A runtime keeps it running. An agent that works for hours, waits days for a human approval, or crashes halfway through a task needs somewhere to store its progress, a sandbox to act in, a safe place for credentials and a way to pick up where it stopped.

The labs now sell this layer directly. Claude Managed Agents entered public beta in April 2026, priced at token rates plus $0.08 per session-hour. OpenAI's Agents API, in public beta since September 2026, runs agents on a managed Codex harness with durable sessions and sandboxes. Google's Agent Runtime, part of the Gemini Enterprise Agent Platform, hosts ADK agents and offers managed templates for LangChain, LangGraph, AG2 and LlamaIndex.

What a runtime takes care of

  • Durable sessions

    An append-only record of everything the agent did, kept outside the context window so nothing is lost when context is compacted or the process restarts.

  • Checkpoints and resume

    Saved state at known points, so a failed or paused run continues instead of starting over.

  • Sandboxes

    Isolated environments where the agent runs code and commands without reaching the rest of the system.

  • Credentials

    Secrets held in vaults or proxies, out of reach of code the agent generates.

  • Pause for people

    Approval steps that hold a run without burning compute until someone responds.

Separating the brain from the hands

Anthropic's post on scaling Managed Agents (April 2026) describes the design idea most runtimes share. The brain, meaning the model and its harness, is kept apart from the hands, meaning sandboxes and tools. A failed container then becomes an ordinary tool error the agent can retry, and the session lives as a durable event log that outlasts any one harness.

Google's guidance on long-running ADK agents (May 2026) makes the same point for business processes that run for days: keep an explicit state machine in persistent storage, resume through webhooks, and treat human approval as a pause rather than a waiting loop.

Where runtimes go wrong

  • Replaying everything

    Restarting a long run by feeding the whole history back to the model is slow, costly and often fails. State has to be restored, not replayed.

  • Steps that are not safe to repeat

    LangGraph saves checkpoints between steps, so a resumed step runs again from its start. Steps that send emails or charge cards must be safe to run twice.

  • Hosted state lock-in

    Managed runtimes hold the session data. Moving providers later means migrating that state too.

How Motiontic's engineers apply it

Motiontic's engineers decide early whether a client's agent needs a managed runtime, a self-hosted one or none. Short request-and-response agents often need none. Agents that run for hours, wait on approvals or touch money get durable state, idempotent steps and credentials kept outside the sandbox from the first version.

Agent framework, harness and runtime compared

Agent framework, harness and runtime compared
FrameworkHarnessRuntime
What it isA library of agent partsThe assembled loop, tools, context and permissionsThe place agents execute and persist
ExamplesLangGraph, CrewAI, Pydantic AIClaude Agent SDK, Codex harness, Deep AgentsClaude Managed Agents, OpenAI Agents API, Google Agent Runtime
Main concernHow to build the agentHow the agent behaves turn by turnHow the agent survives in production
Owned byThe developer's codeThe developer or the labOften a hosted service

Common questions

What is the difference between an agent runtime and an agent framework?

A framework is code used to build an agent. A runtime is the environment that executes it in production, with durable sessions, checkpoints, sandboxes and credential handling.

Does every AI agent need a runtime?

Not a separate one. A short agent that answers within one request can run inside an ordinary web service. Agents that run for a long time, pause for approvals or must survive crashes do need durable state and resume.

What are examples of managed agent runtimes?

Claude Managed Agents, OpenAI's Agents API and Google's Agent Runtime on the Gemini Enterprise Agent Platform. LangGraph also describes itself as an agent runtime and can be self-hosted.

Running agents that have to hold up?

Describe the agent, the systems it touches and what it must never get wrong. The first call is with a lab engineer, who will say plainly whether it is ready for production, and whether Motiontic is the right team.