
TL;DR
On June 2, 2026, GitHub made the Copilot SDK generally available. It exposes the same agent runtime behind Copilot - planning, tool calls, file edits, streaming, MCP - across TypeScript, Python, Go, .NET, Rust, and Java. Here is what changed at GA and what it means for builders.
| Resource | URL |
|---|---|
| Copilot SDK GA changelog | github.blog/changelog/2026-06-02-copilot-sdk-is-now-generally-available |
| Copilot SDK repository | github.com/github/copilot-sdk |
| Copilot app announcement | github.blog/news-insights/product-news/github-copilot-app-the-agent-native-desktop-experience |
| Model Context Protocol | modelcontextprotocol.io |
On June 2, 2026, alongside Microsoft Build, GitHub announced that the Copilot SDK is now generally available. The pitch is straightforward: instead of building your own agent orchestration layer, you embed the same runtime that powers GitHub Copilot directly into your own applications, services, and developer tools, with a stable API and production support.
This is the same engine GitHub uses internally. Per GitHub's own framing, the SDK "exposes the same agentic runtime that powers the Copilot app." The desktop app, the refreshed CLI, and your custom integration all sit on one foundation. That is the part worth paying attention to, because it changes what "build an agent" means for a lot of teams.
If you have been following the GitHub side of the agent race, this slots in next to the work we covered in GitHub Copilot Coding Agent and CLI. The coding agent was about Copilot doing autonomous work inside GitHub. The SDK is about you taking that same autonomy and pointing it at your own product.
At GA the SDK supports six officially maintained language bindings. Rust and Java are new at GA; the rest graduated from public preview.
| Language | Install |
|---|---|
| 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 |
| Rust | cargo add github-copilot-sdk |
| Java | Maven / Gradle (com.github:copilot-sdk-java) |
The repository is MIT licensed, which matters if you are embedding it into a commercial product.
The architecture is worth understanding before you commit to it, because it is not a thin HTTP wrapper around an inference API. GitHub's repo describes the data path as:
Your Application -> SDK Client -> JSON-RPC -> Copilot CLI (server mode)
The SDK is a client that talks over JSON-RPC to the Copilot CLI running in server mode. The CLI is the agent. That has two practical consequences:
--allow-all." So file reads, edits, grep, and shell-style actions are available out of the box. That is powerful and also exactly the surface you need to sandbox.If your mental model was "call a chat endpoint," recalibrate. You are running a local agent process and driving it programmatically.
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools - delivered free every week.
From the archive
Jun 17, 2026 • 9 min read
Jun 17, 2026 • 12 min read
Jun 17, 2026 • 7 min read
Jun 17, 2026 • 11 min read
The shape of a basic call looks like a chat completion, which makes the on-ramp gentle. The following is illustrative of the documented client pattern rather than a verbatim quote from the reference docs, so check the getting started guide before you copy it into production:
import { CopilotClient } from "@github/copilot-sdk";
const client = new CopilotClient();
const response = await client.chat({
messages: [
{ role: "user", content: "Add Stripe checkout to my Next.js app" },
],
});
console.log(response.content);
The difference from a plain model call is that "Add Stripe checkout to my Next.js app" is not answered with prose. The agent plans, reads your files, and proposes edits, using the CLI's tool surface. Streaming and multi-turn sessions are first-class, so you can wire the token stream into your own UI and keep a session alive across turns.
The preview already had sessions and streaming. GA added the pieces you need to actually ship and operate this in production.
You can register your own tools that the agent invokes autonomously, and you can connect to Model Context Protocol servers. You can also override built-in tools. That last point is underrated: if you do not want the agent shelling out or editing arbitrary files, you can replace edit_file or grep with your own constrained implementation.
A custom tool registration looks roughly like this (again, illustrative of the pattern, confirm against the docs):
from github_copilot_sdk import CopilotClient, Tool
def query_analytics(query: str) -> dict:
"""Query the analytics database."""
return {"users": 1523, "conversions": 234}
analytics_tool = Tool(
name="query_analytics",
description="Query analytics database for metrics",
parameters={
"type": "object",
"properties": {
"query": {"type": "string", "description": "SQL query"},
},
"required": ["query"],
},
function=query_analytics,
)
client = CopilotClient(tools=[analytics_tool])
If you have built tools for the OpenAI Agents SDK or Codex SDK, the JSON-schema tool definition will feel familiar. MCP support means you can also reuse servers you already run instead of rewriting integrations per SDK. For context on which MCP servers are worth your time, see 271 MCP Servers: The Top 5 That Matter.
GA introduced hooks to intercept agent behavior at defined points: pre and post tool use, session start, MCP tool calls, and permission requests. This is the governance layer. If you are putting an autonomous agent in front of your filesystem and shell, the permission-request hook is where you enforce "ask a human before deleting files" or "never touch infra/." Treat it as a requirement, not a nicety.
GA also added the operational details that separate a demo from a service:
The SDK is available to all existing GitHub Copilot subscribers, "including Copilot Free for personal use, and to non-Copilot users via BYOK." In plain terms: if you already pay for Copilot, the SDK is included. If you do not, you can still use it by supplying your own model key. The SDK itself is not a separate paid product.
One thing to verify against your own usage: agent runs consume Copilot capacity the same way the rest of the product does. If you are on a metered plan, autonomous tool loops can burn requests faster than interactive chat. We walked through that dynamic in the Copilot usage-based billing guide and the premium requests explainer, and it applies double to anything you script.
This is not the first "agent runtime as an SDK." OpenAI shipped the Codex SDK and the Agents SDK on a similar premise, and Anthropic has leaned into the SDK-as-plumbing approach. The differentiator for the Copilot SDK is distribution and parity: it is the literal runtime behind a product millions of developers already use, it ships in six languages at GA, and it reuses GitHub's existing identity and billing instead of asking you to provision a new account. For shops already standardized on GitHub, that lowers the integration tax meaningfully.
The tradeoff is the CLI dependency. Because the agent is the Copilot CLI in server mode, your deployment story includes shipping and updating that binary, not just pinning a package version. For a serverless function that wants one quick completion, that is friction. For a long-running internal tool or CI assistant, it is fine.
Reach for the Copilot SDK if:
Be more cautious if:
The honest summary: GA is the moment this stops being a preview toy and becomes infrastructure you can build a product on. The custom tools, MCP, hooks, OpenTelemetry, and stable API are exactly the boxes a platform team checks before adopting. Just go in clear-eyed about the runtime model. You are not calling an endpoint, you are embedding an agent.
For where this fits in the broader landscape, see our best AI coding tools of 2026 roundup and the evolution of agent SDKs.
Install commands, supported languages, the GA feature list, the JSON-RPC architecture, and pricing in this post are drawn from GitHub's GA changelog and the official repository. The code snippets are illustrative of the documented client and tool patterns and should be checked against the current SDK reference before production use.
Read next
GitHub Copilot is moving from autocomplete into asynchronous coding agents, terminal workflows, MCP, skills, and model choice. Here is what changed in 2026.
8 min readCodex is no longer just a terminal agent. Here is when to use the Codex SDK, Codex CLI, or openai/codex-action, and how to avoid building the same agent loop three times.
8 min readConfigurable memory, sandbox-aware orchestration, Codex-like filesystem tools. Here is how the new Agents SDK actually behaves in prod.
10 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Frontend stack for agent-native apps. React hooks, prebuilt copilot UI, AG-UI runtime, frontend tools, shared state, and...
View ToolGives AI agents access to 250+ external tools (GitHub, Slack, Gmail, databases) with managed OAuth. Handles the auth and...
View ToolThe original AI coding assistant. 77M+ developers. Inline completions in VS Code and JetBrains. Copilot Workspace genera...
View ToolThe TypeScript toolkit for building AI apps. Unified API across OpenAI, Anthropic, Google. Streaming, tool calling, stru...
View ToolReplay every MCP tool call to find why your agent went sideways.
View AppSpec out AI agents, run them overnight, wake up to a verified GitHub repo.
View AppSee exactly what your agent did, locally. No cloud, no signup.
View AppWhat MCP servers are, how they work, and how to build your own in 5 minutes.
AI AgentsStep-by-step guide to building an MCP server in TypeScript - from project setup to tool definitions, resource handling, testing, and deployment.
AI AgentsDeep comparison of the top AI agent frameworks - LangGraph, CrewAI, Mastra, CopilotKit, AutoGen, and Claude Code.
AI Agents
GitHub Copilot is moving from autocomplete into asynchronous coding agents, terminal workflows, MCP, skills, and model c...

Codex is no longer just a terminal agent. Here is when to use the Codex SDK, Codex CLI, or openai/codex-action, and how...

Configurable memory, sandbox-aware orchestration, Codex-like filesystem tools. Here is how the new Agents SDK actually b...

From terminal agents to cloud IDEs - these are the AI coding tools worth using for TypeScript development in 2026.

Anthropic's Stainless acquisition is not just an SDK deal. It is a bet that agents need generated SDKs, CLIs, docs, and...

On June 16, 2026, Microsoft's Work IQ APIs reach general availability - a workplace intelligence layer that hands agents...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.