Back to articles
Get started with GitHub Copilot SDK

Get started with GitHub Copilot SDK

via Dev.toChris Noring

Did you know GitHub Copilot now has an SDK and that you can leverage your existing license to build AI integrations into your app? No, well I hope I have you attention now. Install You need two pieces here to get started: GitHub Copilot CLI A supported runtime, which at present means either Node.js, .NET, Python or Go Then you need to install the SDK for your chosen runtime like so: pip install github-copilot-sdk The parts So what do you need to know to get started? There are three concepts: Client , you need to create and instance of it. Additionally you need to start and stop it when you're done with it. Session . The session takes an object where you can set things like model, system prompt and more. Also, the session is what you talk when you want to carry out a request. Response . The response contains your LLM response. Below is an example program using these three concepts. As you can see we choose "gpt-4.1" as model but this can be changed. See also how we pass the prompt to th

Continue reading on Dev.to

Opens in a new tab

Read Full Article
5 views

Related Articles