GitHub Copilot SDK Now in Public Preview

Copilot SDK is now in public preview. Embed Copilot's agent runtime into your apps with custom tools, streaming, and permission controls across five languages.

GitHub Copilot SDK Now in Public Preview

TL;DR

  • Copilot SDK is now publicly available — embed Copilot's agent runtime directly into your apps
  • Supports Node.js, Python, Go, .NET, and Java with custom tools, streaming, and permission controls
  • Available to all Copilot subscribers and free tier users; BYOK support for enterprises

New

  • Copilot SDK public preview — Embed production-tested agent runtime with tool invocation, streaming, file operations, and multi-turn sessions without building your own orchestration layer.
  • Five language support — Build with Node.js/TypeScript, Python, Go, .NET, and Java out of the box.
  • Custom tools and agents — Define domain-specific tools and let the agent decide when to invoke them with tailored instructions.
  • Fine-grained prompt customization — Use replace, append, prepend, or dynamic transform callbacks to customize system prompt sections without rewriting the entire prompt.
  • Streaming and real-time responses — Token-by-token streaming for responsive user experiences.
  • Blob attachments — Send images, screenshots, and binary data inline without disk writes.
  • OpenTelemetry support — Built-in distributed tracing with W3C trace context propagation across all SDKs.
  • Permission framework — Gate sensitive operations with approval handlers or mark tools as read-only to skip permissions.
  • Bring Your Own Key (BYOK) — Use your own API keys for OpenAI, Azure AI Foundry, or Anthropic.

Installation

  • Node.js / TypeScriptnpm install @github/copilot-sdk
  • Pythonpip install github-copilot-sdk
  • Gogo get github.com/github/copilot-sdk/go
  • .NETdotnet add package GitHub.Copilot.SDK
  • Java — Available via Maven.

Available to all Copilot and non-Copilot subscribers, including Copilot Free. Each prompt counts toward your premium request quota. Start with the getting started guide.

Source: GitHub Changelog