The GitHub Copilot SDK is now available in public preview. This gives you the building blocks to embed Copilot’s agentic capabilities directly into your own applications, workflows, and platform services.

The Copilot SDK exposes the same production-tested agent runtime that powers GitHub Copilot cloud agent and Copilot CLI. Instead of building your own AI orchestration layer, you get tool invocation, streaming, file operations, and multi-turn sessions out of the box.

Now available in five languages

Build with the SDK in your language of choice:

  • 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: Newly available to install via Maven.

Key capabilities

  • Custom tools and agents: Define domain-specific tools with handlers and let the agent decide when to invoke them. Build custom agents with tailored instructions for your use case.
  • Fine-grained system prompt customization: Customize sections of the Copilot system prompt using replace, append, prepend, or dynamic transform callbacks. There’s no need to rewrite the entire prompt.
  • Streaming and real-time responses: Stream responses token-by-token for responsive user experiences.
  • Blob attachments: Send images, screenshots, and binary data inline without writing to disk.
  • OpenTelemetry support: Built-in distributed tracing with W3C trace context propagation across all SDKs.
  • Permission framework: Gate sensitive operations with approval handlers, or mark read-only tools to skip permissions entirely.
  • Bring Your Own Key (BYOK): Use your own API keys for OpenAI, Azure AI Foundry, or Anthropic.

Get started

The Copilot SDK is available to all Copilot and non-Copilot subscribers, including Copilot Free for personal use and BYOK for enterprises. Each prompt counts toward your premium request quota for Copilot subscribers.

Check out the getting started guide to start building and join the discussion in the GitHub Community.