GitHub's new Copilot SDK lets developers embed the same AI engine powering Copilot CLI into their own applications, enabling custom agentic workflows without building core components from scratch.
GitHub has released a technical preview of the Copilot SDK on GitHub, enabling developers to integrate the same agentic engine that powers GitHub Copilot CLI into their own applications. This move significantly expands the reach of Copilot's capabilities beyond the command-line interface, allowing developers to build custom GUIs, personal productivity tools, and enterprise agents that leverage Copilot's core AI workflows.
What Changed
The Copilot SDK provides programmatic access to GitHub Copilot CLI's agentic engine, including essential components like a planner, tool loop, and runtime. Instead of building these complex AI workflow components from scratch, developers can now tap into a proven architecture that handles the heavy lifting of agent orchestration.
The SDK supports multiple AI models, custom tool definitions, MCP (Model Context Protocol) server integration, GitHub authentication, and real-time streaming capabilities. It communicates with the Copilot CLI using JSON-RPC and automatically manages the CLI's process lifecycle.
Provider Comparison
Unlike other AI agent frameworks that require significant infrastructure setup, the Copilot SDK offers a streamlined approach with built-in support for GitHub's ecosystem. The SDK works with GitHub Copilot subscriptions or keys from supported LLM providers including OpenAI, Azure AI Foundry, and Anthropic.
Microsoft senior software engineer Dmytro Struk highlights several advantages of combining the Copilot SDK with Microsoft's Agent Framework:
- Consistent agent abstraction that allows swapping providers without restructuring code
- Multi-agent workflow support using built-in orchestrators
- Ecosystem integration with declarative agent definitions and A2A (Agent-to-Agent) support
For example, Struk demonstrates a multi-agent workflow where an Azure OpenAI agent drafts a marketing tagline while a GitHub Copilot agent reviews it, orchestrated in a sequential pipeline.
Business Impact
The SDK's ability to embed Copilot's engine into custom applications opens new possibilities for enterprise automation and developer productivity tools. Companies can now build internal agents that leverage Copilot's capabilities while maintaining control over their data and workflows.
GitHub engineers have already created examples including YouTube chapter generators, custom GUIs, and summarizing tools using the SDK. The initial language support includes Node.js, Python, Go, and .NET, with unofficial SDKs available for Java, Rust, and C++ from the community.
By default, the SDK enables all first-party tools provided by Copilot CLI, including file system operations, Git operations, and web requests. Developers can also define custom agents, skills, and tools to extend functionality for specific use cases.
The Copilot CLI must be installed separately, but the SDK handles the process lifecycle automatically, reducing the operational overhead typically associated with AI agent deployment.
This release represents a significant step toward making advanced AI agent capabilities more accessible to developers across different platforms and use cases, potentially accelerating the adoption of agentic workflows in both personal and enterprise applications.

Comments
Please log in or register to join the discussion