{"id":37747774,"url":"https://github.com/github/copilot-sdk","last_synced_at":"2026-02-06T12:45:35.424Z","repository":{"id":332676895,"uuid":"1133883850","full_name":"github/copilot-sdk","owner":"github","description":"Multi-platform SDK for integrating GitHub Copilot Agent into apps and services","archived":false,"fork":false,"pushed_at":"2026-01-16T20:48:42.000Z","size":494,"stargazers_count":531,"open_issues_count":16,"forks_count":35,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-01-17T01:00:09.861Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-14T00:23:22.000Z","updated_at":"2026-01-17T00:43:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/github/copilot-sdk","commit_stats":null,"previous_names":["github/copilot-sdk"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/github/copilot-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcopilot-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcopilot-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcopilot-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcopilot-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/copilot-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcopilot-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T14:18:44.239Z","updated_at":"2026-02-06T12:45:35.414Z","avatar_url":"https://github.com/github.png","language":"TypeScript","readme":"# GitHub Copilot CLI SDKs\n\n![GitHub Copilot SDK](./assets/RepoHeader_01.png)\n\n[![NPM Downloads](https://img.shields.io/npm/dm/%40github%2Fcopilot-sdk?label=npm)](https://www.npmjs.com/package/@github/copilot-sdk)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/github-copilot-sdk?label=PyPI)](https://pypi.org/project/github-copilot-sdk/)\n[![NuGet Downloads](https://img.shields.io/nuget/dt/GitHub.Copilot.SDK?label=NuGet)](https://www.nuget.org/packages/GitHub.Copilot.SDK)\n\nAgents for every app.\n\nEmbed Copilot's agentic workflows in your application—now available in Technical preview as a programmable SDK for Python, TypeScript, Go, and .NET.\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                                          | Installation                              |\n| ------------------------ | ------------------------------------------------- | ----------------------------------------- |\n| **Node.js / TypeScript** | [`cookbook/nodejs/`](https://github.com/github/awesome-copilot/blob/main/cookbook/copilot-sdk/nodejs/README.md) | `npm install @github/copilot-sdk`         |\n| **Python**               | [`cookbook/python/`](https://github.com/github/awesome-copilot/blob/main/cookbook/copilot-sdk/python/README.md) | `pip install github-copilot-sdk`          |\n| **Go**                   | [`cookbook/go/`](https://github.com/github/awesome-copilot/blob/main/cookbook/copilot-sdk/go/README.md)         | `go get github.com/github/copilot-sdk/go` |\n| **.NET**                 | [`cookbook/dotnet/`](https://github.com/github/awesome-copilot/blob/main/cookbook/copilot-sdk/dotnet/README.md) | `dotnet add package GitHub.Copilot.SDK`   |\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](./docs/getting-started.md)**.\n\nQuick steps:\n\n1. **Install the Copilot CLI:**\n\n   Follow the [Copilot CLI installation guide](https://docs.github.com/en/copilot/how-tos/set-up/install-copilot-cli) to install the CLI, or ensure `copilot` is available in your PATH.\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](./docs/getting-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://github.com/features/copilot#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://docs.github.com/en/copilot/concepts/billing/copilot-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](./docs/auth/byok.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- **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](./docs/auth/index.md)** for details on each method.\n\n### Do I need to install the Copilot CLI separately?\n\nYes, the Copilot CLI must be installed separately. The SDKs communicate with the Copilot CLI in server mode to provide agent capabilities.\n\n### What tools are enabled by default?\n\nBy default, the SDK will operate the Copilot CLI in the equivalent of `--allow-all` being passed to the CLI, enabling all first-party tools, which means that the agents can perform a wide range of actions, including file system operations, Git operations, and web requests. 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 Copilot CLI for the list of tools available.\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 for Copilot to speed up development with the SDK?\n\nYes, check out the custom instructions at [`github/awesome-copilot`](https://github.com/github/awesome-copilot/blob/main/collections/copilot-sdk.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 Technical 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://github.com/github/copilot-sdk/issues) page to report bugs or request new features. We welcome your feedback to help improve the SDK.\n\n## Quick Links\n\n- **[Getting Started](./docs/getting-started.md)** – Tutorial to get up and running\n- **[Authentication](./docs/auth/index.md)** – GitHub OAuth, BYOK, and more\n- **[Cookbook](https://github.com/github/awesome-copilot/blob/main/cookbook/copilot-sdk)** – Practical recipes for common tasks across all languages\n- **[More Resources](https://github.com/github/awesome-copilot/blob/main/collections/copilot-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| **Java**      | [copilot-community-sdk/copilot-sdk-java][sdk-java] |\n| **Rust**      | [copilot-community-sdk/copilot-sdk-rust][sdk-rust] |\n| **C++**       | [0xeb/copilot-sdk-cpp][sdk-cpp]                    |\n| **Clojure**   | [krukow/copilot-sdk-clojure][sdk-clojure]          |\n\n[sdk-java]: https://github.com/copilot-community-sdk/copilot-sdk-java\n[sdk-rust]: https://github.com/copilot-community-sdk/copilot-sdk-rust\n[sdk-cpp]: https://github.com/0xeb/copilot-sdk-cpp\n[sdk-clojure]: https://github.com/krukow/copilot-sdk-clojure\n\n## Contributing\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md) for contribution guidelines.\n\n## License\n\nMIT\n","funding_links":[],"categories":["🚀 AI Tools for Vim, Neovim, and Terminal","Agentic Frameworks","TypeScript","Agent Frameworks"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fcopilot-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fcopilot-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fcopilot-sdk/lists"}