GitHub Copilot
GitHub Copilot for VS Code supports custom Bring-Your-Own-Key model endpoints in Copilot Chat. You can point Copilot at Corveil for unified logging, budgets, and guardrails on Copilot traffic.
Prerequisites
- VS Code with the GitHub Copilot and Copilot Chat extensions installed
- A Copilot subscription on a plan that allows custom model endpoints
- A Corveil virtual API key (
sk-citadel-...)
Mode
Direct mode only. Copilot Chat treats Corveil as a generic OpenAI-compatible provider.
1. Add a custom model in VS Code
Open the command palette (Cmd+Shift+P / Ctrl+Shift+P) and run "GitHub Copilot: Manage Models > OpenAI Compatible". Provide:
- Base URL:
https://your-corveil-host/v1 - API key:
sk-citadel-your-key-here - Model ID: any model exposed by your Corveil instance (e.g.
or-gpt-5.1)
2. Select the Corveil model
In the Copilot Chat picker, choose the model you just added. All chat completions for that model will route through Corveil.
Caveats
- Inline completions ("ghost text") may continue to use GitHub's hosted backend — only chat is reliably routable today
- Copilot's custom model UI is evolving; the menu name may differ between VS Code versions