microsoft-agents-hosting-aiohttp
Integration library for Microsoft Agents with aiohttp
What it is and what it does
This package bridges the Microsoft 365 Agents SDK with aiohttp, a popular async HTTP framework for Python. It provides HTTP adapters, middleware, and utilities to host conversational agents as web services, handling the plumbing needed to expose agent logic over HTTP endpoints. The library integrates with the core hosting framework and aiohttp to manage request routing, authentication via JWT middleware, and agent-to-agent communication.
You use it when you want to deploy a Microsoft 365 Agent as a web service—whether for Teams, M365 Copilot, Copilot Studio, or custom web chat. It abstracts away the HTTP layer details so you can focus on agent logic: define message handlers, error handlers, and storage, then call `start_server()` to run the aiohttp application. The package supports streaming responses, custom error handling, and development-friendly features like hot reload.
Use it for:
- Host a Microsoft Teams agent as an HTTP service that receives and responds to conversation activities.
- Build a web chat interface backed by a Microsoft 365 Agent with real-time streaming responses.
- Integrate a Copilot Studio Agent with aiohttp for custom routing and middleware (e.g., logging, rate limiting).
- Deploy multi-agent systems where agents communicate via HTTP with JWT authentication.
- Create a development environment for agent testing with hot reload and debugging support.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides HTTP hosting integration for Microsoft 365 Agents using aiohttp, enabling you to build web-based agent applications with request processing, authentication, and routing.
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and solves a clear problem: hosting Microsoft 365 Agents over HTTP with aiohttp. It is well-positioned in the Microsoft Agents ecosystem and has no known vulnerabilities. Install it if you are building a web-based agent application and prefer aiohttp over other frameworks.
Install
microsoft-agents-hosting-aiohttp on PyPI
pip
pip install microsoft-agents-hosting-aiohttpuv
uv add microsoft-agents-hosting-aiohttppoetry
poetry add microsoft-agents-hosting-aiohttpInstalling microsoft-agents-hosting-aiohttp
Before you install
Low friction install with two runtime dependencies. Package is actively maintained with releases every 1–2 weeks; repository shows 1036 stars and recent activity as of 2026-08-13.
License in practice
MIT license permits commercial and private use with minimal restrictions; you must include the license notice in distributions.
Quickstart
pip install microsoft-agents-hosting-aiohttp
from microsoft_agents_hosting_aiohttp import start_server
from microsoft_agents_hosting_core import AgentApplication
start_server(
agent_application=AGENT_APP,
auth_configuration=CONNECTION_MANAGER.get_default_connection_configuration(),
)
Requires Python 3.10 or later; aiohttp 3.11.11+ is required.
Verify before relying
- Whether aiohttp 3.11.11+ is a hard requirement or if earlier versions are supported
- Whether the package handles graceful shutdown of the aiohttp server
- Performance characteristics under load or with streaming responses
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — microsoft-agents-hosting-core, aiohttp |
| Maintenance | actively maintained — 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 237,015/month — #8,968 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: microsoft_agents_hosting_aiohttp-1.3.0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
microsoft-agents-hosting-coreProvides the core hosting infrastructure for…
permissive · top 5,000 on PyPI
microsoft-agents-hosting-fastapiProvides FastAPI integration for building and…
permissive · top 15,000 on PyPI
microsoft-agents-hosting-teamsProvides Teams-specific handlers and utilities…
permissive · top 15,000 on PyPI
microsoft-agents-activityProvides core types and schemas implementing…
permissive · top 5,000 on PyPI
microsoft-agents-authentication-msalProvides MSAL-based authentication for…
permissive · top 15,000 on PyPI
microsoft-agents-copilotstudio-clientConnects Python applications to AI agents…
permissive · top 15,000 on PyPI
microsoft-teams-appsFramework for building Microsoft Teams…
permissive · top 15,000 on PyPI
azure-ai-agentserver-agentframeworkWraps an Agent-framework agent to host it on…
unclear · top 15,000 on PyPI
agent-framework-a2aEnables communication with remote A2A-compliant…
permissive · top 15,000 on PyPI
botbuilder-integration-aiohttpIntegrates a Microsoft Bot Framework bot into…
permissive · top 15,000 on PyPI