You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+66-9Lines changed: 66 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,31 @@
1
-
# Copilot CLI SDKs
1
+
# GitHub Copilot CLI SDKs
2
2
3
-
Language-specific SDKs for programmatic access to the GitHub Copilot CLI.
3
+

4
4
5
-
All SDKs are in technical preview and may change in breaking ways as we move towards a stable release.
5
+
Agents for every app.
6
+
7
+
Embed Copilot's agentic workflows in your application—now available in Technical preview as a programmable SDK for Python, TypeScript, Go, and .NET.
8
+
9
+
The 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.
See the individual SDK READMEs for installation, usage examples, and API reference.
17
22
18
23
## Getting Started
19
24
25
+
For a complete walkthrough, see the **[Getting Started Guide](./docs/getting-started.md)**.
26
+
27
+
Quick steps:
28
+
20
29
1.**Install the Copilot CLI:**
21
30
22
31
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.
@@ -39,6 +48,54 @@ Your Application
39
48
40
49
The SDK manages the CLI process lifecycle automatically. You can also connect to an external CLI server—see individual SDK docs for details.
41
50
51
+
## FAQ
52
+
53
+
### Do I need a GitHub Copilot subscription to use the SDK?
54
+
55
+
Yes, a GitHub Copilot subscription is required to use the GitHub Copilot SDK. Refer to the [GitHub Copilot pricing page](https://github.com/features/copilot#pricing). You can use the free tier of the Copilot CLI, which includes limited usage.
56
+
57
+
### How does billing work for SDK usage?
58
+
59
+
Billing 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).
60
+
61
+
### Does it support BYOK (Bring Your Own Key)?
62
+
63
+
Yes, the GitHub Copilot SDK supports BYOK. You can configure the SDK to use your own encryption keys for data security. Refer to the individual SDK documentation for instructions on setting up BYOK.
64
+
65
+
### Do I need to install the Copilot CLI separately?
66
+
67
+
Yes, the Copilot CLI must be installed separately. The SDKs communicate with the Copilot CLI in server mode to provide agent capabilities.
68
+
69
+
### What tools are enabled by default?
70
+
71
+
By 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.
72
+
73
+
### Can I use custom agents, skills or tools?
74
+
75
+
Yes, 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.
76
+
77
+
### Are there instructions for Copilot to speed up development with the SDK?
78
+
79
+
Yes, check out the custom instructions at [`github/awesome-copilot`](https://github.com/github/awesome-copilot/blob/main/collections/copilot-sdk.md).
80
+
81
+
### What models are supported?
82
+
83
+
All 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.
84
+
85
+
### Is the SDK production-ready?
86
+
87
+
The 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.
88
+
89
+
### How do I report issues or request features?
90
+
91
+
Please 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.
92
+
93
+
## Quick Links
94
+
95
+
-**[Getting Started](./docs/getting-started.md)** – Tutorial to get up and running
96
+
-**[Cookbook](./cookbook/README.md)** – Practical recipes for common tasks across all languages
97
+
-**[Samples](./samples/README.md)** – Video walkthroughs and sample projects
98
+
42
99
## Contributing
43
100
44
101
See [CONTRIBUTING.md](./CONTRIBUTING.md) for contribution guidelines.
This cookbook collects small, focused recipes showing how to accomplish common tasks with the GitHub Copilot SDK across languages. Each recipe is intentionally short and practical, with copy‑pasteable snippets and pointers to fuller examples and tests.
4
+
5
+
## Recipes by Language
6
+
7
+
### .NET (C#)
8
+
9
+
-[Error Handling](dotnet/error-handling.md): Handle errors gracefully including connection failures, timeouts, and cleanup.
- Propose or add a new recipe by creating a markdown file in your language's `cookbook/` folder and a runnable example in `recipe/`
82
+
- Follow repository guidance in [CONTRIBUTING.md](../CONTRIBUTING.md)
83
+
84
+
## Status
85
+
86
+
Cookbook structure is complete with 4 recipes across all 4 supported languages. Each recipe includes both markdown documentation and runnable examples.
This folder hosts short, practical recipes for using the GitHub Copilot SDK with .NET. Each recipe is concise, copy‑pasteable, and points to fuller examples and tests.
4
+
5
+
## Recipes
6
+
7
+
-[Error Handling](error-handling.md): Handle errors gracefully including connection failures, timeouts, and cleanup.
-[Managing Local Files](managing-local-files.md): Organize files by metadata using AI-powered grouping strategies.
10
+
-[PR Visualization](pr-visualization.md): Generate interactive PR age charts using GitHub MCP Server.
11
+
-[Persisting Sessions](persisting-sessions.md): Save and resume sessions across restarts.
12
+
13
+
## Contributing
14
+
15
+
Add a new recipe by creating a markdown file in this folder and linking it above. Follow repository guidance in [CONTRIBUTING.md](../../CONTRIBUTING.md).
16
+
17
+
## Status
18
+
19
+
This README is a scaffold; recipe files are placeholders until populated.
0 commit comments