awslabs/agentcore-samples

★ 3,387⑂ 1,331

Amazon Bedrock Agentcore accelerates AI agents into production with the scale, reliability, and security, critical to real-world deployment.

About awslabs/agentcore-samples

awslabs/agentcore-samples is an open-source project on GitHub, mainly written in Python. Amazon Bedrock Agentcore accelerates AI agents into production with the scale, reliability, and security, critical to real-world deployment. It currently holds 3,387 stars and 1,331 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Agent Memory board.

GitHub Repository Details

Repository awslabs/agentcore-samples · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

https://github.com/awslabs/agentcore-samples/blob/HEAD/image

Amazon Bedrock AgentCore Samples

Deploy and operate AI agents securely at scale - using any framework and model

https://github.com/awslabs/agentcore-samples/blob/HEAD/GitHub commit activity https://github.com/awslabs/agentcore-samples/blob/HEAD/GitHub open issues https://github.com/awslabs/agentcore-samples/blob/HEAD/GitHub open pull requests https://github.com/awslabs/agentcore-samples/blob/HEAD/License

DocumentationPython SDKAgentCore CLIDiscord

Welcome to the Amazon Bedrock AgentCore Samples repository!

Amazon Bedrock AgentCore is both framework-agnostic and model-agnostic, giving you the flexibility to deploy and operate advanced AI agents securely and at scale. Whether you’re building with Strands Agents, CrewAI, LangGraph, LlamaIndex, or any other framework—and running them on any Large Language Model (LLM)—Amazon Bedrock AgentCore provides the infrastructure to support them. By eliminating the undifferentiated heavy lifting of building and managing specialized agent infrastructure, Amazon Bedrock AgentCore lets you bring your preferred framework and model, and deploy without rewriting code.

This collection provides examples and tutorials to help you understand, implement, and integrate Amazon Bedrock AgentCore capabilities into your applications.

Migrating from the Starter Toolkit? This repository is transitioning from the Bedrock AgentCore Starter Toolkit to the new AgentCore CLI. Samples that still depend on the Starter Toolkit are in legacy/ and will be updated over the coming weeks. See MIGRATION.md for the full old-path to new-path mapping.

🎥 Video

Build your first production-ready AI agent with Amazon Bedrock AgentCore. We’ll take you beyond prototyping and show you how to productionize your first agentic AI application using Amazon Bedrock AgentCore.

📁 Repository Structure

🚀 getting-started/

Your First Agent in Minutes

Get up and running with the AgentCore CLI — the fastest way to create, develop, and deploy agents on Amazon Bedrock AgentCore.

🧩 features/

AgentCore Capabilities Deep Dives

Focused examples for individual AgentCore capabilities:

💡 end-to-end/

Complete Applications

Production-ready use cases that combine multiple AgentCore capabilities to solve real business problems. Each includes deployment instructions, architecture diagrams, and testing guides.

🔌 integrations/

Connect AgentCore to Your Stack

🏗️ infrastructure-as-code/

Deployment Automation

Production-ready templates for provisioning AgentCore resources with CloudFormation, AWS CDK, or Terraform.

🚀 blueprints/

Full-Stack Reference Applications

Complete, deployment-ready agentic applications with integrated services, authentication, and business logic you can customize for your use case.

📦 workshops/ - Deprecated legacy code

⚠️ Recommendation: The Starter Toolkit CLI is no longer supported. Please use the AgentCore CLI.

The AgentCore CLI (@aws/agentcore) is now the recommended way to create, develop, and deploy AI agents on Amazon Bedrock AgentCore. It supports a broader set of frameworks (Strands, LangGraph, LangChain, Google ADK, OpenAI Agents, and BYO), provides local development with hot reload, built-in evaluations, gateway management, and more.

For new projects, install the AgentCore CLI:

npm install -g @aws/agentcore Already installed this toolkit? Once you've migrated, uninstall it:

pip uninstall bedrock-agentcore-starter-toolkit

Starter Toolkit Samples (Migration complete)

Please refer to this folder for Diving Deep with AgentCore Workshop/

Quick Start with the AgentCore CLI

The AgentCore CLI is the recommended way to create, develop, and deploy agents on Amazon Bedrock AgentCore. It replaces the previous Starter Toolkit with a streamlined project-based workflow.

Step 1: Prerequisites

Step 2: Install the CLI and Create a Project

# Install the AgentCore CLI
npm install -g @aws/agentcore

Create a new project (interactive wizard)

agentcore create cd my-agent

The create wizard scaffolds a ready-to-run project with your choice of framework (Strands Agents, LangGraph, Google ADK, OpenAI, and more) and language (Python or TypeScript).

Step 3: Develop Locally

# Start the local development server
agentcore dev

Your agent is now running locally. The CLI watches for file changes and provides a local invocation endpoint for testing.

Step 4: Deploy to AWS

# Deploy to Amazon Bedrock AgentCore
agentcore deploy

Test your deployed agent

agentcore invoke

Add More Capabilities

agentcore add memory           # Add managed memory
agentcore add identity         # Add identity provider
agentcore add evaluator        # Add LLM-as-a-Judge evaluation
agentcore add online-eval      # Enable continuous evaluation
agentcore deploy               # Sync changes to AWS

Congratulations! Your agent is now running on Amazon Bedrock AgentCore runtime.

For the full CLI reference, see the AgentCore CLI documentation.

Running a Notebook

Some samples in this repository are provided as Jupyter notebooks:

1. Create and activate a virtual environment

python -m venv .venv
source .venv/bin/activate

2. Install dependencies

pip install -r requirements.txt

3. Export/Activate required AWS Credentials for the notebook to run

4. Register your virtual environment as a kernel for Jupyter notebook to use

python -m ipykernel install --user --name=notebook-venv --display-name="Python (notebook-venv)"

You can list your kernels using:

jupyter kernelspec list

5. Run the notebook and ensure the correct kernel is selected

jupyter notebook path/to/your/notebook.ipynb

Important: After opening the notebook in Jupyter, make sure to select the correct kernel by going to KernelChange kernel → select "Python (notebook-venv)" to ensure your virtual environment packages are available.

🔗 Related Links

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details on:

📄 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Contributors

GitHub Stars & Activity

3,387Stars
1,331Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars3,387
Forks1,331
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

666ghj / MiroFish

Python★ 74,064⑂ 0
2

mem0ai / mem0

Python★ 65,695⑂ 0
3

bojieli / ai-agent-book

Python★ 48,844⑂ 0
4

volcengine / OpenViking

Python★ 38,148⑂ 0
5

topoteretes / cognee

Python★ 30,855⑂ 0
6

MemoriLabs / Memori

Python★ 16,849⑂ 0
7

NevaMind-AI / memU

Python★ 14,418⑂ 0
8

semantica-agi / semantica

Python★ 13,301⑂ 0

More AI Rankings