github/copilot-sdk

Multi-platform SDK for integrating GitHub Copilot Agent into apps and services
GitHub Copilot CLI SDKs
Agents for every app.
Embed Copilot's agentic workflows in your application with the GitHub Copilot SDK for Python, TypeScript, Go, .NET, Java, and Rust.
The GitHub Copilot SDK exposes the same engine behind Copilot CLI: a production-tested agent runtime you can invoke programmatically. No need to build your own orchestration—you define agent behavior, Copilot handles planning, tool invocation, file edits, and more.
Available SDKs
| SDK | Location | Cookbook | Installation | API docs |
|---|---|---|---|---|
| Node.js / TypeScript | nodejs/ | Cookbook | npm install @github/copilot-sdk | |
| Python | python/ | Cookbook | pip install github-copilot-sdk | |
| Go | go/ | Cookbook | go get github.com/github/copilot-sdk/go | API docs |
| .NET | dotnet/ | Cookbook | dotnet add package GitHub.Copilot.SDK | |
| Rust | rust/ | — | cargo add github-copilot-sdk | API docs |
| Java | java/ | Cookbook | Maven coordinatescom.github:copilot-sdk-javaSee instructions for Maven and Gradle | API docs |
See the individual SDK READMEs for installation, usage examples, and API reference.
Getting Started
For a complete walkthrough, see the Getting Started Guide.
Quick steps:
- (Optional) Install the Copilot CLI
For Node.js, Python, and .NET SDKs, the Copilot CLI is bundled automatically and no separate installation is required. For Go, Java, and Rust, install the CLI manually or ensure copilot is available in your PATH. Go and Rust also expose application-level CLI bundling features.
- Install your preferred SDK using the commands above.
- See the SDK README for usage examples and API documentation.
Architecture
All SDKs communicate with the Copilot CLI server via JSON-RPC:
Your Application
↓
SDK Client
↓ JSON-RPC
Copilot CLI (server mode)
The SDK manages the CLI process lifecycle automatically. You can also connect to an external CLI server—see the Getting Started Guide for details on running the CLI in server mode.