KitPilot Copilot Bridge
Use GitHub Copilot's models from the KitPilot command-line agent.
KitPilot is a terminal AI coding
agent. By default it uses your own API keys (Anthropic, OpenAI, Gemini, …). This
companion extension is optional — install it only if you want KitPilot to use
GitHub Copilot instead.
Why an extension? Copilot's model API (vscode.lm) only runs inside VS Code, so
it can't be called from a standalone terminal. This extension runs inside your
editor and securely bridges Copilot to the KitPilot CLI over a local socket on
your machine — nothing leaves your computer beyond your normal Copilot requests.
Requirements
Setup
- Install this extension. It starts automatically — the status bar shows
🚀 KitPilot bridge when it's listening. (You can also run “KitPilot: Start
Copilot Bridge” / “…: Stop Copilot Bridge” from the Command Palette.)
- Open your project folder in VS Code.
- In a terminal in that same folder, run
kit and choose GitHub Copilot
in the connect picker — or run it directly:
kit --copilot "explain this codebase"
- On the first request, approve the Copilot consent prompt in VS Code.
The terminal's folder must match the folder open in VS Code — both derive the
same local socket from the path. (If you run kit from a different folder,
they won't connect.)
Choosing a Copilot model
Copilot offers models from multiple vendors. In the KitPilot session, run
/model to pick from the models your Copilot plan provides (GPT, Claude,
Gemini, …). KitPilot remembers your choice.
Troubleshooting
- CLI can't connect — make sure this extension is running (status bar) and
that your terminal is in the same folder VS Code has open.
- “No Copilot chat model available” — install and sign in to GitHub Copilot.
- It used my API key instead — you didn't choose Copilot; pass
--copilot or
pick it via kit --login.
Privacy & license
The bridge only listens on a local socket and forwards requests to Copilot via
VS Code's own API; it stores nothing and sends nothing to third parties.
Apache-2.0. KitPilot is a derivative work of Roo Code / Cline — see NOTICE.