Loading video...

Video Failed to Load

Go Home

Today we're open sourcing a technical preview of the GitHub Copilot CLI SDK. Build agents with custom tools in Go, Python, TypeScript, and C#. Built on the same agent loop that powers the Copilot CLI and GitHub Coding Agent. Supports BYOK, and any model. Here is the Copilot CLI...

184,599 views • 9 months ago •via X (Twitter)

46 Comments

Evan Boyle's profile picture
Evan Boyle9 months ago

In the last few weeks, we've onboarded dozens of teams across Microsoft and GitHub onto the new GitHub Copilot CLI SDK. Expect to see many new agentic products ship in the coming weeks. Looking forward to collaborating with the community and hearing your feedback!

JoshXT's profile picture
JoshXT9 months ago

Can you only use it with a fine grained PAT or are there scopes we can add to OAuth login to access it? I have a GitHub OAuth provider in AGiXT that would be great to reuse to add an "Ask GitHub Copilot" ability without users having to do anything but reauthenticate.

Evan Boyle's profile picture
Evan Boyle9 months ago

We are working on org-scoped fine-grained PATs for higher rate limits, especially for automation/CI scenarios. More news on this soon!

👾AI Khwarizmi👾's profile picture
👾AI Khwarizmi👾9 months ago

Daaaaamn this is 🔥🔥🔥

Marc-André Moreau's profile picture
Marc-André Moreau9 months ago

I'm actually interested in trying the Excel integration of GitHub Copilot, is that some internal demo using this new Copilot SDK or is this already available somewhere I can just download and install it?

Aaliya's profile picture
Aaliya9 months ago

This is awesome. Open-sourcing the Copilot CLI SDK and supporting any model opens up so many possibilities for custom

The Longer Game's profile picture
The Longer Game9 months ago

Opening up the same agent loop behind Copilot and letting teams bring their own models and tools makes this far more than a demo. The ability to wire agents into real workflows like Excel is where this starts to feel genuinely useful in production.

Marc-André Moreau's profile picture
Marc-André Moreau9 months ago

I assume this requires Copilot CLI to be installed separately? I'm interested in integrating GitHub Copilot inside Remote Desktop Manager (.NET) for our built-in AI assistant which supports API keys from multiple AI providers, but I'd like a "login with GitHub Copilot" option

Evan Boyle's profile picture
Evan Boyle9 months ago

For node it is automatically included as an NPM dependency, for other languages we expect that there is a `copilot` on the PATH.

Daniel Häfele's profile picture
Daniel Häfele9 months ago

@awakecoding Can I just include a version of the copilot CLI in my software, so I can use the Copilot CLI SDK in it? What's the license there, the CLI isn't open-source.

Marc-André Moreau's profile picture
Marc-André Moreau9 months ago

@_Evan_Boyle Copilot CLI is updated so frequently that you'd still be better off supporting a copy of it installed separately, but I have the same comment. A pure .NET SDK for Copilot without requiring Copilot CLI would be ideal in our case

Daniel Häfele's profile picture
Daniel Häfele9 months ago

@_Evan_Boyle Oh you're right. I didn't pay attention to it, but seems like almost daily updates. Maybe it's worth testing it again, just to compare it to my beloved Claude Code :D

Marc-André Moreau's profile picture
Marc-André Moreau9 months ago

@_Evan_Boyle Wait a few days at least, I checked it this week and custom slash commands aren't listable yet

Evan Boyle's profile picture
Evan Boyle9 months ago

@haefeledev Custom slash commands are coming soon! Porting the core coding agent loop to another language would be a pretty huge lift. Our architecture for the Copilot SDK is similar to what others like Codex and Claude have done in this space.

Shweta Lodha | AI & Automation's profile picture
Shweta Lodha | AI & Automation8 months ago

How to Create AI Agents with Custom Functions Using GitHub Copilot SDK

Everlier's profile picture
Everlier9 months ago

BYOM is really cool! I have lots of agents with OpenAI compatible API

Ananya Patelik's profile picture
Ananya Patelik9 months ago

agents everywhere! love seeing the loop open up. already dreaming up a python toolchain with a dash of chaos. thanks for sharing the keys to the playground!

Brad Wardell's profile picture
Brad Wardell9 months ago

Do you have an ACP framework in there?

Evan Boyle's profile picture
Evan Boyle9 months ago

Not in the SDK. In the CLI we do have a hidden —acp flag that we haven’t shipped yet. Still in development but feel free to give it a try.

Marlene Mhangami's profile picture
Marlene Mhangami9 months ago

@draginol Yes!! Cc @willmcgugan hoping this works so I can test things out with Toad!!!

Evan Boyle's profile picture
Evan Boyle9 months ago

@draginol @willmcgugan Happy to collaborate @willmcgugan!

Will McGugan's profile picture
Will McGugan9 months ago

@marlene_zw @draginol Likewise. Would love to try running it under Toad. Let me know if I can assist.

Evan Boyle's profile picture
Evan Boyle9 months ago

@marlene_zw @draginol Just sent and intro email to some folks on our side.

Daniel Häfele's profile picture
Daniel Häfele9 months ago

Does Copilot CLI support the automatic workspace indexing feature from VSCode? This is what I'm referring to:

Evan Boyle's profile picture
Evan Boyle9 months ago

It does not, but in our experience the grep and agentic search tools we ship that run locally work just as well!

Marc-André Moreau's profile picture
Marc-André Moreau9 months ago

@haefeledev automatic workspace indexing from VSCode is *the* killer feature you have over the competition. You don't want good enough for Copilot CLI, you want the best which you already have in your other tools. Your only true competition in that area is Cursor in my mind

Marc-André Moreau's profile picture
Marc-André Moreau9 months ago

@haefeledev May it be with Copilot CLI or OpenCode, GitHub Copilot is really in a position to capture a lot of Claude Code users only by leveraging the GitHub workspace indexing. Please port it, full thread here:

Evan Boyle's profile picture
Evan Boyle9 months ago

@haefeledev Appreciate the feedback. We will think on it!

Otto Mixa's profile picture
Otto Mixa9 months ago

This is great! Inspires me to build similar add-in now. Thank you for sharing.

Wayne Nilsen's profile picture
Wayne Nilsen9 months ago

sadly can't use with cheap max 20x tokens

Ram Sharma's profile picture
Ram Sharma9 months ago

Cool

Himanshu Kumar's profile picture
Himanshu Kumar9 months ago

@_Evan_Boyle, the open-sourced SDK should help developers integrate custom tools into their Copilot workflows much easier.

MindMentors's profile picture
MindMentors9 months ago

Too late in the game. You guys started co-pilot, had millions of users for VS Code. And Claude ate not just your breakfast, lunch and dinner but ate you guys for after dinner late night snack. Not gonna work.

Jim de Vries's profile picture
Jim de Vries9 months ago

Sooooo, I can technically create a "debug" mode into my app that could catch errors in both web/api layers and automatically resolve them as I browse it? I have some stupid ideas for this, fun times ahead 🙃

shirtwascash🇺🇸⚒️🗽's profile picture
shirtwascash🇺🇸⚒️🗽9 months ago

What can this do that Claude Code can't and/or synergies with it? Personally a useful thing would be copilot replacing my n8n and make running local models much faster plug & play. Build all my outward APIs in a secure way to tap into like a LastPass

Evan Boyle's profile picture
Evan Boyle9 months ago

You can bring your own API keys and use any LLM model/provider including local LLMs!

shirtwascash🇺🇸⚒️🗽's profile picture
shirtwascash🇺🇸⚒️🗽9 months ago

there should really be some secret sauce with copilot that goes root access others can't, you guys have a lot of advantages I'd imagine. When I read "copilot" I think "the killer AI assistant", not necessarily going straight after the crowding CLI space. I should want to plug copilot into all of my CLIs for some unique benefits and ease of access. Just thoughts

Rishabh Gupta's profile picture
Rishabh Gupta9 months ago

Looking forward to it, Thanks Guys

amarjeet's profile picture
amarjeet9 months ago

The excel add-in for GH Copilot in use, has that been open sourced too?

Huseyn Hajiyev's profile picture
Huseyn Hajiyev9 months ago

Looks cool! 👍

Radek Voltr's profile picture
Radek Voltr9 months ago

so it is application calling copilot. Instead of copilot calling application via MCP. Still can't wrap my head about usage. Any idea anyone?

Evan Boyle's profile picture
Evan Boyle9 months ago

It is an agent framework. You can build your own agents with custom tools and prompts. It runs on top of the agent loop that powers the GitHub Copilot CLI.

Rahim Ali🚀🤖🔋's profile picture
Rahim Ali🚀🤖🔋9 months ago

@satyanadella These agents can than be access by copilot and studio?

symmetry's profile picture
symmetry9 months ago

Amazing

Neil Ghosh's profile picture
Neil Ghosh9 months ago

Isn't GH Copilot a coding agent, can it (via SDK) be used for General Purpose work flow? (e.g. Gemini API)

Evan Boyle's profile picture
Evan Boyle9 months ago

Yes, and yes. It is a coding agent, but the SDK allows you to customize and extend tools, prompts and behavior. The demo above has custom tools for interacting with Office documents.

Related Videos