RepositoryJavaUSUnited States
microsoft

microsoft/copilot-sdk

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

10.7kstars
1.5kforks
181issues
0views

🎉 Multi‑language SDK for Copilot Agent

Turn your app into an AI‑powered assistant with Copilot's production‑tested agent runtime.

The Microsoft Copilot SDK is a multi‑platform library that lets developers integrate GitHub Copilot's agent into their applications. It exposes the same engine that powers Copilot CLI, a production‑tested agent runtime, so you don't have to build your own orchestration. You define the agent's behavior, and Copilot handles planning, tool invocation, file edits, and more. The SDK is available for Java, Python, TypeScript, Go, .NET, and Rust, with packages on Maven Central, PyPI, npm, Go modules, NuGet, and crates.io.

✨ Highlights

  • Multi‑language support: SDKs for Node.js/TypeScript, Python, Go, .NET, Rust, and Java.
  • Copilot CLI engine: Uses the same production‑tested agent runtime as Copilot CLI.
  • Agent orchestration: Define behavior; Copilot handles planning, tool calls, and file edits.
  • No custom orchestration: Avoid building your own agent loop; SDK provides built‑in workflow.
  • Easy installation: Packages available via npm, pip, go get, dotnet add, cargo add, and Maven Central.
  • Transition to Microsoft Copilot SDK: Renaming in progress, existing APIs remain unchanged.

💡 Why it matters

What sets this SDK apart is that it packages the same agent runtime used by Copilot CLI, so you get a battle‑tested implementation without having to replicate the planning and tool‑invocation logic yourself. It's ideal for any team that wants to add AI‑driven features to an existing app, regardless of language, because the API surface is consistent across the supported platforms. By offloading the agent loop to the SDK, developers can focus on domain‑specific logic rather than reinventing the wheel.


#CopilotSDK #MultiLanguage #AgentRuntime #TiniX