GitHub released the Copilot SDK in public preview on April 11, making the same agent runtime that powers Copilot CLI available as a programmable SDK in Python, TypeScript, Go, .NET, and Java. Community ports for Rust, Clojure, and C++ are also available.

Production Runtime, Not a Wrapper

The SDK exposes Copilot’s production-tested agent engine directly. Developers define agent behavior, and the SDK handles planning, tool invocation, file edits, and execution autonomously. No custom orchestration layer is required, according to the GitHub repository.

Under the hood, all SDKs communicate with the Copilot CLI server via JSON-RPC. For Node.js, Python, and .NET, the CLI is bundled automatically and no separate installation is needed. The Go SDK requires a manual CLI install, per the repository documentation.

Key Capabilities

The SDK includes:

  • Custom agents and skills: Define agent behaviors and tool access patterns
  • MCP (Model Context Protocol) integration: Connect agents to external context sources
  • Configurable tool availability: Tools are allowed by default, with granular control available
  • Multi-model support: Access all Copilot-available models
  • BYOK (Bring Your Own Key): Use the SDK without GitHub authentication by configuring API keys from OpenAI, Azure AI Foundry, or Anthropic, per the repository

Installation is standard package manager commands: npm install @github/copilot-sdk, pip install github-copilot-sdk, dotnet add package GitHub.Copilot.SDK, and equivalents for Go and Java. Comprehensive cookbook examples are available for each language.

Pricing and Limitations

A GitHub Copilot subscription is required for standard usage, with each prompt counting toward the premium request quota. The BYOK option removes the subscription requirement but uses key-based authentication only, with no support for Microsoft Entra ID or managed identities, according to the repository.

The SDK is currently in public preview, suitable for development and testing but not yet production-grade, per GitHub’s documentation.

Copilot as Infrastructure

The Copilot SDK reframes GitHub’s agent strategy. Rather than keeping Copilot’s capabilities locked inside VS Code or the CLI, GitHub is positioning the agent runtime as embeddable infrastructure that any application can invoke. For enterprises already on Copilot, this reduces the barrier to adding agentic workflows to internal tools, CI/CD pipelines, or custom applications.

The release lands the same day as Microsoft’s Agent Framework open-source launch. The two are complementary: Agent Framework provides the orchestration layer for building agents from scratch, while the Copilot SDK provides a ready-made agent runtime for teams that want capabilities without building the plumbing.