GitHub Copilot SDK: Public Preview

GitHub Copilot

GitHub has released the Copilot SDK into public preview, giving developers a multi-language toolkit to embed Copilot's agentic runtime directly into their own applications and services. The SDK exposes the same production-tested agent engine that powers the Copilot cloud agent and Copilot CLI β€” providing tool invocation, streaming, file operations, and multi-turn sessions out of the box. Available for Node.js/TypeScript, Python, Go, .NET, and Java, the SDK supports custom tool definitions, BYOK (Bring Your Own Key) for OpenAI, Azure AI Foundry, and Anthropic, and OpenTelemetry distributed tracing. GitHub Copilot Free subscribers can access the SDK at no extra cost, with paid subscribers drawing from their premium request quota.

Featured Video

A video we selected to help illustrate this changelog

Key Takeaways

  • The Copilot SDK graduates to public preview, giving any developer the ability to embed Copilot's agentic runtime into custom apps across Node.js, Python, Go, .NET, and Java.
  • BYOK support for OpenAI, Azure AI Foundry, and Anthropic lets enterprises integrate the SDK without routing through GitHub's hosted quota, making it viable for organizations with existing AI provider contracts.
  • The SDK is the same runtime powering Copilot cloud agent and Copilot CLI β€” not a simplified subset β€” meaning developers get production-grade tool invocation, streaming, and multi-turn sessions immediately.
  • A YouTube demo from Microsoft Tech Hub shows the SDK being used to turn a basic Node.js planning app into an AI-powered assistant with dynamic meal plan generation and scheduling, illustrating how quickly real-world integrations can be built.
  • OpenTelemetry tracing is built in across all SDK languages, enabling teams to integrate Copilot agent activity into their existing observability stacks without custom instrumentation work.
  • Copilot Free users gain access at no extra cost, removing the barrier for individual developers who want to experiment with embedding agentic capabilities in personal projects.

GitHub Copilot SDK Enters Public Preview

GitHub has advanced the Copilot SDK from technical preview to public preview, opening access to the same agent runtime that powers the Copilot cloud agent and Copilot CLI. The SDK gives developers a programmable interface to embed Copilot's agentic capabilities directly into custom applications, internal tooling, and platform services β€” without having to build an AI orchestration layer from scratch.

What the SDK Provides

Rather than a simple API wrapper, the Copilot SDK exposes a full agent runtime. Developers get tool invocation, streaming responses, file operations, and multi-turn conversation sessions as first-class built-in features. This means a developer building a custom internal coding assistant or a specialized workflow automation tool can lean on the same infrastructure GitHub uses in production, rather than assembling bespoke orchestration logic.

Multi-Language Support

The SDK is available across five environments at public preview launch:

  • Node.js / TypeScript: npm install @github/copilot-sdk
  • Python: pip install github-copilot-sdk
  • Go: go get github.com/github/copilot-sdk/go
  • .NET: dotnet add package GitHub.Copilot.SDK
  • Java: Available via Maven

Key Capabilities

Custom tools and agents allow developers to define domain-specific tools with handlers, letting the agent decide autonomously when to invoke them. Developers can also build fully customized agents with tailored system prompts for specific use cases.

Fine-grained system prompt customization lets developers modify specific sections of the Copilot system prompt β€” using replace, append, prepend, or dynamic transform callbacks β€” without having to overwrite the entire prompt.

Token-by-token streaming enables responsive real-time user experiences, while blob attachments support sending images, screenshots, and binary data inline without disk operations.

OpenTelemetry support provides built-in distributed tracing with W3C trace context propagation across all SDK languages, making it straightforward to wire the agent into existing observability stacks.

Permission framework allows developers to gate sensitive operations behind approval handlers, or designate read-only tools to bypass permissions entirely β€” giving fine-grained control over what the agent can do autonomously.

Bring Your Own Key (BYOK) enables enterprises to provide their own API keys for OpenAI, Azure AI Foundry, or Anthropic, decoupling the SDK from GitHub's hosted model quota for organizations with existing enterprise agreements.

Who Can Access It

The Copilot SDK is available to all Copilot subscribers β€” including Copilot Free for personal use and BYOK for enterprise deployments. For paid subscribers, each prompt counts toward the premium request quota.

The transition from technical preview (launched January 2026) to public preview reflects GitHub's broader strategy to turn Copilot from an IDE assistant into a programmable AI platform that third-party applications can build on top of.