GitHub Copilot SDK
TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC.
Model SDKs npm MIT
How GitHub Copilot SDK is used
GitHub Copilot SDK is a dependency in 10 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 26 projects, and what it is used with below comes from all of them. The most used alternative in our scan is OpenAI (284 projects). Projects that use it most often also use TypeScript (96.2%), Husky (38.5%), ws (34.6%).
Often used with GitHub Copilot SDK
| TypeScript | 96.2% of GitHub Copilot SDK projects · 1.7× more than average |
|---|---|
| Husky | 38.5% of GitHub Copilot SDK projects · 3.8× more than average |
| ws | 34.6% of GitHub Copilot SDK projects · 11.0× more than average |
| Zod | 57.7% of GitHub Copilot SDK projects · 2.3× more than average |
| Playwright (JavaScript) | 46.2% of GitHub Copilot SDK projects · 2.7× more than average |
| Anthropic SDK | 30.8% of GitHub Copilot SDK projects · 8.2× more than average |
| undici | 30.8% of GitHub Copilot SDK projects · 18.9× more than average |
| Marked | 30.8% of GitHub Copilot SDK projects · 12.1× more than average |
From all 26 projects in our scan that use GitHub Copilot SDK, including the dependency samples.
By coding agent
| GitHub Copilot | 0.3% of projects set up for it |
|---|---|
| Claude Code | 0.2% of projects set up for it |
Share of public repos configured for each agent that list GitHub Copilot SDK as a dependency.
Install
| Package | npm install @github/copilot-sdk |
|---|---|
| Main stacks | TypeScript / JavaScript (18), Next.js (5), React Native / Expo (1), Python (1) |
| Example projects | microsoft/vscode, im4codes/imcodes, ssdeanx/AgentStack, jcommaret/kodia, makefinks/daemon |
Alternatives to GitHub Copilot SDK
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside GitHub Copilot SDK are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| OpenAI npm Official TypeScript SDK for accessing OpenAI APIs including GPT and embeddings. |
76 | 284 (5.9%) | 25.3M | 11.2K | Apache-2.0 |
| Anthropic SDK npm Official TypeScript SDK for calling Claude API and building agent applications. |
69 | 232 (4.8%) | 28.3M | 2,145 | MIT |
| Google Generative AI npm Official SDK for Google Gemini API to build AI-powered applications. |
64 | 169 (3.5%) | 14.7M | 1,691 | Apache-2.0 |
| Mistral AI npm Official TypeScript SDK for calling Mistral's language models and APIs. |
42 | 11 (0.2%) | 4M | 157 | Apache-2.0 |
More in Model SDKs: AI SDK OpenAI Python Library Anthropic Python SDK Google GenAI Python SDK Hugging Face Hub LiteLLM Ollama Ollama JavaScript Library