New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@aws/agentcore

Package Overview
Dependencies
Maintainers
20
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws/agentcore

CLI for Amazon Bedrock AgentCore

latest
Source
npmnpm
Version
0.6.0
Version published
Weekly downloads
1.3K
152.4%
Maintainers
20
Weekly downloads
 
Created
Source

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)

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:

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
npm install -g @aws/agentcore

Quick Start

Use the terminal UI to walk through all commands interactively, or run each command individually:

# 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

FrameworkNotes
Strands AgentsAWS-native, streaming support
LangChain/LangGraphGraph-based workflows
Google ADKGemini models only
OpenAI AgentsOpenAI models only

Supported Model Providers

ProviderAPI Key RequiredDefault Model
Amazon BedrockNo (uses AWS credentials)claude-sonnet-4-5-20250929-v1
AnthropicYesclaude-sonnet-4-5-20250929
Google GeminiYesgemini-2.5-flash
OpenAIYesgpt-4o

Commands

Project Lifecycle

CommandDescription
createCreate a new AgentCore project
devStart local development server
deployDeploy infrastructure to AWS
invokeInvoke deployed agents

Resource Management

CommandDescription
addAdd agents, memory, identity, evaluators, targets
removeRemove resources from project

Note: Run agentcore deploy after add or remove to update resources in AWS.

Evaluations

CommandDescription
add evaluatorAdd a custom LLM-as-a-Judge evaluator
add online-evalAdd continuous evaluation for live traffic
run evalRun on-demand evaluation against agent traces
evals historyView past eval run results
pause online-evalPause a deployed online eval config
resume online-evalResume a paused online eval config

Project Structure

my-project/
├── agentcore/
│   ├── .env.local          # API keys (gitignored)
│   ├── agentcore.json      # Resource specifications
│   ├── aws-targets.json    # Deployment targets
│   └── cdk/                # CDK infrastructure
├── app/                    # Application code

App Structure

├── app/                    # Application code
│   └── <AgentName>/        # Agent directory
│       ├── main.py         # Agent entry point
│       ├── pyproject.toml  # Python dependencies
│       └── model/          # Model configuration

Configuration

Projects use JSON schema files in the agentcore/ directory:

  • agentcore.json - Agent specifications, memory, identity, evaluators, online evals
  • deployed-state.json - Runtime state in agentcore/.cli/ (auto-managed)
  • aws-targets.json - Deployment targets (account, region)

Capabilities

  • Runtime - Managed execution environment for deployed agents
  • Memory - Semantic, summarization, and user preference strategies
  • Identity - Secure API key management via Secrets Manager
  • Evaluations - LLM-as-a-Judge for on-demand and continuous agent quality monitoring

Documentation

Feedback & Issues

Found a bug or have a feature request? Open an issue on GitHub.

Security

See SECURITY for reporting vulnerabilities and security information.

License

This project is licensed under the Apache-2.0 License.

Keywords

aws

FAQs

Package last updated on 02 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts