agentcore-samples

(★ 3,306)

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

File Explorer

Showing a partial file list — download the zip above to see everything.

  • .checkov.yaml
  • .gitignore
  • .secrets.baseline

# Installation Guide

node / python
Prerequisites

Setup Steps

npm install -g @aws/agentcore

Install the AgentCore CLI globally.

agentcore create

Create a new agent project using the interactive wizard.

agentcore dev

Start the local development server and enable hot reload.

agentcore deploy

Deploy the agent to the Amazon Bedrock AgentCore runtime.

agentcore invoke

Invoke and test the deployed agent.

Video Guides

Build your first production-ready AI agent with Amazon Bedrock AgentCore

Key Commands

npm install -g @aws/agentcore

Install the AgentCore CLI tool globally.

agentcore create

Run the wizard to initialize a new agent project.

agentcore dev

Run the agent locally and provide a testing endpoint.

agentcore deploy

Build and deploy the agent code to AWS infrastructure.

agentcore invoke

Invoke the agent deployed in the cloud remotely.

agentcore add memory

Add managed memory capability to the agent.

AWS account credentials (aws configure) and Bedrock model access permissions must be configured beforehand.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Showing a partial file list.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

aws configure

View Details ▼

Manage configuration for the AWS CLI.

aws configure

Configure AWS CLI interactively (creates a new configuration or updates the default):

aws configure --profile {{profile_name}}

Configure a named profile for AWS CLI interactively (creates a new profile or updates an existing one):

aws configure get {{name}}

Display the value from a specific configuration variable:

🔍

jupyter

View Details ▼

Web application to create and share documents that contain code, visualizations, and notes.
Primarily used for data analysis, scientific computing, and machine learning.

jupyter notebook

Start a Jupyter notebook server in the current directory:

jupyter notebook {{path/to/file}}.ipynb

Open a specific Jupyter notebook:

jupyter nbconvert --to {{html|markdown|pdf|script|...}} {{path/to/file}}.ipynb

Export a specific Jupyter notebook into another format:

🔍

npm install

View Details ▼

Install Node packages.

npm {{[i|install]}}

Install dependencies listed in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}

Download the latest version of a package and add it to the list of dev dependencies in `package.json`:

🔍

pip install

View Details ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

🔍

python

View Details ▼

Python language interpreter.

python

Start a REPL (interactive shell):

python {{path/to/file.py}}

Execute a specific Python file:

python -i {{path/to/file.py}}

Execute a specific Python file and start a REPL:

// repository documentation