[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115832":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},115832,"copilot-sdk","microsoft\u002Fcopilot-sdk","microsoft","Multi-platform SDK for integrating GitHub Copilot Agent into apps and services","",null,"Java",10705,1534,115,178,0,4,24,17,91.96,"MIT License",false,"main",true,[],"2026-11-23 19:33:08","2026-11-23 16:07:23","# Microsoft Copilot SDK\n\n> [!IMPORTANT]\n> **GitHub Copilot SDK is becoming Microsoft Copilot SDK**, the programmable interface for the Microsoft Copilot harness, the shared agent foundation used across Microsoft and GitHub products.\n>\n> The SDK repository will move to the Microsoft organization as part of a phased transition. Existing package names, namespaces, and some documentation may continue to reference GitHub Copilot SDK during the transition. **No immediate changes are required for existing users.** [Learn more about the transition](https:\u002F\u002Faka.ms\u002Fcopilot-harness\u002Fannounce).\n> \n> Support for the Copilot SDK remains the same. For more information: [SUPPORT.md](SUPPORT.md)\n\n[![NPM Downloads](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdm\u002F%40microsoft%2Fcopilot-sdk?label=npm)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@microsoft\u002Fcopilot-sdk)\n[![PyPI - Downloads](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fdm\u002Fmicrosoft-copilot-sdk?label=PyPI)](https:\u002F\u002Fpypi.org\u002Fproject\u002Fmicrosoft-copilot-sdk\u002F)\n[![NuGet Downloads](https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fdt\u002FMicrosoft.Copilot.SDK?label=NuGet)](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FMicrosoft.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\u002Fmicrosoft\u002Fcopilot-sdk\u002Fgo\u002Fv2)\n[![crates.io](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Fcopilot-sdk?label=crates.io)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fcopilot-sdk)\n[![Maven Central](https:\u002F\u002Fimg.shields.io\u002Fmaven-central\u002Fv\u002Fcom.microsoft\u002Fcopilot-sdk?label=Maven%20Central)](https:\u002F\u002Fcentral.sonatype.com\u002Fartifact\u002Fcom.microsoft\u002Fcopilot-sdk)\n\nAgents for every app.\n\nEmbed Copilot's agentic workflows in your application with the Microsoft Copilot SDK for Python, TypeScript, Go, .NET, Java, and Rust.\n\nThe Microsoft 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                                                                                                                                                                                                                               | API docs                                                                       |\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 @microsoft\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 microsoft-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\u002Fmicrosoft\u002Fcopilot-sdk\u002Fgo\u002Fv2`                                                                                                                                                                                                  | [API docs](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fmicrosoft\u002Fcopilot-sdk\u002Fgo\u002Fv2#readme-api-reference) |\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 Microsoft.Copilot.SDK`                                                                                                                                                                                                    |                                                                                |\n| **Rust**                 | [`rust\u002F`](.\u002Frust\u002F)                                                      | —                                                                                                     | `cargo add copilot-sdk`                                                                                                                                                                                                             | [API docs](https:\u002F\u002Fdocs.rs\u002Fcopilot-sdk\u002Flatest\u002Fcopilot_sdk\u002F#api-reference) |\n| **Java**                 | [`java\u002F`](.\u002Fjava\u002F) | [Cookbook](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fcookbook\u002Fcopilot-sdk\u002Fjava\u002FREADME.md)                                                                                                   | Maven coordinates\u003Cbr>`com.microsoft:copilot-sdk`\u003Cbr>See instructions for [Maven](.\u002Fjava\u002FREADME.md#maven) and [Gradle](.\u002Fjava\u002FREADME.md#gradle) | [API docs](https:\u002F\u002Fjavadoc.io\u002Fdoc\u002Fcom.microsoft\u002Fcopilot-sdk\u002Flatest\u002F) |\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\nA separate CLI installation is not required.\nNode.js and .NET include platform runtime artifacts, Python downloads them, and Rust bundles them with its default features. Go applications must run the bundler or provide a compatible runtime package; Java applications must add their platform runtime classifier. Follow the language README before starting a client.\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 drive the Copilot agent runtime over protocol-4 JSON-RPC. The runtime is a standalone component, separate from the Copilot CLI. By default, SDK v2 loads the native Rust runtime into your application through a C ABI and carries framed JSON-RPC messages over an in-memory connection. It does not embed a Node.js interpreter or start a separate runtime process:\n\n```\nYour Application\n       ↓\n  SDK Client\n       ↓ JSON-RPC (in memory, C ABI)\n  Native Copilot runtime\n```\n\nThe SDK manages its runtime host, but the native library remains loaded for the application process lifetime. In-process hosting provides neither crash isolation nor a sandbox. See [Run the Copilot runtime in process](.\u002Fdocs\u002Fsetup\u002Fin-process-runtime.md) for requirements and v2 migration options.\n\nYou can also run the runtime outside your application process:\n\n- **Spawned child process**: select a spawned stdio or TCP connection (`RuntimeConnection.forSpawnedStdio()` or `RuntimeConnection.forSpawnedTcp()` in TypeScript and Java; each SDK has an equivalent). The SDK starts the runtime as a child process and manages its lifecycle. Use it when you need crash isolation or per-client process configuration.\n- **Standalone runtime server**: run `copilot-runtime --server` yourself and attach to it over TCP with `RuntimeConnection.forTcp(host, port)`. One multi-tenant runtime server can serve many SDK clients and concurrent sessions. See [Connecting to a standalone runtime server](.\u002Fdocs\u002Fgetting-started.md#connecting-to-a-standalone-runtime-server).\n\n### Portable elicitation schemas\n\nFor form elicitation callbacks, the portable schema contract is an object form\nwith modeled `properties` and optional `required` fields (`type: \"object\"` on\nthe wire; an SDK may represent the object type implicitly). Applications that\nsupport multiple SDK languages must use the modeled property definitions and\nmust not depend on additional schema metadata (such as a top-level `title`) or\non the insertion order of `properties`.\n\nNode.js and Rust pass through the wire schema, including additional metadata\nand property order. Python, Go, .NET, and Java reconstruct the callback schema\nfrom the modeled fields and do not offer that same preservation guarantee.\nTreat wire-schema preservation as a language-specific capability, not a\ncross-language requirement.\n\n### Agent Finder Skill installation APIs\n\nRuntimes that grant `skill-confirmed-installation` expose\n`skills.planInstall`, `skills.applyInstall`, `skills.planUninstall`,\n`skills.applyUninstall`, `skills.installations.list\u002Frecover\u002Fstatus\u002Fcancel`,\nand `skills.installations.setEnabled`. Skill install reviews include the full\nverified `SKILL.md` content up to 256 KiB, catalogue identity, file manifest,\nand non-absolute personal target location. Summaries report `ownershipState`,\n`configuredEnabled`, `sessionState`, retained catalogue identity and\n`installedAt`.\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 Microsoft 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 Microsoft Copilot SDK is based on the same model as the Copilot CLI, with each prompt being counted towards your usage allowance. For more information on Copilot usage billing, see [Usage in GitHub Copilot](https:\u002F\u002Fdocs.github.com\u002Fen\u002Fcopilot\u002Freference\u002Fcopilot-billing\u002Fmodels-and-pricing).\n\n### Does it support BYOK (Bring Your Own Key)?\n\nYes, the Microsoft 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, Microsoft 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\u002FREADME.md)** for details on each method.\n\n### Do I need to install the Copilot CLI separately?\n\nNo. The default needs a compatible native runtime, not a separately running CLI. Node.js, .NET, Python, and Rust provide acquisition or bundling; Go needs application-level bundling or an explicit runtime package, and Java needs the platform classifier dependency.\n\nAdvanced: You can run a runtime binary you supply as a child process, or connect to a standalone runtime 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 Microsoft 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\u002Fawesome-copilot\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 Microsoft Copilot SDK is generally available and follows semantic versioning. See [CHANGELOG.md](.\u002FCHANGELOG.md) for release notes.\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\u002FREADME.md)** – Full documentation index\n- **[Getting Started](.\u002Fdocs\u002Fgetting-started.md)** – Tutorial to get up and running\n- **[Setup Guides](.\u002Fdocs\u002Fsetup\u002FREADME.md)** – Architecture, deployment, and scaling\n- **[Authentication](.\u002Fdocs\u002Fauth\u002FREADME.md)** – GitHub OAuth, BYOK, and more\n- **[Features](.\u002Fdocs\u002Ffeatures\u002FREADME.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\u002Fplugins\u002Fcopilot-sdk\u002FREADME.md)** – SDK instructions for C#, Go, Node.js\u002FTypeScript, and Python, plus a skill\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## License\n\nMIT\n","Microsoft Copilot SDK 是一个跨平台软件开发工具包，用于将 Microsoft Copilot 的智能代理能力集成到各类应用程序和服务中。它提供统一的编程接口，封装了 Copilot 底层的生产级代理运行时（含任务规划、工具调用、文件编辑等能力），支持 Java、Python、TypeScript、Go、.NET 和 Rust 等多语言；开发者无需自建编排逻辑，仅需定义行为即可嵌入端到端的 AI 工作流。适用于需要增强代码辅助、自动化操作或自然语言驱动交互的企业应用、IDE 插件、CLI 工具及内部开发平台等场景。",2,"2026-11-24 04:52:19","top_language"]