This release is a pre-release and may not be stable for production use.
Azure AI Agent Server – GitHub Copilot SDK Adapter
This package provides an adapter that lets you run a
GitHub Copilot SDK session as
an Azure AI Agent Server endpoint, in the same way that
azure-ai-agentserver-langgraph and azure-ai-agentserver-agentframework
wrap their respective frameworks.
Getting Started
Install
pip install azure-ai-agentserver-copilot
Prerequisites
- Python 3.10+
- GitHub Copilot CLI installed and in
$PATH - Valid GitHub Copilot authentication (
gh auth login)
Install azd app (Local Development)
azd app lets you run all project services locally with a single command, with auto-dependencies, a real-time dashboard, and AI-powered debugging via MCP.
-
Install the Azure Developer CLI (if not already installed):
# Windows winget install microsoft.azd # macOS brew tap azure/azd && brew install azd # Linux curl -fsSL https://aka.ms/install-azd.sh | bash
-
Add the extension source and install azd app:
azd extension source add -n jongio -t url -l https://jongio.github.io/azd-extensions/registry.json azd extension install jongio.azd.app
-
Run the project:
azd app run
Usage
import asyncio
from azure.ai.agentserver.copilot import from_copilot
async def main():
agent = from_copilot({"model": "gpt-5"})
await agent.run_async()
asyncio.run(main())
Once the server is running, send requests:
# Non-streaming
curl -sS -H "Content-Type: application/json" \
-X POST http://localhost:8088/responses \
-d '{"input":"What is the capital of France?","stream":false}'
# Streaming
curl -N -H "Content-Type: application/json" \
-X POST http://localhost:8088/responses \
-d '{"input":"Explain Python decorators briefly.","stream":true}'
Key Concepts
The adapter converts incoming OpenAI-format requests into Copilot SDK
MessageOptions, runs them through a Copilot session, and converts the
resulting SessionEvent objects back into OpenAI-format responses.
Both streaming (Server-Sent Events) and non-streaming (JSON) modes are supported.
Troubleshooting
| Problem | Fix |
|---|---|
CopilotClient fails to start |
Ensure the Copilot CLI is installed and gh auth login has been run. |
| Timeout errors | The default session timeout is 300 s. For long-running prompts, set a higher timeout. |
Next Steps
See the samples directory for runnable examples.
Metadata
Release files for tonybaloney-azure-ai-agentserver-copilot 1.0.0b3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tonybaloney_azure_ai_agentserver_copilot-1.0.0b3.tar.gz | 76.9 kB | Without provenance | Details for tonybaloney_azure_ai_agentserver_copilot-1.0.0b3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tonybaloney_azure_ai_agentserver_copilot-1.0.0b3-py3-none-any.whl | Python 3 | none | any | Details for tonybaloney_azure_ai_agentserver_copilot-1.0.0b3-py3-none-any.whl |
Total release size: 104.6 kB
Release files / tonybaloney_azure_ai_agentserver_copilot-1.0.0b3.tar.gz
| Download URL | tonybaloney_azure_ai_agentserver_copilot-1.0.0b3.tar.gz |
|---|---|
| Size | 76.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37082628b9781964fec1b8ab5196718393b047b28fea73918d4d5d727cd23f56
|
|
BLAKE2b-256 checksum How to use checksums |
c5942646af04f0e7011a8c0181696e2ae52a74132903c8bc4d6090c4085a5876
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / tonybaloney_azure_ai_agentserver_copilot-1.0.0b3-py3-none-any.whl
| Download URL | tonybaloney_azure_ai_agentserver_copilot-1.0.0b3-py3-none-any.whl |
|---|---|
| Size | 27.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
397e82913b1951b75c7e204e31f0bc4d3e54dc2ca0ed0e24d4986cca98f108e8
|
|
BLAKE2b-256 checksum How to use checksums |
d0dd06281cdb78bbe1db791d2345bd4b9d2121247b04b97e2f6a337ca573455c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for tonybaloney-azure-ai-agentserver-copilot 1.0.0b3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.