Early-bird price on the GenAI & Agentic AI Engineer Bootcamp batch. Grab a seat →

Amazon Bedrock AgentCore is AWS's platform for deploying and operating AI agents. It is a set of separate services (Runtime, Memory, Gateway, Identity, Observability and several more) that you can use together or one at a time, with any agent framework and any model. Amazon Bedrock gives you the models; AgentCore gives you everything around the agent.

Key takeaways

  • AgentCore is modular. You can host an agent on Runtime without using Memory, or use Gateway for tools while the agent runs somewhere else.
  • Runtime isolates each user session in its own microVM, which is the feature that most distinguishes it.
  • Gateway turns existing APIs and Lambda functions into Model Context Protocol (MCP) tools and handles authentication on both sides.
  • Strands Agents is AWS's open-source framework, but AgentCore also runs LangGraph, CrewAI, LlamaIndex, Google ADK and OpenAI Agents SDK agents.
  • Every service has its own usage meter. Read the pricing page before you design around a service.

This article is part of our comparison of AI agents on AWS, Azure and Google Cloud. The sibling articles cover Microsoft Foundry Agent Service and Agent Framework and ADK and Gemini Enterprise Agent Platform on Google Cloud.

How does AgentCore relate to Amazon Bedrock?

Amazon Bedrock is a managed service for calling foundation models. Its overview says it supports more than 100 models from providers including Amazon, Anthropic, DeepSeek, Moonshot AI, MiniMax, OpenAI and xAI.

AgentCore sits beside it. AWS describes it as an agentic platform for building, deploying and operating agents "using any framework and foundation model". An agent on AgentCore often calls a Bedrock model, but the documentation also lists models outside Bedrock as supported.

What are the building blocks?

These are the services listed in the AgentCore documentation in November 2026.

ServiceWhat it does
RuntimeServerless hosting for agents and tools, with session isolation
HarnessA managed agent loop: you supply a model, system prompt and tools in one API call
MemoryShort-term memory within a session and long-term memory across sessions
GatewayConverts APIs and Lambda functions into MCP tools; connects to existing MCP servers
IdentityAgent identities, inbound authentication and outbound credentials
Code InterpreterAn isolated sandbox where an agent can run code
BrowserA managed cloud browser an agent can drive
ObservabilityTraces, metrics and logs for agents, stored in Amazon CloudWatch
EvaluationsAutomated scoring of agent quality on sessions, traces and spans
PolicyRules that allow or deny each tool call at the Gateway
RegistryA catalogue of agents, MCP servers, tools and skills across the organisation

AWS also lists Optimization (recommendations and A/B tests based on traces) and Payments (microtransactions for paid APIs). Most first projects need only four: Runtime, Memory, Gateway and Identity.

How a request flows through AgentCore, from the caller through Runtime and Gateway to a tool.

How does AgentCore Runtime work?

Runtime hosts your agent code and gives it an endpoint. The details that matter to an architect:

  • Session isolation. Each user session runs in a dedicated microVM (a lightweight virtual machine) with isolated CPU, memory and filesystem. When the session ends the microVM is terminated and its memory is sanitised. One user's conversation state cannot leak into another's.
  • Long sessions. AWS documents sessions of up to 8 hours on microVMs. A second compute type, Instances, runs on AWS-managed Amazon EC2 in your account and supports sessions of up to 14 days and GPU workloads.
  • Large payloads. Runtime can process payloads of up to 100 MB, which matters for images, audio and documents.
  • Protocols. Besides plain HTTP and WebSocket streaming, Runtime can host MCP servers and Agent2Agent (A2A) servers. See the A2A protocol explained for what that adds.
  • Billing. Pricing is consumption-based. AWS says CPU billing follows active processing, which typically removes charges for time the agent spends waiting for a model to respond.

What do Memory, Gateway and Identity add?

Memory. Agents are stateless unless you give them memory. AgentCore Memory provides two types. Short-term memory captures turn-by-turn interactions within one session, so a follow-up like "what about tomorrow?" makes sense. Long-term memory automatically extracts key insights across sessions, including user preferences, important facts and session summaries.

Gateway. Most enterprise agents are only as useful as the internal systems they can reach. Gateway takes an OpenAPI specification, a Smithy model or a Lambda function and exposes it as an MCP-compatible tool behind one endpoint. It can also connect to MCP servers you already have. It handles inbound authentication (who may call this tool) and outbound authentication (what credentials the tool call uses), and it offers semantic search so an agent can pick from a large tool set without loading every description into its prompt. See MCP servers, tools and transports explained.

Policy works with Gateway. It intercepts each tool call before it runs and checks it against rules that you write in natural language or in a policy language compatible with Cedar, AWS's open-source policy language.

Identity. AgentCore Identity is an identity and credential service built for agents. Agent identities are implemented as workload identities. For inbound access, it works with identity providers you already have, such as Amazon Cognito, Okta and Microsoft Entra ID, so users authenticate only to the agents they may use. For outbound access, it manages OAuth tokens or API keys so an agent can call services such as Slack or GitHub, either as itself or on behalf of a user.

Where does Strands Agents fit?

Strands Agents is an open-source SDK from AWS for writing the agent itself, available for Python and TypeScript. By default it uses Amazon Bedrock as the model provider, and it supports many others. A tool is a Python function with a decorator and a docstring:

# pip install strands-agents   (Python 3.10 or later)
from strands import Agent, tool

@tool
def order_status(order_id: str) -> str:
    """Return the delivery status for an order ID."""
    # Replace with a call to your order system.
    return f"Order {order_id}: out for delivery"

agent = Agent(tools=[order_status])
agent("Where is order 10482?")

To run this you need AWS credentials and access to the model enabled in the Amazon Bedrock console. The framework decides when to call order_status; you do not write the loop.

What is a sensible first project?

Pick an internal question-answering task that needs one real system, for example "what is the status of this order?" Keep it read-only.

  1. Write the agent locally with Strands and one tool, as above. Confirm it calls the tool when it should and refuses to guess when the tool fails.
  2. Create an AgentCore project. The AgentCore CLI has a template for this:
agentcore create --name OrderHelper --template agent-python-strands
cd OrderHelper
agentcore dev --mode browser

The template creates a Python Runtime and adds an AgentCore Memory resource. The dev command runs it locally and opens an inspector.

  1. Deploy and call it.
agentcore build
agentcore deploy
agentcore invoke --runtime agent --payload '{"prompt":"Where is order 10482?"}'
  1. Move the tool behind Gateway. Expose your order API (or a Lambda function in front of it) as a Gateway target, so the next agent can reuse it and access is controlled in one place.
  2. Read the traces. Open the observability dashboard in the CloudWatch console and follow one session from prompt to tool call to answer.
  3. Only then add write actions, with a Policy rule or a human approval in front of each one. Our guide to permissions, approvals and stop conditions for agents explains the pattern.

Installation steps and prerequisites for the CLI are in the AgentCore getting-started guide linked under Sources.

What are the limits and costs to know about?

  • Many meters. Runtime bills for vCPU-hours and GB-hours metered per second. Gateway bills per 1,000 invocations and for tools indexed. Memory bills for data ingested, stored and retrieved (short-term) and for records stored and retrieval requests (long-term). Observability is billed through CloudWatch. Model usage is billed separately by Amazon Bedrock or your model provider. As of November 2026 the pricing page says Identity carries no charge when used through Runtime or Gateway. See the AgentCore pricing page for current rates.
  • A large surface. Start with Runtime and add one service at a time.
  • Uneven coverage. Some features are narrower than the headline suggests. For example, the documentation says AWS CloudTrail audit logging currently covers certain AgentCore capabilities, namely Gateway and Registry.
  • Long-term memory is model-written. Extraction is done by a model, so review what is being stored before you rely on it.

Common questions

Do I need Strands Agents to use AgentCore?

No. AWS documents support for CrewAI, LangGraph, LlamaIndex, Google ADK, OpenAI Agents SDK and custom frameworks. Strands has the most direct templates and examples.

Can I use AgentCore Gateway without AgentCore Runtime?

Yes. AWS says the services work together or independently. Gateway gives you an MCP endpoint that any MCP-compatible agent can call, wherever that agent runs.

Does an AgentCore agent have to use a Bedrock model?

No. The documentation says Runtime works with any foundation model in or outside Amazon Bedrock.

What is the difference between Runtime and Harness?

With Runtime you bring agent code and AWS hosts it. With Harness you bring only configuration (model, system prompt, tools) and AWS runs the agent loop as well. Harness is quicker to start; Runtime gives you control over the logic.

Free download: The cloud AI agents field guide

How AWS, Azure and Google Cloud build and run enterprise agents, side by side: Bedrock AgentCore, Microsoft Foundry, Google's ADK and Agent Platform, and the A2A protocol. See what’s inside.