Get started with GitHub Copilot SDK, part 1 — CoPilot Blog | Neura Market
    Neura MarketNeura Market/CoPilot
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityCoPilotCoPilot
    DeepSeekDeepSeekStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityPluginsTrendingGenerate
    CoPilotBlogGet started with GitHub Copilot SDK, part 1
    Back to Blog
    Get started with GitHub Copilot SDK, part 1
    githubcopilot

    Get started with GitHub Copilot SDK, part 1

    Chris Noring March 4, 2026
    0 views

    This article explains what GitHub Copilot SDK is and why use it

    --- title: Get started with GitHub Copilot SDK, part 1 published: true description: This article explains what GitHub Copilot SDK is and why use it tags: copilot, python, ai, programming cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cty891qm0yhp71exdmoe.png # Use a ratio of 100:42 for best results. published_at: 2026-03-04 20:48 +0000 --- 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. {% youtube hvwGZqS4qF0 %} ## Series on Copilot SDK This series is about Copilot SDK and how you can leverage your existing GitHub Copilot license to integrate AI into your apps - Part 1 - install and your first app, **you're here** - [Part 2 - streamable responses](https://dev.to/azure/getting-started-with-github-copilot-part-2-streamable-responses-49a8) ## 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: ```sh 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 the function `send_and_wait`. ```python import asyncio from copilot import CopilotClient async def main(): client = CopilotClient() await client.start() session = await client.create_session({"model": "gpt-4.1"}) response = await session.send_and_wait({"prompt": "What is 2 + 2?"}) print(response.data.content) await client.stop() asyncio.run(main()) ``` Ok, now that we know what a simple program looks like, let's make something interesting, an FAQ responder. ## Your first app An FAQ for a web page, is often a pretty boring read. A way to make that more interesting for the end user is if they can instead chat with the FAQ, let's make that happen. Here's the plan: - Define a static FAQ - Add the FAQ as part of the prompt. - Make a request to to the LLM and print out the response. Let's build out the code little by little. First, let's define the FAQ information. **-1- FAQ information** ```python # faq.py faq = { "warranty": "Our products come with a 1-year warranty covering manufacturing defects. Please contact our support team for assistance.", "return_policy": "We offer a 30-day return policy for unused products in their original packaging. To initiate a return, please visit our returns page and follow the instructions.", "shipping": "We offer free standard shipping on all orders over $50. Expedited shipping options are available at checkout for an additional fee.", } ``` Next, let's add the call to the Copilot SDK **-2 Adding the LLM call** ```python import asyncio from copilot import CopilotClient def faq_to_string(faq: dict) -> str: return "\n".join([f"{key}: {value}" for key, value in faq.items()]) async def main(user_prompt: str = "Tell me about shipping"): client = CopilotClient() await client.start() prompt = f"Here's the FAQ, {faq_to_string(faq)}\n\nUser question: {user_prompt}\nAnswer:" session = await client.create_session({"model": "gpt-4.1"}) response = await session.send_and_wait({"prompt": prompt}) print(response.data.content) await client.stop() if __name__ == "__main__": print("My first app using the GitHub Copilot SDK!") print(f"[LOG] Asking the model about shipping information...") asyncio.run(main("Tell me about shipping")) ``` Note how we concatenate the FAQ data with the user's prompt: ```python prompt = f"Here's the FAQ, {faq_to_string(faq)}\n\nUser question: {user_prompt}\nAnswer:" ``` **-3- Let's run it** Now run it: ```sh uv run faq.py ``` You should see output like so: ```text My first app using the GitHub Copilot SDK! [LOG] Asking the model about shipping information... We offer free standard shipping on all orders over $50. Expedited shipping options are available at checkout for an additional fee. ``` ## What's next Check out the [official docs](https://github.com/github/copilot-sdk/blob/main/docs/getting-started.md)

    Tags

    githubcopilotpythonaiprogramming

    Comments

    More Blog

    View all
    Steer GitHub Copilot CLI Sessions Remotely from Any Devicegithubcopilot

    Steer GitHub Copilot CLI Sessions Remotely from Any Device

    Start a Copilot CLI session on your workstation, then monitor and steer it from the browser or your phone.

    M
    Marcel.L
    The Rise of the Fleet: Scaling My Engineering Workflow with Github Copilot Agentsagents

    The Rise of the Fleet: Scaling My Engineering Workflow with Github Copilot Agents

    In this post, I’ll walk you through how I use Copilot and my personal preferences for different...

    I
    Ivelin (Ivo)
    I Run a Solo Company with AI Agent Departmentsagents

    I Run a Solo Company with AI Agent Departments

    I built 8 AI agent departments using GitHub Copilot custom agents — CEO, CFO, COO, Lawyer, Accountant, Marketing, CTO, and an Improver. They share memory, consult each other, and self-improve. Here's how it works.

    J
    João Pedro Silva Setas
    How GPU-Powered Coding Agents Can Assist in Development of GPU-Accelerated Softwarejetson

    How GPU-Powered Coding Agents Can Assist in Development of GPU-Accelerated Software

    This blog post chronicles how VS Code equipped with GitHub Copilot powered by Claude Opus 4.6 was used to port the open-source whisper-asr-webservice project to NVIDIA Jetson hardware with full GPU acceleration — navigating over 15 build iterations, compiling CTranslate2 from source for aarch64 CUDA, working around Poetry resolver conflicts and pip wheel priority bugs, creating runtime compatibility shims for torchaudio, torch.load, and huggingface_hub API changes, testing all three ASR engines with self-generated speech audio, and ultimately forking the repo, opening a detailed pull request, and pushing a pre-built container image to Docker Hub — all driven by natural-language prompts — demonstrating how GPU-powered AI coding agents can come full circle by building GPU-accelerated software for edge devices like the Jetson Orin, unlocking practical automations such as automatic subtitle generation for Plex media libraries via Bazarr integration.

    P
    Paul DeCarlo
    38 Issues: Code Review Agent Showdown between BugBot, Copilot and Claudeai

    38 Issues: Code Review Agent Showdown between BugBot, Copilot and Claude

    AI code review tools promise to catch what human reviewers miss. But which one actually delivers? I...

    T
    Terence Tham
    Ran out of Cursor tokens and switched to GitHub Copilot: Side-by-Sideai

    Ran out of Cursor tokens and switched to GitHub Copilot: Side-by-Side

    Update, April 1 (and this is not a joke). Insider Preview version is way more usable and capable as...

    M
    Maxim Saplin

    Stay up to date

    Get the latest CoPilot prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for CoPilot and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.