{"id":30039217,"url":"https://github.com/aws/bedrock-agentcore-sdk-python","last_synced_at":"2026-04-02T19:11:23.881Z","repository":{"id":305193370,"uuid":"1015684263","full_name":"aws/bedrock-agentcore-sdk-python","owner":"aws","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.","archived":false,"fork":false,"pushed_at":"2026-01-09T17:23:11.000Z","size":711,"stargazers_count":610,"open_issues_count":46,"forks_count":75,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-01-10T19:00:10.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aws.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE.txt","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-07T22:12:31.000Z","updated_at":"2026-01-10T14:57:46.000Z","dependencies_parsed_at":"2025-07-18T21:10:56.483Z","dependency_job_id":"594c954d-39a1-48a1-aec2-ee2c2eec6977","html_url":"https://github.com/aws/bedrock-agentcore-sdk-python","commit_stats":null,"previous_names":["aws/bedrock-agentcore-sdk-python"],"tags_count":22,"template":false,"template_full_name":"amazon-archives/__template_Apache-2.0","purl":"pkg:github/aws/bedrock-agentcore-sdk-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Fbedrock-agentcore-sdk-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Fbedrock-agentcore-sdk-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Fbedrock-agentcore-sdk-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Fbedrock-agentcore-sdk-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aws","download_url":"https://codeload.github.com/aws/bedrock-agentcore-sdk-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Fbedrock-agentcore-sdk-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-07T01:36:50.956Z","updated_at":"2026-04-02T19:11:23.857Z","avatar_url":"https://github.com/aws.png","language":"Python","funding_links":[],"categories":["Code \u0026 Developer Tools"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cdiv\u003e\n    \u003ca href=\"https://aws.amazon.com/bedrock/agentcore/\"\u003e\n      \u003cimg width=\"150\" height=\"150\" alt=\"image\" src=\"https://github.com/user-attachments/assets/b8b9456d-c9e2-45e1-ac5b-760f21f1ac18\" /\u003e\n   \u003c/a\u003e\n  \u003c/div\u003e\n\n  \u003ch1\u003e\n    Bedrock AgentCore SDK\n  \u003c/h1\u003e\n\n  \u003ch2\u003e\n    Deploy your local AI agent to Bedrock AgentCore with zero infrastructure\n  \u003c/h2\u003e\n\n  \u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://github.com/aws/bedrock-agentcore-sdk-python/graphs/commit-activity\"\u003e\u003cimg alt=\"GitHub commit activity\" src=\"https://img.shields.io/github/commit-activity/m/aws/bedrock-agentcore-sdk-python\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/aws/bedrock-agentcore-sdk-python/issues\"\u003e\u003cimg alt=\"GitHub open issues\" src=\"https://img.shields.io/github/issues/aws/bedrock-agentcore-sdk-python\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/aws/bedrock-agentcore-sdk-python/pulls\"\u003e\u003cimg alt=\"GitHub open pull requests\" src=\"https://img.shields.io/github/issues-pr/aws/bedrock-agentcore-sdk-python\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/aws/bedrock-agentcore-sdk-python/blob/main/LICENSE\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/aws/bedrock-agentcore-sdk-python\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/bedrock-agentcore\"\u003e\u003cimg alt=\"PyPI version\" src=\"https://img.shields.io/pypi/v/bedrock-agentcore\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://python.org\"\u003e\u003cimg alt=\"Python versions\" src=\"https://img.shields.io/pypi/pyversions/bedrock-agentcore\"/\u003e\u003c/a\u003e\n  \u003c/div\u003e\n\n  \u003cp\u003e\n  \u003ca href=\"https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/what-is-bedrock-agentcore.html\"\u003eDocumentation\u003c/a\u003e\n    ◆ \u003ca href=\"https://github.com/awslabs/amazon-bedrock-agentcore-samples\"\u003eSamples\u003c/a\u003e\n    ◆ \u003ca href=\"https://discord.gg/bedrockagentcore-preview\"\u003eDiscord\u003c/a\u003e\n    ◆ \u003ca href=\"https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-agentcore-control.html\"\u003eBoto3 Python SDK\u003c/a\u003e\n    ◆ \u003ca href=\"https://github.com/aws/bedrock-agentcore-sdk-python\"\u003eRuntime Python SDK\u003c/a\u003e\n    ◆ \u003ca href=\"https://github.com/aws/bedrock-agentcore-starter-toolkit\"\u003eStarter Toolkit\u003c/a\u003e\n\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## Overview\nAmazon 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.\n\n## 🚀 From Local Development to Bedrock AgentCore\n\n```python\nfrom bedrock_agentcore import BedrockAgentCoreApp\napp = BedrockAgentCoreApp()\n\nfrom strands import Agent # or bring your agent.\n\n@app.entrypoint\nasync def handler(request):\n    prompt = request.get(\"prompt\")\n\n    agent = Agent()\n\n    async for event in agent.stream_async(prompt):\n        yield (event)\n\napp.run()\n```\n\n**What you get with Bedrock AgentCore:**\n- ✅ **Keep your agent logic** - Works with Strands, LangGraph, CrewAI, Autogen, or custom frameworks\n- ✅ **Zero infrastructure management** - No servers, containers, or scaling concerns\n- ✅ **Enterprise-grade platform** - Built-in auth, memory, observability, security\n- ✅ **Production-ready deployment** - Reliable, scalable, compliant hosting\n\n## Amazon Bedrock AgentCore services\n- 🚀 **Runtime** - Secure and session isolated compute: **[Runtime Quick Start](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-get-started-toolkit.html)**\n- 🧠 **Memory** - Persistent knowledge across sessions: **[Memory Quick Start](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/memory-get-started.html)**\n- 🔗 **Gateway** - Transform APIs into MCP tools: **[Gateway Quick Start](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-quick-start.html)**\n- 💻 **Code Interpreter** - Secure sandboxed execution: **[Code Interpreter Quick Start](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/code-interpreter-getting-started.html)**\n- 🌐 **Browser** - Cloud-based web automation: **[Browser Quick Start](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/browser-onboarding.html)**\n- 📊 **Observability** - OpenTelemetry tracing: **[Observability Quick Start](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/observability-get-started.html)**\n- 🔐 **Identity** - AWS \u0026 third-party auth: **[Identity Quick Start](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/identity-getting-started-cognito.html)**\n\n## AG-UI Protocol Support\n\nDeploy agents using the [AG-UI protocol](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-agui.html) with zero boilerplate. A single `entrypoint` handler is served over both SSE (`POST /invocations`) and WebSocket (`/ws`).\n\n```python\nfrom bedrock_agentcore.runtime import serve_ag_ui\n\n# Framework agent with a .run() method — one line\nserve_ag_ui(agui_agent)\n```\n\nOr write a custom agent with the decorator form:\n\n```python\nfrom bedrock_agentcore.runtime import AGUIApp\nfrom ag_ui.core import RunAgentInput, RunStartedEvent, RunFinishedEvent\n\napp = AGUIApp()\n\n@app.entrypoint\nasync def my_agent(input_data: RunAgentInput):\n    yield RunStartedEvent(thread_id=input_data.thread_id, run_id=input_data.run_id)\n    # ... your agent logic, yield AG-UI events ...\n    yield RunFinishedEvent(thread_id=input_data.thread_id, run_id=input_data.run_id)\n\napp.run()\n```\n\nInstall with: `pip install \"bedrock-agentcore[ag-ui]\"`\n\nSee the [AG-UI protocol contract](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-agui-protocol-contract.html) for full details.\n\n## 🏗️ Deployment\n\n**Quick Start:** Use the [Bedrock AgentCore Starter Toolkit](https://github.com/aws/bedrock-agentcore-starter-toolkit) for rapid prototyping.\n\n**Production:** [AWS CDK](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore-readme.html).\n\n## A2A Protocol Support\n\nServe your agent using the [A2A (Agent-to-Agent) protocol](https://google.github.io/A2A/) on Bedrock AgentCore Runtime. Works with any framework that provides an a2a-sdk `AgentExecutor` (Strands, LangGraph, Google ADK, or custom).\n\n```bash\npip install \"bedrock-agentcore[a2a]\"\n```\n\n```python\nfrom strands import Agent\nfrom strands.a2a import StrandsA2AExecutor\nfrom bedrock_agentcore.runtime import serve_a2a\n\nagent = Agent(model=\"us.anthropic.claude-sonnet-4-20250514\", system_prompt=\"You are a helpful assistant.\")\nserve_a2a(StrandsA2AExecutor(agent))\n```\n\nSee [A2A Protocol Examples](docs/examples/a2a_protocol_examples.md) for LangGraph, Google ADK, and advanced usage.\n\n## 📝 License \u0026 Contributing\n\n- **License:** Apache 2.0 - see [LICENSE.txt](LICENSE.txt)\n- **Contributing:** See [CONTRIBUTING.md](CONTRIBUTING.md)\n- **Security:** Report vulnerabilities via [SECURITY.md](SECURITY.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws%2Fbedrock-agentcore-sdk-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faws%2Fbedrock-agentcore-sdk-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws%2Fbedrock-agentcore-sdk-python/lists"}