Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 735 Bytes

File metadata and controls

37 lines (25 loc) · 735 Bytes

GitHub Copilot SDK for Python

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

Quick start

from copilot import CopilotClient

async with CopilotClient() as client:
    session = await client.create_session()
    response = await session.send("Hello!")

Installation

pip install github-copilot-sdk

Indices and tables