Bundle GitHub Copilot CLI with your app using the Copilot SDK

Bundle GitHub Copilot CLI with your app using the Copilot SDK

April 1, 2026
ℹ️
Originally published on LinkedIn

If you’re building with the GitHub Copilot SDK, your app talks to a Copilot CLI process over JSON-RPC, but you don’t actually have to manage that CLI binary yourself 🤔

You can either:

1️⃣ Point to a local CLI binary, or 2️⃣ Connect to a remote CLI server

Both work well, but they assume someone has set up the CLI beforehand.

There’s a 3️⃣rd option 👉 Bundle the CLI with your app 📦

Every SDK (Node, Python, Go, .NET) supports shipping the CLI binary as part of your application’s package. Your users don’t install, or configure anything.

Node, Python, and .NET include the CLI as a separate file in the npm/pip/NuGet package

Go SDK takes this further 🚀

➡️ Install the go tool bundler: go get -tool https://lnkd.in/gBEnfBYF ➡️ Run go tool bundler before your build: the CLI gets embedded directly into your compiled binary using Go’s embed package.

Your app is now a single binary with zero external dependencies

You can also pin a specific CLI version: go tool bundler –cli-version X.Y.Z

I will also plan to update the FlightLog and TimeTracker app (built on top of Azure Cosmos DB) with this new approach.

Here is a quick demo

Last updated on