bedrock-agentcore 1.27.0


pip install bedrock-agentcore

  Latest version

Released: Nov 20, 2026


Meta
Author: AWS
Requires Python: >=3.10

Classifiers

Development Status
  • 3 - Alpha

Intended Audience
  • Developers

License
  • OSI Approved :: Apache Software License

Operating System
  • OS Independent

Programming Language
  • Python :: 3
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

Topic
  • Scientific/Engineering :: Artificial Intelligence
  • Software Development :: Libraries :: Python Modules

Bedrock AgentCore SDK

Deploy your local AI agent to Bedrock AgentCore with zero infrastructure

GitHub commit activity GitHub open issues GitHub open pull requests License PyPI version Python versions

Documentation ◆ Samples ◆ Discord ◆ Boto3 Python SDK ◆ Runtime Python SDK

Overview

Amazon Bedrock AgentCore enables you to deploy and operate highly effective agents securely, at scale using any framework and model. With Amazon Bedrock AgentCore, developers can accelerate AI agents into production with the scale, reliability, and security, critical to real-world deployment. AgentCore provides tools and capabilities to make agents more effective and capable, purpose-built infrastructure to securely scale agents, and controls to operate trustworthy agents. Amazon Bedrock AgentCore services are composable and work with popular open-source frameworks and any model, so you don’t have to choose between open-source flexibility and enterprise-grade security and reliability.

🚀 From Local Development to Bedrock AgentCore

from bedrock_agentcore import BedrockAgentCoreApp
app = BedrockAgentCoreApp()

from strands import Agent # or bring your agent.

@app.entrypoint
async def handler(request):
    prompt = request.get("prompt")
    if not isinstance(prompt, str):
        raise ValueError("prompt must be a string")

    agent = Agent()

    async for event in agent.stream_async(prompt):
        yield (event)

app.run()

Validate agent input before forwarding it to an agent framework. Keep prompts typed as strings and pass only prompt text to the agent.

What you get with Bedrock AgentCore:

  • ✅ Keep your agent logic - Works with Strands, LangGraph, CrewAI, Autogen, or custom frameworks
  • ✅ Zero infrastructure management - No servers, containers, or scaling concerns
  • ✅ Enterprise-grade platform - Built-in auth, memory, observability, security
  • ✅ Production-ready deployment - Reliable, scalable, compliant hosting

Amazon Bedrock AgentCore services

  • 🚀 Runtime - Secure and session isolated compute: Get started
  • 🧠 Memory - Persistent knowledge across sessions: Get started
  • 🔗 Gateway - Transform APIs into MCP tools: Get started
  • 💻 Code Interpreter - Secure sandboxed execution: Get started
  • 🌐 Browser - Cloud-based web automation: Get started
  • 📊 Observability - OpenTelemetry tracing: Get started
  • 🔐 Identity - AWS & third-party auth: Get started

AG-UI Protocol Support

Deploy agents using the AG-UI protocol with zero boilerplate. A single entrypoint handler is served over both SSE (POST /invocations) and WebSocket (/ws).

from bedrock_agentcore.runtime import serve_ag_ui

# Framework agent with a .run() method — one line
serve_ag_ui(agui_agent)

Or write a custom agent with the decorator form:

from bedrock_agentcore.runtime import AGUIApp
from ag_ui.core import RunAgentInput, RunStartedEvent, RunFinishedEvent

app = AGUIApp()

@app.entrypoint
async def my_agent(input_data: RunAgentInput):
    yield RunStartedEvent(thread_id=input_data.thread_id, run_id=input_data.run_id)
    # ... your agent logic, yield AG-UI events ...
    yield RunFinishedEvent(thread_id=input_data.thread_id, run_id=input_data.run_id)

app.run()

Install with: pip install "bedrock-agentcore[ag-ui]"

See the AG-UI protocol contract for full details.

🏗️ Deployment

AgentCore CLI (Recommended)

The fastest way to deploy your agent to Bedrock AgentCore. Install via npm:

npm i -g @aws/agentcore

Then create and deploy your agent:

agentcore create --name MyAgent --defaults
cd MyAgent
agentcore deploy

The CLI handles packaging, infrastructure provisioning, and deployment automatically. See the AgentCore CLI documentation for full details.

AWS CDK (Advanced)

The AgentCore CLI generates AWS CDK under the hood. For full infrastructure-as-code control, customize the generated CDK project directly or refer to the L1 CDK documentation.

A2A Protocol Support

Serve your agent using the A2A (Agent-to-Agent) protocol on Bedrock AgentCore Runtime. Works with any framework that provides an a2a-sdk AgentExecutor (Strands, LangGraph, Google ADK, or custom).

Strands currently uses a2a-sdk 0.3:

pip install "bedrock-agentcore[a2a]"

For A2A protocol v1, install the mutually exclusive a2a-v1 extra:

pip install "bedrock-agentcore[a2a-v1]"
from strands import Agent
from strands.a2a import StrandsA2AExecutor
from bedrock_agentcore.runtime import serve_a2a

agent = Agent(model="us.anthropic.claude-sonnet-4-20250514", system_prompt="You are a helpful assistant.")
serve_a2a(StrandsA2AExecutor(agent))

See A2A Protocol Examples for LangGraph, Google ADK, and advanced usage.

📝 License & Contributing

1.27.0 Nov 20, 2026
1.26.1 Nov 18, 2026
1.26.0 Nov 10, 2026
1.25.4 Nov 06, 2026
1.25.3 Nov 03, 2026
1.25.2 Oct 30, 2026
1.25.1 Oct 27, 2026
1.25.0 Oct 23, 2026
1.24.2 Oct 19, 2026
1.24.1 Oct 07, 2026
1.24.0 Sep 28, 2026
1.23.1 Sep 16, 2026
1.23.0 Sep 11, 2026
1.22.0 Aug 18, 2026
1.21.0 Aug 06, 2026
1.20.0 Aug 04, 2026
1.19.0 Jul 28, 2026
1.18.1 Jul 17, 2026
1.18.0 Jul 10, 2026
1.17.0 Jul 02, 2026
1.16.0 Jun 30, 2026
1.15.1 Jun 25, 2026
1.15.0 Jun 17, 2026
1.14.1 Jun 11, 2026
1.14.0 Jun 05, 2026
1.13.0 Jun 02, 2026
1.12.0 May 28, 2026
1.11.0 May 22, 2026
1.10.0 May 19, 2026
1.9.1 May 12, 2026
1.9.0 May 07, 2026
1.8.0 Apr 30, 2026
1.7.0 Apr 28, 2026
1.6.4 Apr 23, 2026
1.6.3 Apr 16, 2026
1.6.2 Apr 13, 2026
1.6.1 Apr 10, 2026
1.6.0 Mar 31, 2026
1.5.1 Mar 31, 2026
1.5.0 Mar 30, 2026
1.4.8 Mar 26, 2026
1.4.7 Mar 18, 2026
1.4.6 Mar 12, 2026
1.4.5 Mar 11, 2026
1.4.4 Mar 10, 2026
1.4.3 Mar 04, 2026
1.4.2 Mar 03, 2026
1.4.1 Feb 27, 2026
1.4.0 Feb 24, 2026
1.3.3 Feb 27, 2026
1.3.2 Feb 23, 2026
1.3.1 Feb 17, 2026
1.3.0 Feb 11, 2026
1.2.1 Feb 03, 2026
1.2.0 Jan 13, 2026
1.1.5 Jan 13, 2026
1.1.4 Jan 08, 2026
1.1.3 Jan 07, 2026
1.1.2 Dec 26, 2025
1.1.1 Dec 03, 2025
1.1.0 Dec 02, 2025
1.0.7 Nov 25, 2025
1.0.6 Nov 10, 2025
1.0.5 Oct 29, 2025
1.0.4 Oct 22, 2025
1.0.3 Oct 16, 2025
1.0.2 Oct 16, 2025
1.0.0 Oct 15, 2025
0.1.7 Oct 01, 2025
0.1.6 Oct 01, 2025
0.1.5 Sep 24, 2025
0.1.4 Sep 17, 2025
0.1.3 Sep 05, 2025
0.1.2 Aug 11, 2025
0.1.1 Jul 23, 2025
0.1.0 Jul 16, 2025
0.0.1 Jul 08, 2025
Extras:
Dependencies:
boto3 (>=1.44.5)
botocore (>=1.44.5)
pydantic (<2.41.3,>=2.0.0)
starlette (>=0.46.2)
typing-extensions (<5.0.0,>=4.13.2)
urllib3 (>=1.26.0)
uvicorn (>=0.34.2)
websockets (>=13.0)