bedrock-agentcore
An SDK for using Bedrock AgentCore
What it is and what it does
Bedrock AgentCore SDK is a Python wrapper that lets you deploy AI agents to AWS Bedrock AgentCore—a managed platform for running agents at scale without provisioning servers. It abstracts away infrastructure concerns and provides a decorator-based entrypoint pattern compatible with any agent framework (Strands, LangGraph, CrewAI, Autogen, or custom code). The SDK handles session isolation, authentication, observability via OpenTelemetry, and persistent memory across agent invocations.
The package ships with support for two agent communication protocols: AG-UI (Server-Sent Events and WebSocket) and A2A (Agent-to-Agent), both installable as optional extras. It depends on boto3 for AWS API calls, pydantic for validation, starlette and uvicorn for the local development server, and websockets for real-time communication. The project is actively maintained but still in alpha, so expect API refinements.
Use it for:
- Deploy a local Strands or LangGraph agent to Bedrock AgentCore without writing CloudFormation or CDK.
- Build a multi-turn conversational agent with persistent memory and session isolation across API calls.
- Integrate third-party APIs as agent tools via the Gateway service and MCP protocol.
- Run untrusted agent code safely in a sandboxed Code Interpreter environment.
- Monitor agent behavior and performance with built-in OpenTelemetry tracing and observability.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Deploy AI agents to AWS Bedrock AgentCore with a Python SDK that handles runtime, memory, observability, and authentication without managing infrastructure.
Yes, if you are deploying agents to AWS and want to avoid infrastructure management. The low install friction, active maintenance, permissive license, and zero vulnerabilities make it a solid choice. However, the alpha status means APIs may change—pin the version and monitor releases. Not suitable if you need a stable, production-hardened API or are deploying outside AWS.
Install
bedrock-agentcore on PyPI
pip
pip install bedrock-agentcoreuv
uv add bedrock-agentcorepoetry
poetry add bedrock-agentcoreInstalling bedrock-agentcore
Before you install
Low install friction with a pure Python wheel and standard dependencies. Actively maintained with recent releases; repo shows 750 stars and last commit on 2026-08-11. Still in alpha status (Development Status :: 3), so expect API changes.
License in practice
Apache 2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for production deployments.
Quickstart
pip install bedrock-agentcore
from bedrock_agentcore import BedrockAgentCoreApp
app = BedrockAgentCoreApp()
@app.entrypoint
async def handler(request):
prompt = request.get("prompt")
agent = Agent() # your agent framework
async for event in agent.stream_async(prompt):
yield event
app.run()
Requires Python 3.10 or later; AWS credentials and Bedrock AgentCore access configured via boto3.
Verify before relying
- Whether AG-UI and A2A protocol extras are stable or subject to breaking changes in alpha releases.
- Performance characteristics and cost model for Bedrock AgentCore runtime execution.
- Compatibility guarantees with specific agent frameworks (Strands, LangGraph, CrewAI, Autogen) across SDK versions.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — boto3, botocore, pydantic, starlette, typing-extensions, urllib3, uvicorn, websockets |
| Maintenance | actively maintained — 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,295,897/month — #1,638 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: bedrock_agentcore-1.21.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
bedrock-agentcore-starter-toolkitProvides a Python CLI and SDK for scaffolding,…
permissive · top 5,000 on PyPI
nova-actA Python SDK for building and running AI agents…
permissive · top 15,000 on PyPI
langgraph-checkpoint-awsProvides AWS-based persistence backends for…
permissive · top 15,000 on PyPI
a2a-sdkA Python SDK for building agentic applications…
permissive · top 5,000 on PyPI
aws_sdk_bedrock_runtimeProvides a Python client for interacting with…
permissive · top 15,000 on PyPI
agent-framework-bedrockConnects Microsoft Agent Framework applications…
permissive · top 15,000 on PyPI
traia-iatpAdds HTTP 402 Payment Required protocol support…
unclear · top 15,000 on PyPI
mypy-boto3-bedrock-agentcoreProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
strands-agents-builderStrands Agent Builder is a terminal-based…
permissive · top 15,000 on PyPI
livekit-plugins-awsIntegrates Amazon AWS AI services (Bedrock,…
permissive · top 15,000 on PyPI