← all repositories
github/copilot-sdk

GitHub's agent runtime, now rentable by the hour

Why rebuild orchestration when you can embed Copilot's CLI engine in whatever language you already use?

10k stars Java AgentsCoding Assistants
copilot-sdk
Velocity · 7d
+80
★ / day
Trend
accelerating
star history

What it does

The GitHub Copilot SDK wraps the Copilot CLI’s agent runtime in six language bindings—TypeScript, Python, Go, .NET, Java, and Rust—so your application can invoke the same planning, tool-calling, and file-editing logic that powers Copilot itself. You define the agent behavior; the SDK handles JSON-RPC chatter with a local or external CLI server.

The interesting bit

The licensing flexibility is the quiet killer feature. You can run through GitHub’s normal Copilot subscription (premium requests billed per-prompt) or flip to BYOK mode and feed it your own OpenAI, Anthropic, or Azure AI Foundry keys—no GitHub auth required. That’s unusual for a first-party product, and it means the SDK works inside air-gapped or multi-tenant setups where GitHub OAuth would be awkward.

Key highlights

  • Six official SDKs with matching cookbooks; Clojure and C++ exist only in community forks
  • Node, Python, and .NET bundle the CLI automatically; Go, Java, and Rust need it in PATH or manual bundling
  • Permission handlers let your application approve, deny, or customize every tool call
  • Supports custom agents, skills, and tools beyond the default first-party set
  • Runtime model enumeration so you aren’t hard-coding model names

Caveats

  • BYOK is key-only: no Azure AD, managed identities, or third-party IdPs
  • Rust has no cookbook yet, and the C++ community SDK is explicitly unsupported
  • Billing still flows through GitHub’s premium-request quota unless you’re fully on BYOK

Verdict

Worth a look if you’re building an IDE, dev tool, or internal platform and want agentic features without becoming an LLM orchestration engineer. Skip it if you need deep control over the underlying model weights or prompt templates—this is a high-level runtime, not a raw API.

Frequently asked

What is github/copilot-sdk?
Why rebuild orchestration when you can embed Copilot's CLI engine in whatever language you already use?
Is copilot-sdk open source?
Yes — github/copilot-sdk is open source, released under the MIT license.
What language is copilot-sdk written in?
github/copilot-sdk is primarily written in Java.
How popular is copilot-sdk?
github/copilot-sdk has 10k stars on GitHub and is currently accelerating.
Where can I find copilot-sdk?
github/copilot-sdk is on GitHub at https://github.com/github/copilot-sdk.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.