microsoft-agents-copilotstudio-client
A client library for Microsoft Agents
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-clientuv
uv add microsoft-agents-copilotstudio-clientpoetry
poetry add microsoft-agents-copilotstudio-clientInstalling 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
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
agent-framework-copilotstudioIntegrates Microsoft Copilot Studio published…
permissive · top 15,000 on PyPI
copilotkitCopilotKit is a Python SDK for building AI…
permissive · top 15,000 on PyPI
microsoft-agents-activityProvides core types and schemas implementing…
permissive · top 5,000 on PyPI
github-copilot-sdkPython SDK for programmatic control of GitHub…
permissive · top 5,000 on PyPI
microsoft-agents-hosting-aiohttpProvides HTTP hosting integration for Microsoft…
permissive · top 15,000 on PyPI
microsoft-agents-hosting-coreProvides the core hosting infrastructure for…
permissive · top 5,000 on PyPI
agent-framework-github-copilotIntegrates GitHub Copilot's agentic…
permissive · top 15,000 on PyPI
jupyter-ai-magicsJupyter AI Magics provides a JupyterLab…
permissive · top 15,000 on PyPI
microsoft-agents-hosting-teamsProvides Teams-specific handlers and utilities…
permissive · top 15,000 on PyPI
microsoft-teams-apiHTTP client library for Microsoft Teams Bot…
permissive · top 5,000 on PyPI