github/copilot-sdk

github/copilot-sdk 图片 1
github/copilot-sdk 图片 2
github/copilot-sdk 图片 3
github/copilot-sdk 图片 4

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 coordinates
com.github:copilot-sdk-java
See 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:

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

  1. Install your preferred SDK using the commands above.
  2. 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.

FAQ

Do I need a GitHub Copilot subscription to use…

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论