CLOUD SERVICE · AWS

Amazon Bedrock AgentCore - Amazon Bedrock AgentCore is a set of managed AWS services for deploying, securing, and operating AI agents and their supporting tools.

Amazon Bedrock AgentCore provides infrastructure for agent execution, memory, tool access, identity, browser automation, code execution, and observability. Its components can be used independently or together with different agent frameworks and foundation models, including models accessed through Amazon Bedrock.

Cloud Services Hub →

What is Amazon Bedrock AgentCore

Read the extensive description

Amazon Bedrock AgentCore provides managed infrastructure for moving AI agents from application development into production. It addresses execution, state, authentication, tool connectivity, and operational visibility without requiring every application team to build those capabilities separately. AgentCore is not a foundation model or an agent reasoning framework; application code still defines the agent's instructions, model selection, orchestration, and permitted actions.

AgentCore Runtime hosts agent applications in isolated execution environments and manages the underlying execution infrastructure. Developers package their agent code with its dependencies, configure an execution role and authentication, and invoke the deployed agent through its endpoint. Runtime supports interactive and longer-running agent workloads. Keep session identifiers consistent when continuing an interaction, and distinguish runtime session state from durable application records.

AgentCore Memory stores interaction events and can derive longer-term information, such as user preferences or summaries, using configured memory strategies. Applications explicitly write events and retrieve relevant memories during agent execution. Design actor identifiers, session identifiers, retention settings, and access controls before storing production conversations. Memory retrieval can improve continuity, but it does not replace an authoritative transactional database or eliminate the need to validate retrieved information.

AgentCore Gateway makes tools available to agents through the Model Context Protocol, or MCP. It can expose supported targets, including AWS Lambda functions and APIs described by supported schemas, through a consistent tool interface. Gateway reduces the amount of custom adapter code an agent needs, but tool implementations remain responsible for input validation, authorization, transaction handling, and safe error reporting.

AgentCore Identity supports authentication and credential handling for agents accessing AWS resources and external services. Separate the identity of the caller, the permissions of the agent workload, and credentials used for downstream systems. Use narrowly scoped permissions and avoid placing access tokens or secrets in prompts, tool descriptions, or conversation history.

AgentCore Browser and Code Interpreter provide managed environments for browser automation and code execution. Browser is useful when a workflow requires interacting with a website rather than a supported API. Code Interpreter supports tasks such as calculations and data transformation. Treat web pages, downloaded files, and generated code as untrusted inputs, and restrict sensitive data exposure and consequential actions.

AgentCore Observability integrates operational telemetry with Amazon CloudWatch. Instrument model calls, tool invocations, and application operations so engineers can investigate latency, errors, and unexpected execution paths. Before production deployment, verify component availability in the target Region, review quotas, configure logging and retention, and test failure handling. Apply timeouts, retry limits, approval gates, and idempotency controls wherever agents can change external systems.

Key Amazon Bedrock AgentCore Features

Managed agent runtime

Deploy agent code and dependencies to AgentCore Runtime rather than managing an agent-serving fleet. Configure workload permissions, authentication, and session handling to match the application's execution requirements.

Short-term and long-term memory

Store interaction events and use configured strategies to extract longer-term information for subsequent conversations. Use stable actor and session identifiers, and retrieve only the memories relevant to the current request.

MCP-based tool gateway

Expose supported APIs and Lambda functions as tools through AgentCore Gateway. This provides a consistent tool interface while leaving business validation and resource-level authorization in the underlying implementation.

Agent identity and downstream access

Use AgentCore Identity to manage agent identities and access to downstream services, including supported OAuth and API-key authentication flows. Keep user authorization distinct from the agent workload's own permissions.

Managed browser automation

Run browser interactions in managed sessions for tasks that require navigating web applications. Add explicit checks before submitting forms, publishing content, or taking other actions with external effects.

Isolated code execution

Use Code Interpreter to execute code for calculations, analysis, and file-processing tasks without running generated code inside the agent application's process. Validate inputs and outputs and apply appropriate controls to sensitive files.

Operational observability

Use AgentCore Observability and Amazon CloudWatch to investigate agent execution, model calls, and tool activity. Add application instrumentation and correlation identifiers to connect failures across the agent and its downstream dependencies.

Framework and model flexibility

Use AgentCore infrastructure with different agent frameworks and model providers. Model invocation, orchestration logic, and tool-selection policies remain application design choices rather than being prescribed by the runtime.

Amazon Bedrock AgentCore Use Cases

Enterprise service assistants

Deploy an assistant that answers internal questions and invokes approved business tools. Combine Runtime, Gateway, and downstream authorization so actions such as opening a support ticket use narrowly scoped permissions.

Personalized customer support

Use Memory to retain relevant preferences and conversation context across support sessions. Keep account records in authoritative systems and verify the customer's identity before retrieving or changing account-specific information.

Data analysis agents

Use Code Interpreter to calculate metrics, transform supplied datasets, or generate analytical outputs. Store source data and results separately from conversation memory, and validate important calculations before using them in business decisions.

Web application automation

Use Browser for workflows involving applications without suitable APIs, such as collecting information from an internal portal. Handle authentication explicitly and require approval before irreversible submissions.

Multi-tool operational workflows

Expose operational APIs through Gateway so an agent can inspect incidents, retrieve diagnostics, and propose remediation. Keep destructive operations behind explicit authorization or human approval, and make retryable actions idempotent.

Amazon Bedrock AgentCore pricing models

Associated AWS service charges

Budget separately for foundation model inference and services used by the application, such as Lambda, Amazon S3, and CloudWatch. Logging, tracing, data transfer, and external API charges can contribute materially to total workflow cost.

Browser and code execution

Browser and Code Interpreter are metered separately according to their execution resource usage. Control session duration and terminate sessions when work finishes to avoid unnecessary consumption.

Gateway and identity usage

Gateway and Identity have component-specific usage pricing. Estimate tool discovery and invocation traffic, authentication activity, and credential-access patterns, and review any pricing exceptions for use with other AgentCore components.

Memory usage

AgentCore Memory charges depend on the memory operations used, such as storing short-term events and extracting or retrieving long-term memory. Estimate costs from conversation volume, configured extraction strategies, and retrieval frequency.

Runtime compute consumption

AgentCore Runtime uses consumption-based pricing for compute resources, including CPU and memory. CPU charging distinguishes active processing from supported waiting periods, while memory consumption depends on allocation and duration; consult current pricing for precise metering rules.

Services Amazon Bedrock AgentCore integrates with

<p>A common architecture places an application frontend in front of an AgentCore Runtime endpoint, with Amazon Cognito providing user authentication when JWT-based access is configured. The runtime invokes Amazon Bedrock for model inference and uses AgentCore Gateway to discover and call approved tools. Lambda-backed tools encapsulate business operations, validate arguments, and enforce resource-level authorization before accessing internal systems.</p><p>Use Amazon S3 for durable documents and generated artifacts, while AgentCore Memory holds conversation events and selected longer-term context. Keep these responsibilities separate: a remembered customer preference is not an authoritative account record, and a runtime session is not durable workflow storage. Pass controlled object references where possible instead of repeatedly placing large files into prompts.</p><p>Send operational telemetry to CloudWatch and correlate runtime requests with model calls and downstream tool activity. Apply least-privilege IAM permissions to each execution path, configure supported downstream authentication through AgentCore Identity where appropriate, and use approval gates for consequential actions. Design tools for retries and partial failures so a repeated agent request does not duplicate a business transaction.</p>

Amazon CloudWatch image Amazon CloudWatch

AgentCore Observability uses CloudWatch capabilities to help operators inspect agent telemetry. For example, correlate a slow response with model latency, tool execution time, and application errors using emitted traces and logs. Configure instrumentation, retention, alarms, and access controls, and prevent credentials or sensitive conversation content from being logged unnecessarily.

Open Amazon CloudWatch →
Amazon Cognito image Amazon Cognito

Amazon Cognito can provide OAuth access tokens for JWT-authenticated access to AgentCore endpoints configured with the appropriate issuer and client settings. For example, a signed-in web application can obtain a token and invoke an agent on behalf of its user. Endpoint authentication does not automatically authorize access to every downstream record, so enforce tenant and resource permissions separately.

Open Amazon Cognito →
AWS Lambda image AWS Lambda

AgentCore Gateway can expose Lambda-backed functionality as MCP tools. For example, a function can validate a customer identifier and retrieve an order status from an internal system. Configure the required invocation permissions and enforce business authorization inside the tool rather than trusting model-generated arguments.

Open AWS Lambda →
Amazon Simple Storage Service image Amazon S3

Agent application code can use Amazon S3 for input documents, datasets, and generated artifacts through AWS SDK calls. For example, an analysis agent can read an approved CSV object and write a report to a separate output prefix. Scope the execution role to the required objects and use controlled download access rather than embedding unrestricted object links in responses.

Open Amazon S3 →
Amazon Bedrock

Agent applications hosted in AgentCore Runtime can invoke foundation models through Amazon Bedrock using AWS SDKs or supported framework integrations. For example, an agent can use a Bedrock model to decide which Gateway tool to call, then summarize the tool's response. Grant the runtime execution role only the required model invocation permissions and account for model inference charges separately.

Open Amazon Bedrock →