skillfed

microsoft-agents-hosting-aiohttp

Integration library for Microsoft Agents with aiohttp

microsoft-agents-hosting-aiohttp v1.3.0 237.0K downloads/30d#8,968 on PyPI1,036
Permissive license MIT Active released

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

uv

uv add microsoft-agents-hosting-aiohttp

poetry

poetry add microsoft-agents-hosting-aiohttp

Installing 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

Operating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

aiohttp agent hostingmicrosoft agents web frameworkconversational ai http serveragent middleware authenticationmicrosoft 365 agents integrationasync agent application frameworkagent activity routing
conversational-aiasync-httpmicrosoft-agents

More Application Frameworks packages

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

textual

Textual is a Python framework for building…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

mcp

Build and connect to Model Context Protocol…

permissive · top 1,000 on PyPI

Werkzeug

Werkzeug is a WSGI utility library providing…

permissive · top 1,000 on PyPI

microsoft-agents-hosting-core

Provides the core hosting infrastructure for…

permissive · top 5,000 on PyPI

microsoft-agents-hosting-fastapi

Provides FastAPI integration for building and…

permissive · top 15,000 on PyPI

microsoft-agents-hosting-teams

Provides Teams-specific handlers and utilities…

permissive · top 15,000 on PyPI

microsoft-agents-activity

Provides core types and schemas implementing…

permissive · top 5,000 on PyPI

microsoft-agents-authentication-msal

Provides MSAL-based authentication for…

permissive · top 15,000 on PyPI

microsoft-agents-copilotstudio-client

Connects Python applications to AI agents…

permissive · top 15,000 on PyPI

microsoft-teams-apps

Framework for building Microsoft Teams…

permissive · top 15,000 on PyPI

azure-ai-agentserver-agentframework

Wraps an Agent-framework agent to host it on…

unclear · top 15,000 on PyPI

agent-framework-a2a

Enables communication with remote A2A-compliant…

permissive · top 15,000 on PyPI

botbuilder-integration-aiohttp

Integrates a Microsoft Bot Framework bot into…

permissive · top 15,000 on PyPI

Further reading