skillfed

bedrock-agentcore

An SDK for using Bedrock AgentCore

bedrock-agentcore v1.21.0 8.3M downloads/30d#1,638 on PyPI750
Permissive license Apache-2.0 Active released

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-agentcore

uv

uv add bedrock-agentcore

poetry

poetry add bedrock-agentcore

Installing 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

Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Software Development :: Libraries :: Python Modules

Tags

bedrock agent deployment sdkserverless ai agent hostingagent framework integration awsag-ui protocol pythona2a agent protocol support
aws-bedrockagent-frameworkserverless-deployment

More Python Modules packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

PyYAML

PyYAML parses and emits YAML 1.1 data format,…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

annotated-types

Provides reusable metadata objects for use with…

permissive · top 100 on PyPI

typing-inspection

Provides runtime tools to inspect and…

permissive · top 100 on PyPI

bedrock-agentcore-starter-toolkit

Provides a Python CLI and SDK for scaffolding,…

permissive · top 5,000 on PyPI

nova-act

A Python SDK for building and running AI agents…

permissive · top 15,000 on PyPI

langgraph-checkpoint-aws

Provides AWS-based persistence backends for…

permissive · top 15,000 on PyPI

a2a-sdk

A Python SDK for building agentic applications…

permissive · top 5,000 on PyPI

aws_sdk_bedrock_runtime

Provides a Python client for interacting with…

permissive · top 15,000 on PyPI

agent-framework-bedrock

Connects Microsoft Agent Framework applications…

permissive · top 15,000 on PyPI

traia-iatp

Adds HTTP 402 Payment Required protocol support…

unclear · top 15,000 on PyPI

mypy-boto3-bedrock-agentcore

Provides type annotations and IDE autocomplete…

permissive · top 15,000 on PyPI

strands-agents-builder

Strands Agent Builder is a terminal-based…

permissive · top 15,000 on PyPI

livekit-plugins-aws

Integrates Amazon AWS AI services (Bedrock,…

permissive · top 15,000 on PyPI

Further reading