skillfed

microsoft-agents-copilotstudio-client

A client library for Microsoft Agents

microsoft-agents-copilotstudio-client v1.3.0 465.0K downloads/30d#6,511 on PyPI1,036
Permissive license MIT Active released

What it is and what it does

This package is a Python client for connecting to and interacting with AI agents built in Microsoft Copilot Studio. It bypasses traditional chat channels and provides a direct connection to agents, making it suitable for integrating conversational AI into custom applications, building specialized UIs, or enabling agent-to-agent communication flows. The library is part of the broader Microsoft 365 Agents SDK and handles authentication, connection configuration, and message exchange with Copilot Studio agents.

The client supports multiple connection modes: environment-based configuration using credentials and agent identifiers, or simplified DirectConnect URL mode for streamlined setup. It includes optional diagnostic logging for HTTP communication inspection and experimental endpoint support for pre-release features. The package requires Python 3.10 or later and depends on microsoft-agents-hosting-core for core hosting functionality.

Use it for:

  • Embed Copilot Studio agents into custom Python web applications or desktop tools without using Teams or web chat interfaces
  • Build agent-to-agent communication flows where one Python service orchestrates interactions with multiple Copilot Studio agents
  • Create specialized user interfaces that interact with Copilot Studio agents while maintaining full control over conversation state and presentation
  • Integrate enterprise AI agents into backend services or data processing pipelines for automated decision-making or content generation
  • Enable diagnostic inspection of agent communication for debugging, monitoring, or compliance logging

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Connects Python applications to AI agents created in Microsoft Copilot Studio, enabling direct interaction with agents without traditional chat channel intermediaries.

Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and provides a straightforward way to integrate Copilot Studio agents into Python applications. Install it if you need direct programmatic access to Copilot Studio agents outside traditional chat channels. The single runtime dependency and low install friction make adoption low-risk.

Install

microsoft-agents-copilotstudio-client on PyPI

pip

pip install microsoft-agents-copilotstudio-client

uv

uv add microsoft-agents-copilotstudio-client

poetry

poetry add microsoft-agents-copilotstudio-client

Installing microsoft-agents-copilotstudio-client

Before you install

Active maintenance with recent release (15 days old), supports Python 3.10–3.14, and depends on a single runtime package (microsoft-agents-hosting-core) with low install friction.

License in practice

MIT license permits commercial and private use, modification, and distribution with minimal restrictions—suitable for most enterprise and open-source projects.

Quickstart

pip install microsoft-agents-copilotstudio-client

from microsoft_agents_copilotstudio_client import CopilotClient, ConnectionSettings

settings = ConnectionSettings(
    environment_id="your-env-id",
    agent_identifier="your-agent-id"
)
client = CopilotClient(settings, token)

Requires Python 3.10 or later; authentication token and valid Copilot Studio environment/agent identifiers must be obtained separately (typically via MSAL or Entra ID).

Verify before relying

  • Whether the package requires Azure/Microsoft 365 credentials or service subscriptions beyond what the documentation shows
  • Performance characteristics and latency expectations for agent communication at scale
  • Backward compatibility guarantees across minor versions

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 1 — microsoft-agents-hosting-core
Maintenance actively maintained — 15 days since the last release
Last repo commit
First released
Downloads 465,035/month — #6,511 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: microsoft_agents_copilotstudio_client-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

copilot studio agent clientmicrosoft agents python sdkcopilot studio integrationdirect agent connectionconversational ai clientmicrosoft 365 agentsagent-to-application communication
conversational-aimicrosoft-ecosystemagent-framework

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

agent-framework-copilotstudio

Integrates Microsoft Copilot Studio published…

permissive · top 15,000 on PyPI

copilotkit

CopilotKit is a Python SDK for building AI…

permissive · top 15,000 on PyPI

microsoft-agents-activity

Provides core types and schemas implementing…

permissive · top 5,000 on PyPI

github-copilot-sdk

Python SDK for programmatic control of GitHub…

permissive · top 5,000 on PyPI

microsoft-agents-hosting-aiohttp

Provides HTTP hosting integration for Microsoft…

permissive · top 15,000 on PyPI

microsoft-agents-hosting-core

Provides the core hosting infrastructure for…

permissive · top 5,000 on PyPI

agent-framework-github-copilot

Integrates GitHub Copilot's agentic…

permissive · top 15,000 on PyPI

jupyter-ai-magics

Jupyter AI Magics provides a JupyterLab…

permissive · top 15,000 on PyPI

microsoft-agents-hosting-teams

Provides Teams-specific handlers and utilities…

permissive · top 15,000 on PyPI

microsoft-teams-api

HTTP client library for Microsoft Teams Bot…

permissive · top 5,000 on PyPI

Further reading