AgentCore CLI
Create, develop, and deploy AI agents to Amazon Bedrock AgentCore
## Overview
Amazon Bedrock AgentCore enables you to deploy and operate AI agents securely at scale using any framework and model.
AgentCore provides tools and capabilities to make agents more effective, purpose-built infrastructure to securely scale
agents, and controls to operate trustworthy agents. This CLI helps you create, develop locally, and deploy agents to
AgentCore with minimal configuration.
## 🚀 Jump Into AgentCore
- **Node.js** 20.x or later
- **uv** for Python agents ([install](https://docs.astral.sh/uv/getting-started/installation/))
## Installation
> **Upgrading from the Bedrock AgentCore Starter Toolkit?** If the old Python CLI is still installed, you'll see a
> warning after install asking you to uninstall it. Both CLIs use the `agentcore` command name, so having both can cause
> confusion. Uninstall the old one using whichever tool you originally used:
>
> ```bash
> pip uninstall bedrock-agentcore-starter-toolkit # if installed via pip
> pipx uninstall bedrock-agentcore-starter-toolkit # if installed via pipx
> uv tool uninstall bedrock-agentcore-starter-toolkit # if installed via uv
> ```
```bash
npm install -g @aws/agentcore
```
## Quick Start
Use the terminal UI to walk through all commands interactively, or run each command individually:
```bash
# Launch terminal UI
agentcore
# Create a new project (wizard guides you through agent setup)
agentcore create
cd my-project
# Test locally
agentcore dev
# Deploy to AWS
agentcore deploy
# Test deployed agent
agentcore invoke
```
## Supported Frameworks
| Framework | Notes |
| ---------------------- | --------------------------------------------------------------------------- |
| Strands Agents | AWS-native, streaming support (Python + TypeScript) |
| LangChain/LangGraph | Graph-based workflows |
| Google ADK | Gemini models only |
| OpenAI Agents | OpenAI models only |
| Bedrock Managed Agents | Runtime environment for Bedrock Managed Agents sessions (Python, Container) |
## Supported Model Providers
| Provider | API Key Required | Default Model |
| -------------- | ------------------------- | -------------------------------------------- |
| Amazon Bedrock | No (uses AWS credentials) | us.anthropic.claude-sonnet-4-5-20250514-v1:0 |
| Anthropic | Yes | claude-sonnet-4-5-20250514 |
| Google Gemini | Yes | gemini-2.5-flash |
| OpenAI | Yes | gpt-4.1 |
## Commands
### Project Lifecycle
| Command | Description |
| -------- | ------------------------------ |
| `create` | Create a new AgentCore project |
| `dev` | Start local development server |
| `deploy` | Deploy infrastructure to AWS |
| `invoke` | Invoke deployed agents |
### Resource Management
| Command | Description |
| -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `add` | Add harnesses, agents, memory, credentials, gateways and gateway-targets, evaluators, online evals, online insights, knowledge bases, config bundles, datasets, policy engines and policies, payment managers and payment connectors, capacity providers, runtime endpoints |
| `remove` | Remove any of the above resources from the project |
> **Note**: Run `agentcore deploy` after `add` or `remove` to update resources in AWS.
### Harness
A harness bundles a runtime, model, tools, skills, memory, and observability into one declarative config. Use it when
you want infra without writing agent code.
| Command | Description |
| ---------------- | --------------------------------------------------------------------------- |
| `add harness` | Add a harness resource (runtime + model + memory) |
| `add tool` | Add a tool to a harness (`--harness