By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
When you start building AI agents, you face a scatter of decisions: which framework, which model, how to handle tool calls safely, where to store memory, how to know if your agent is working. AgentCore is Amazon's answer—a set of modular services that handle the infrastructure so you can focus on agent logic. This lesson maps out what each service does and how they fit together.
AgentCore is a collection of independent services you can use together or pick and choose. You're not locked into a specific framework or model. Whether you're using LangGraph, CrewAI, LlamaIndex, Strands Agents, OpenAI Agents SDK, Google ADK, or plain Python, and whether you're calling Claude, Nova, GPT, Gemini, Llama, Mistral, or something else—AgentCore services will work with your setup.
Think of it this way: your agent is a new employee. AgentCore is the office infrastructure that lets them work safely and effectively. They need a desk (Harness and Runtime), a filing system (Memory and Registry), tools and permissions (Gateway, Code Interpreter, Browser, Payments), security clearance (Identity and Policy), and feedback on their performance (Observability, Evaluations, Optimization).
| Service | Office Analogy | One-line Summary |
|---|---|---|
| Harness | Ready-made employee | Managed agent loop — define model + prompt + tools, call one API |
| Runtime | Private office room | Serverless hosting; each session gets its own isolated microVM |
| Memory | Notebook | Short-term events + long-term facts/preferences across sessions |
| Gateway | Tool cabinet | Turns APIs, Lambdas and MCP servers into one MCP endpoint |
| Identity | ID badge + key vault | Workload identities, inbound/outbound auth, token vault |
| Code Interpreter | Safe calculator room | Sandboxed Python / JS / TS execution with session state |
| Browser | Computer with web browser | Managed cloud Chrome your agent can drive, with live view |
| Policy | Security guard + rulebook | Cedar rules checked on every tool call at the Gateway |
| Observability | CCTV for every step | Traces, metrics, logs via OpenTelemetry and CloudWatch |
| Evaluations | Performance reviews | Automated LLM-as-judge scoring of sessions and spans |
| Optimization | Coach that suggests fixes | AI suggestions, versioned configs, A/B traffic tests |
| Registry | Company app store | Central catalog of agents, MCP servers, tools and skills |
| Payments | Company card with a limit | Micro-payments for agents with spend limits and x402 protocol |
Harness is your managed agent loop. You define the model, prompt, and tools, then call one API. Runtime gives each user session its own isolated microVM, so sessions don't interfere with each other.
Memory splits into short-term (events within a session) and long-term (facts, preferences, summaries, episodes across sessions). Gateway converts APIs, Lambda functions, and MCP servers into a single MCP tool endpoint. Code Interpreter runs Python, JavaScript, or TypeScript in a sandbox. Browser gives you a managed cloud Chrome instance your agent can control, with live view and recordings. Payments handles micro-payments for agents using the x402 / Machine Payments Protocol, with spend limits you control.
Identity handles workload identities and authentication: who calls the agent (inbound) and what the agent can access (outbound), plus a token vault. Policy enforces deterministic Cedar rules on every tool call at the Gateway. Observability streams traces, metrics, and logs via OpenTelemetry and CloudWatch. Evaluations automates scoring of sessions, traces, and spans using LLM-as-a-judge. Optimization generates AI-driven improvement suggestions, versions your configs, and runs A/B tests.
Registry is a central catalog of agents, MCP servers, tools, and skills you can reference and reuse.
Amazon Bedrock is the model layer—you call foundation models through it. Amazon Bedrock Agents is a low-code, managed way to build an agent quickly. AgentCore is a code-first platform for running any agent, built with any framework, in production. They're different tools for different jobs.
Pricing is consumption-based with no upfront commitments or minimum fees. Always check the AgentCore pricing page for current numbers.
The official docs at https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/what-is-bedrock-agentcore.html are your source of truth for current capabilities and pricing.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.