Amazon Bedrock AgentCore Samples: Deploy AI Agents
Amazon Bedrock AgentCore Samples is AWS's official example repository for Amazon Bedrock AgentCore, the framework-agnostic runtime AWS built for deploying AI agents to production. Reach for it if you already use Strands Agents, CrewAI, LangGraph, or LlamaIndex and want AWS-run runtime, memory, identity, and observability without rewriting code. Skip it if you're not on AWS โ every sample assumes a Bedrock-enabled AWS account.
What are Amazon Bedrock AgentCore Samples?
Amazon Bedrock AgentCore Samples is the official AWS Labs examples repository for Amazon Bedrock AgentCore, a service for running AI agents in production no matter which framework or model built them. The README describes AgentCore as framework-agnostic and model-agnostic, working with Strands Agents, CrewAI, LangGraph, LlamaIndex, or any other framework on any LLM. This repo is the tutorials and code, not the AgentCore service itself.
Exploring AgentCore Capabilities
- โRuntime samples show AgentCore's serverless runtime for deploying agents and tools at scale, described in the README as secure and serverless.
- โGateway samples cover converting APIs, Lambda functions, and services into MCP-compatible tools.
- โIdentity samples illustrate how agents' identities and their access are managed across AWS and third-party apps.
- โMemory samples wire up AgentCore's managed memory infrastructure for personalized agent experiences.
- โTools samples cover the built-in Code Interpreter, Browser Tool, and Web Search Tool.
- โObservability samples trace, debug, and monitor agent performance with OpenTelemetry, per the README.
- โEvaluation samples employ evaluators, which can be either built-in or custom, to handle both on-demand and online evaluation.
- โPolicy samples apply fine-grained access control with Cedar policies.
Production-Ready Agent Applications
- โขBuilding complete, production-ready applications that combine multiple AgentCore capabilities, per the end-to-end/ samples, each with deployment instructions, architecture diagrams, and testing guides.
- โขStanding up a full-stack agentic application from the blueprints/ folder โ deployment-ready apps with authentication and business logic you customize for your own use case.
- โขConnecting an existing agent to identity providers like Okta, Entra, or Cognito, or to observability platforms like Grafana, Datadog, or Dynatrace, via the integrations/ folder.
- โขProvisioning AgentCore resources with CloudFormation, AWS CDK, or Terraform templates from infrastructure-as-code/.
- โขMigrating an existing agent built on the Bedrock AgentCore Starter Toolkit onto the new AgentCore CLI workflow, using the mapping in MIGRATION.md.
Quick Start with AgentCore CLI
The README's Quick Start walks through the AgentCore CLI. Prerequisites: an AWS account with credentials configured via `aws configure`, Node.js 20.x or later, `uv` for Python agents (or just Node.js for TypeScript agents), Anthropic Claude 4.0 model access enabled in the Bedrock console, and the BedrockAgentCoreFullAccess and AmazonBedrockFullAccess managed policies attached to your AWS user. Install the CLI with `npm install -g @aws/agentcore`, then run `agentcore create` โ an interactive wizard that scaffolds a project in your choice of framework (Strands Agents, LangGraph, Google ADK, OpenAI, and more) and language (Python or TypeScript). `cd` into the generated project and you're ready to develop.
Developing and Deploying Agents
Inside the generated project, `agentcore dev` starts a local development server that watches file changes and exposes a local invocation endpoint for testing your agent before it touches AWS. When it's ready, `agentcore deploy` ships it to Amazon Bedrock AgentCore, and `agentcore invoke` calls the deployed agent to confirm it's live. Capabilities are added incrementally rather than baked in upfront: `agentcore add memory`, `agentcore add identity`, `agentcore add evaluator`, and `agentcore add online-eval` each wire in one more AgentCore feature, and a follow-up `agentcore deploy` syncs the change to AWS. Some samples in the repo ship as Jupyter notebooks instead of CLI projects โ those need a virtualenv, `pip install -r requirements.txt`, exported AWS credentials, and the venv registered as a Jupyter kernel before you open the notebook.
Framework-Agnostic Agent Development
Frequently Asked Questions
Amazon Bedrock AgentCore is AWS's framework-agnostic and model-agnostic service for deploying and operating AI agents securely at scale, per its own README. It provides the runtime, gateway, identity, memory, and observability infrastructure so agents built with Strands Agents, CrewAI, LangGraph, LlamaIndex, or any other framework can go to production without rewriting their code.
The README names Strands Agents, CrewAI, LangGraph, and LlamaIndex explicitly, plus any other framework running on any LLM. The AgentCore CLI's `agentcore create` wizard also offers Strands Agents, LangGraph, Google ADK, and OpenAI as scaffolding choices for new projects.
The repository is transitioning from the older Bedrock AgentCore Starter Toolkit to the new AgentCore CLI. Samples still built on the Starter Toolkit live in the legacy/ folder and will be updated over time, and MIGRATION.md documents the full old-path-to-new-path mapping.
Amazon Bedrock AgentCore Samples is licensed under the Apache License 2.0, as stated in the repository's LICENSE file.
The README points contributors to CONTRIBUTING.md, which covers adding new samples, improving existing examples, reporting issues, and suggesting enhancements to Amazon Bedrock AgentCore Samples.
Amazon Bedrock AgentCore Samples doesn't state pricing itself โ the README's Related Links section points to AWS's own Amazon Bedrock AgentCore pricing page for current rates.
Strengths
- โWorks with the framework you already picked โ the README names Strands Agents, CrewAI, LangGraph, and LlamaIndex explicitly, plus any other framework on any LLM, so adopting AgentCore doesn't mean a rewrite.
- โThe repo is organized by what you're trying to do, not just by framework: getting-started for a first agent, features/ for one capability at a time (Runtime, Gateway, Identity, Memory, Tools, Observability, Evaluation, Policy), end-to-end/ for full applications.
- โInfrastructure-as-code templates ship for all three major provisioning tools โ CloudFormation, AWS CDK, and Terraform โ instead of forcing one.
- โIntegrations are pre-wired for identity providers (Okta, Entra, Cognito) and observability platforms (Grafana, Datadog, Dynatrace) rather than left as an exercise.
- โApache-2.0 licensed, and the CLI's `agentcore add` commands let you layer in memory, identity, or evaluation incrementally instead of committing to everything upfront.
Limitations & risks
- โณThis is a samples repo, not the AgentCore service โ there's no installable package here beyond the separate `@aws/agentcore` CLI; you're reading code and tutorials, not shipping this repo itself.
- โณEvery sample assumes an AWS account, Bedrock model access (the README specifies Anthropic Claude 4.0 enabled), and two AWS managed policies attached to your credentials โ there's no local-only or vendor-neutral path through the Quick Start.
- โณThe repo is mid-migration: samples still tied to the old Bedrock AgentCore Starter Toolkit sit in legacy/ and, per the README, will be updated over the coming weeks โ no fixed date for when that finishes.
- โณThe README defers to the separate AgentCore CLI repository (aws/agentcore-cli) for the full CLI reference, so this repo alone doesn't document every command flag.
- โณPricing isn't documented here at all โ you have to leave this repo and read AWS's own AgentCore pricing page to know what running a sample actually costs.
The problem it solves
Building an agent with LangGraph or CrewAI is the easy part; running it in production โ with a sandboxed runtime, a way to expose your APIs as tools, per-user identity, durable memory, and traces you can actually debug โ usually means each team bolts together its own AWS-specific plumbing by hand. The README frames Amazon Bedrock AgentCore itself as removing exactly that repetitive infrastructure work, and this samples repo is the framework-by-framework proof that the plumbing works without forcing a rewrite.
Who should try it โ and who should skip
Try Amazon Bedrock AgentCore Samples if you're already building agents with Strands Agents, CrewAI, LangGraph, or LlamaIndex and want a managed runtime, memory, identity, and observability path onto AWS without a rewrite โ the getting-started/ and features/ folders are built for exactly that. Skip it if you're not on AWS or don't have Bedrock model access, since every sample in the Quick Start assumes an AWS account, `aws configure`, and two managed IAM policies before you write a line of agent code.
Related repositories
Is agentcore-samples worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of agentcore-samples.
