[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-11466":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":9,"createdAt":9,"pushedAt":9,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":16,"starSnapshotCount":16,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},11466,"copilot-sdk","github\u002Fcopilot-sdk","github","Multi-platform SDK for integrating GitHub Copilot Agent into apps and services",null,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-sdk","Java",9391,1243,90,145,0,7,510,749,28,40.28,false,"main","2026-06-12 02:02:31","# GitHub Copilot CLI SDKs\n\n![GitHub Copilot SDK](.\u002Fassets\u002FRepoHeader_01.png)\n\n[![NPM Downloads](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdm\u002F%40github%2Fcopilot-sdk?label=npm)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@github\u002Fcopilot-sdk)\n[![PyPI - Downloads](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fdm\u002Fgithub-copilot-sdk?label=PyPI)](https:\u002F\u002Fpypi.org\u002Fproject\u002Fgithub-copilot-sdk\u002F)\n[![NuGet Downloads](https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fdt\u002FGitHub.Copilot.SDK?label=NuGet)](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FGitHub.Copilot.SDK)\n[![Go Reference](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGo-Reference-00ADD8?logo=go&logoColor=white)](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgithub\u002Fcopilot-sdk\u002Fgo)\n[![crates.io](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Fgithub-copilot-sdk?label=crates.io)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fgithub-copilot-sdk)\n[![Maven Central](https:\u002F\u002Fimg.shields.io\u002Fmaven-central\u002Fv\u002Fcom.github\u002Fcopilot-sdk-java?label=Maven%20Central)](https:\u002F\u002Fcentral.sonatype.com\u002Fartifact\u002Fcom.github\u002Fcopilot-sdk-java)\n\nAgents for every app.\n\nEmbed Copilot's agentic workflows in your application—now available in public preview as a programmable SDK for Python, TypeScript, Go, .NET, and Java. A Rust SDK is also available in technical preview.\n\nThe GitHub Copilot SDK exposes the same engine behind Copilot CLI: a production-tested agent runtime you can invoke programmatically. No need to build your own orchestration—you define agent behavior, Copilot handles planning, tool invocation, file edits, and more.\n\n## Available SDKs\n\n| SDK                      | Location                                                                | Cookbook                                                                                              | Installation                                                                                                                                                                                                                               |\n| ------------------------ | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| **Node.js \u002F TypeScript** | [`nodejs\u002F`](.\u002Fnodejs\u002F)                                                  | [Cookbook](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fcookbook\u002Fcopilot-sdk\u002Fnodejs\u002FREADME.md) | `npm install @github\u002Fcopilot-sdk`                                                                                                                                                                                                          |\n| **Python**               | [`python\u002F`](.\u002Fpython\u002F)                                                  | [Cookbook](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fcookbook\u002Fcopilot-sdk\u002Fpython\u002FREADME.md) | `pip install github-copilot-sdk`                                                                                                                                                                                                           |\n| **Go**                   | [`go\u002F`](.\u002Fgo\u002F)                                                          | [Cookbook](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fcookbook\u002Fcopilot-sdk\u002Fgo\u002FREADME.md)     | `go get github.com\u002Fgithub\u002Fcopilot-sdk\u002Fgo`                                                                                                                                                                                                  |\n| **.NET**                 | [`dotnet\u002F`](.\u002Fdotnet\u002F)                                                  | [Cookbook](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fcookbook\u002Fcopilot-sdk\u002Fdotnet\u002FREADME.md) | `dotnet add package GitHub.Copilot.SDK`                                                                                                                                                                                                    |\n| **Rust**                 | [`rust\u002F`](.\u002Frust\u002F)                                                      | —                                                                                                     | `cargo add github-copilot-sdk`                                                                                                                                                                                                             |\n| **Java**                 | [`github\u002Fcopilot-sdk-java`](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-sdk-java) | [Cookbook](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fcookbook\u002Fcopilot-sdk\u002Fjava\u002FREADME.md)                                                                                                   | Maven coordinates\u003Cbr>`com.github:copilot-sdk-java`\u003Cbr>See instructions for [Maven](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-sdk-java?tab=readme-ov-file#maven) and [Gradle](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-sdk-java?tab=readme-ov-file#gradle) |\n\nSee the individual SDK READMEs for installation, usage examples, and API reference.\n\n## Getting Started\n\nFor a complete walkthrough, see the **[Getting Started Guide](.\u002Fdocs\u002Fgetting-started.md)**.\n\nQuick steps:\n\n1. **(Optional) Install the Copilot CLI**\n\nFor Node.js, Python, and .NET SDKs, the Copilot CLI is bundled automatically and no separate installation is required.\nFor the Go and Rust SDKs, [install the CLI manually](https:\u002F\u002Fgithub.com\u002Ffeatures\u002Fcopilot\u002Fcli) or ensure `copilot` is available in your PATH unless you opt into their application-level CLI bundling features.\n\n2. **Install your preferred SDK** using the commands above.\n\n3. **See the SDK README** for usage examples and API documentation.\n\n## Architecture\n\nAll SDKs communicate with the Copilot CLI server via JSON-RPC:\n\n```\nYour Application\n       ↓\n  SDK Client\n       ↓ JSON-RPC\n  Copilot CLI (server mode)\n```\n\nThe SDK manages the CLI process lifecycle automatically. You can also connect to an external CLI server—see the [Getting Started Guide](.\u002Fdocs\u002Fgetting-started.md#connecting-to-an-external-cli-server) for details on running the CLI in server mode.\n\n## FAQ\n\n### Do I need a GitHub Copilot subscription to use the SDK?\n\nYes, a GitHub Copilot subscription is required to use the GitHub Copilot SDK, **unless you are using BYOK (Bring Your Own Key)**. With BYOK, you can use the SDK without GitHub authentication by configuring your own API keys from supported LLM providers. For standard usage (non-BYOK), refer to the [GitHub Copilot pricing page](https:\u002F\u002Fgithub.com\u002Ffeatures\u002Fcopilot#pricing), which includes a free tier with limited usage.\n\n### How does billing work for SDK usage?\n\nBilling for the GitHub Copilot SDK is based on the same model as the Copilot CLI, with each prompt being counted towards your premium request quota. For more information on premium requests, see [Requests in GitHub Copilot](https:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Fconcepts\u002Fbilling\u002Fcopilot-requests).\n\n### Does it support BYOK (Bring Your Own Key)?\n\nYes, the GitHub Copilot SDK supports BYOK (Bring Your Own Key). You can configure the SDK to use your own API keys from supported LLM providers (e.g. OpenAI, Azure AI Foundry, Anthropic) to access models through those providers. See the **[BYOK documentation](.\u002Fdocs\u002Fauth\u002Fbyok.md)** for setup instructions and examples.\n\n**Note:** BYOK uses key-based authentication only. Microsoft Entra ID (Azure AD), managed identities, and third-party identity providers are not supported.\n\n### What authentication methods are supported?\n\nThe SDK supports multiple authentication methods:\n\n- **GitHub signed-in user** - Uses stored OAuth credentials from `copilot` CLI login\n- **OAuth GitHub App** - Pass user tokens from your GitHub OAuth app\n- **Environment variables** - `COPILOT_GITHUB_TOKEN`, `GH_TOKEN`, `GITHUB_TOKEN`\n- **BYOK** - Use your own API keys (no GitHub auth required)\n\nSee the **[Authentication documentation](.\u002Fdocs\u002Fauth\u002Findex.md)** for details on each method.\n\n### Do I need to install the Copilot CLI separately?\n\nNo — for Node.js, Python, and .NET SDKs, the Copilot CLI is bundled automatically as a dependency. You do not need to install it separately.\n\nFor Go and Rust SDKs, the CLI is not bundled by default. Install the CLI manually, ensure `copilot` is available in your PATH, or opt into their application-level CLI bundling features.\n\nAdvanced: You can override the CLI binary or connect to an external server. See the individual SDK README for language-specific options.\n\n### What tools are enabled by default?\n\nBy default, the SDK exposes the Copilot CLI's first-party tools, similar to running the CLI with `--allow-all`. Tool execution is still governed by each SDK's permission handler, so applications can approve, deny, or customize tool calls. You can customize tool availability by configuring the SDK client options to enable and disable specific tools. Refer to the individual SDK documentation for details on tool configuration and to the Copilot CLI documentation for the list of available tools.\n\n### Can I use custom agents, skills or tools?\n\nYes, the GitHub Copilot SDK allows you to define custom agents, skills, and tools. You can extend the functionality of the agents by implementing your own logic and integrating additional tools as needed. Refer to the SDK documentation of your preferred language for more details.\n\n### Are there instructions or SDK guidance for Copilot to speed up development?\n\nYes, check out the custom instructions and SDK-specific guidance:\n\n- **[Node.js \u002F TypeScript](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Finstructions\u002Fcopilot-sdk-nodejs.instructions.md)**\n- **[Python](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Finstructions\u002Fcopilot-sdk-python.instructions.md)**\n- **[.NET](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Finstructions\u002Fcopilot-sdk-csharp.instructions.md)**\n- **[Go](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Finstructions\u002Fcopilot-sdk-go.instructions.md)**\n- **[Rust](.\u002Frust\u002FREADME.md)** (SDK guidance; custom instructions not yet published)\n- **[Java](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-sdk-java\u002Fblob\u002Fmain\u002Finstructions\u002Fcopilot-sdk-java.instructions.md)**\n\n### What models are supported?\n\nAll models available via Copilot CLI are supported in the SDK. The SDK also exposes a method which will return the models available so they can be accessed at runtime.\n\n### Is the SDK production-ready?\n\nThe GitHub Copilot SDK is currently in Public Preview. While it is functional and can be used for development and testing, it may not yet be suitable for production use.\n\n### How do I report issues or request features?\n\nPlease use the [GitHub Issues](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fcopilot-sdk\u002Fissues) page to report bugs or request new features. We welcome your feedback to help improve the SDK.\n\n## Quick Links\n\n- **[Documentation](.\u002Fdocs\u002Findex.md)** – Full documentation index\n- **[Getting Started](.\u002Fdocs\u002Fgetting-started.md)** – Tutorial to get up and running\n- **[Setup Guides](.\u002Fdocs\u002Fsetup\u002Findex.md)** – Architecture, deployment, and scaling\n- **[Authentication](.\u002Fdocs\u002Fauth\u002Findex.md)** – GitHub OAuth, BYOK, and more\n- **[Features](.\u002Fdocs\u002Ffeatures\u002Findex.md)** – Hooks, custom agents, MCP, skills, and more\n- **[Troubleshooting](.\u002Fdocs\u002Ftroubleshooting\u002Fdebugging.md)** – Common issues and solutions\n- **[Cookbook](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fcookbook\u002Fcopilot-sdk)** – Practical recipes for common tasks across all languages\n- **[More Resources](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fcollections\u002Fcopilot-sdk.md)** – Additional examples, tutorials, and community resources\n\n## Unofficial, Community-maintained SDKs\n\n⚠️ Disclaimer: These are unofficial, community-driven SDKs and they are not supported by GitHub. Use at your own risk.\n\n| SDK         | Location                                                 |\n| ----------- | -------------------------------------------------------- |\n| **Clojure** | [copilot-community-sdk\u002Fcopilot-sdk-clojure][sdk-clojure] |\n| **C++**     | [0xeb\u002Fcopilot-sdk-cpp][sdk-cpp]                          |\n\n[sdk-cpp]: https:\u002F\u002Fgithub.com\u002F0xeb\u002Fcopilot-sdk-cpp\n[sdk-clojure]: https:\u002F\u002Fgithub.com\u002Fcopilot-community-sdk\u002Fcopilot-sdk-clojure\n\n## Contributing\n\nSee [CONTRIBUTING.md](.\u002FCONTRIBUTING.md) for contribution guidelines.\n\n## License\n\nMIT\n","GitHub Copilot SDK 是一个多平台的软件开发工具包，用于将 GitHub Copilot Agent 集成到应用程序和服务中。它支持多种编程语言如 Python、TypeScript、Go、.NET 和 Java，并且提供了一个技术预览版的 Rust SDK。其核心技术特点是通过暴露 Copilot CLI 同样的引擎来实现生产级的代理运行时调用，允许开发者定义代理行为，而 Copilot 负责规划、工具调用、文件编辑等任务。该项目适合需要在自己的应用或服务中嵌入 AI 辅助编码功能的场景，无论是提高开发效率还是增强用户体验都能从中受益。",2,"2026-06-11 03:31:54","trending"]