This is an early release preview. You may encounter bugs.
Copilot SDK logo
Unclaimed

Framework coding

Copilot SDK

Multi-platform SDK for integrating GitHub Copilot Agent into apps and services

Built by GitHub

A 86/100 GitHub score ? This grade is derived from GitHub signals, not user votes. Open for the full breakdown.
Discussion

01 / Summary

About Copilot SDK.

The GitHub Copilot SDK embeds the agent runtime behind Copilot CLI in your own application. You define the agent's behavior, and the runtime handles planning, tool invocation, file edits, and the rest of the orchestration. Official SDKs exist for Node.js and TypeScript, Python, Go, .NET, Java, and Rust, with community SDKs for Clojure and C++.

Every SDK talks to the Copilot CLI running in server mode over JSON-RPC. The SDK manages the CLI process lifecycle itself, bundling the CLI for Node.js, Python, and .NET, or it connects to an external CLI server. By default the SDK exposes the CLI's first-party tools, and each SDK's permission handler lets your application approve, deny, or customize every tool call.

Usage needs a GitHub Copilot subscription and is billed like the CLI, per prompt, unless you bring your own key. With BYOK, the SDK reaches models through your own API keys for providers such as OpenAI, Microsoft Foundry, and Anthropic, without GitHub authentication. All models available in Copilot CLI are supported, and a runtime method lists them.

  • Six official languages: Node.js and TypeScript, Python, Go, .NET, Java, and Rust
  • Copilot CLI engine: the same agent runtime as Copilot CLI, invoked programmatically over JSON-RPC
  • Process management: starts and stops the CLI automatically, or connects to an external CLI server
  • Tool permissions: a permission handler approves, denies, or customizes each tool call, and individual tools can be turned on or off
  • Custom extensions: define your own agents, skills, and tools, plus hooks and MCP servers
  • Skill installation APIs: plan, apply, list, recover, and uninstall skill installations, with reviews of the verified skill content
  • Authentication: signed-in GitHub user, GitHub OAuth app tokens, GitHub tokens, or BYOK API keys
  • BYOK: your own keys for providers such as OpenAI, Microsoft Foundry, and Anthropic, without a Copilot subscription
  • Model discovery: a runtime method returns the models available through Copilot CLI

02 / Discussion CREDIBILITY-GATED

Discussion

Reading is open to everyone. Posting and voting need a verified identity or a GitHub grade of B or higher.

  • No discussions yet.

04 / Build

Build with Copilot SDK.

Browse the catalog for frameworks, tools, and harnesses, each scored on real GitHub credibility.

Get Copilot SDK →

Browse the catalog