freshcrate
Home > Frameworks > bedrock-agentcore-sdk-python

bedrock-agentcore-sdk-python

Python SDK for transforming any AI agent into a production-ready application. Framework-agnostic primitives for runtime, memory, authentication, and tools with AWS-managed infrastructure.

Description

Python SDK for transforming any AI agent into a production-ready application. Framework-agnostic primitives for runtime, memory, authentication, and tools with AWS-managed infrastructure.

README

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 β—† Starter Toolkit

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")

    agent = Agent()

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

app.run()

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

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

Quick Start: Use the Bedrock AgentCore Starter Toolkit for rapid prototyping.

Production: AWS CDK.

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).

pip install "bedrock-agentcore[a2a]"
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

Release History

VersionChangesUrgencyDate
v1.6.3## Installation ```bash pip install bedrock-agentcore==1.6.3 ``` ## What's Changed See [CHANGELOG.md](https://github.com/aws/bedrock-agentcore-sdk-python/blob/v1.6.3/CHANGELOG.md) for details. ## What's Changed * fix: validate region parameter to prevent SSRF request redirection by @jariy17 in https://github.com/aws/bedrock-agentcore-sdk-python/pull/417 * Release v1.6.3 by @github-actions[bot] in https://github.com/aws/bedrock-agentcore-sdk-python/pull/421 **Full Changelog**: https://githubHigh4/16/2026
v1.6.2## Installation ```bash pip install bedrock-agentcore==1.6.2 ``` ## What's Changed See [CHANGELOG.md](https://github.com/aws/bedrock-agentcore-sdk-python/blob/v1.6.2/CHANGELOG.md) for details. ## What's Changed * fix(ci): increase memory integration test timeout to 15 minutes by @jariy17 in https://github.com/aws/bedrock-agentcore-sdk-python/pull/401 * fix: make agentcore-worker-loop compatible with OTEL threading instrumentation by @aidandaly24 in https://github.com/aws/bedrock-agentcore-sdkHigh4/13/2026
v1.6.1## Installation ```bash pip install bedrock-agentcore==1.6.1 ``` ## What's Changed See [CHANGELOG.md](https://github.com/aws/bedrock-agentcore-sdk-python/blob/v1.6.1/CHANGELOG.md) for details. ## What's Changed * fix: pin griffe version and fix ExplanationStyle attribute error by @sundargthb in https://github.com/aws/bedrock-agentcore-sdk-python/pull/381 * fix: skip integration tests for Dependabot and remove missing label by @sundargthb in https://github.com/aws/bedrock-agentcore-sdk-python/High4/10/2026
v1.6.0## Installation ```bash pip install bedrock-agentcore==1.6.0 ``` ## What's Changed See [CHANGELOG.md](https://github.com/aws/bedrock-agentcore-sdk-python/blob/v1.6.0/CHANGELOG.md) for details. ## What's Changed * feat: add custom code-based evaluator decorator and typed models by @jariy17 in https://github.com/aws/bedrock-agentcore-sdk-python/pull/383 * Release v1.6.0 by @github-actions[bot] in https://github.com/aws/bedrock-agentcore-sdk-python/pull/385 **Full Changelog**: https://github.cMedium3/31/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

agent-archNo descriptionmain@2026-04-21
Auto-Pentest-LLMπŸ” Automate penetration testing with an intelligent agent that organizes security assessments, leveraging local LLMs and Kali Linux for effective exploitation.main@2026-04-21
SploitGPTπŸ› οΈ Automate penetration testing with SploitGPT, an AI agent using Kali Linux tools for efficient security assessments and minimal user input.main@2026-04-21
agent-resourcesπŸ› οΈ Install, manage, and share Claude Code skills effortlessly with one command, streamlining your workflow and enhancing team collaboration.main@2026-04-21
planning-with-filesπŸ“„ Transform your workflow with persistent markdown files for planning, tracking progress, and storing knowledge like a pro.master@2026-04-21