✦
Summary
The GitHub Copilot SDK offers a versatile, multi-platform interface designed to seamlessly embed the powerful agentic capabilities of GitHub Copilot directly into various applications and custom services. This offering exposes the identical, production-tested agent runtime that powers the GitHub Copilot CLI, allowing developers to orchestrate complex workflows programmatically without needing to construct the underlying coordination logic themselves. It handles the intricate details of planning, executing tool invocations, managing file edits, and other agent functions, providing a robust foundation for building intelligent features within your own software ecosystem.
Key Features
Multi-platform support across Python, TypeScript, Go, and .NET.
Exposes the production-tested agent runtime used by Copilot CLI.
Handles automatic planning, tool invocation, and file editing.
Communicates with the Copilot CLI server via JSON-RPC.
Supports Bring Your Own Key (BYOK) for integrating external LLM providers.
Allows for the definition and integration of custom agents, skills, and tools.
SDK client manages the Copilot CLI process lifecycle automatically.
Provides runtime access to available models supported by the Copilot CLI.
About GitHub Copilot SDK
This SDK is currently available in a Technical Preview phase, supporting major development environments including Python, TypeScript, Go, and .NET, ensuring broad applicability across modern software stacks. Integration is facilitated through dedicated packages for each language ecosystem, such as npm for Node.js/TypeScript and pip for Python. Architecturally, the SDK functions as a client that communicates with the Copilot CLI server, which must be installed separately, utilizing JSON-RPC as the standardized communication protocol. The SDK manages the lifecycle of this underlying CLI process, simplifying setup for developers who wish to leverage agent workflows.
A significant advantage of using this SDK is the flexibility it affords in terms of model sourcing and customization. While a GitHub Copilot subscription is prerequisite for general use, the SDK also embraces a Bring Your Own Key (BYOK) approach, allowing integration with other supported Large Language Model providers like Azure or Anthropic. Furthermore, developers have granular control over the agent's capabilities; although it defaults to enabling all first-party tools (including file system and Git operations), specific tools can be enabled or disabled via configuration. The platform also explicitly supports the creation of custom agents, skills, and tools to extend functionality beyond the defaults.