.. toctree:: :maxdepth: 2 :caption: Contents api
The GitHub Copilot SDK for Python provides a JSON-RPC based client for programmatic control of the GitHub Copilot CLI. It enables you to create sessions, send messages, define tools, and handle events from the Copilot agent loop.
from copilot import CopilotClient
async with CopilotClient() as client:
session = await client.create_session()
response = await session.send("Hello!")pip install github-copilot-sdk