Ampersand Bridge for GitHub Copilot Chat
Use ai& models directly from the GitHub Copilot Chat model picker in Visual Studio Code.
This extension is a native VS Code LanguageModelChatProvider. It validates your ai& API key, discovers the hosted models available to it, and streams OpenAI-compatible chat completions directly from https://api.aiand.com/v1 into Copilot Chat.
Ampersand Bridge is community-maintained and independent: it is not affiliated with, endorsed by, or supported by ai&. For the officially maintained experience, consider ai& for GitHub Copilot (aiand.aiand-copilot). See the security model for the exact network surface.
Highlights
- Direct ai& integration without a local proxy
- API keys owned by VS Code native provider configuration
- Multiple isolated entries with stable explicit IDs in Manage Language Models
- Live
/v1/models discovery with durable per-credential catalog snapshots
- Streaming text, reasoning output, token usage, and function-tool calls
- Per-model reasoning-effort lists that never send an unsupported effort
- Bounded retries for pre-stream transient failures only
- ai& credit balance and usage tracking with a status-bar item and quick-pick details
- Best-effort per-token pricing in the model picker, sourced from live API data or bundled estimates
- Opt-in fill-in-the-middle inline suggestions with measured model badges and reasoning suppressed
Quick start
- Install the extension. You need VS Code 1.125 or newer and GitHub Copilot Chat.
- Create an API key in the ai& console, or run Ampersand Bridge: Open API Keys.
- Open Copilot Chat, select Manage Models, add an Ampersand Bridge provider entry, name it, and enter the key.
- Choose any model returned for that key.
To use more than one key, add another Ampersand Bridge entry with a different name. The entry name is its identity: VS Code namespaces each entry's models per group, stores the key in its secure storage, and offers key updates on the entry. Use Ampersand Bridge: Manage Connection to refresh models, test inference, or show usage. Deleting an entry removes its VS Code-owned credential.
Context token counts are estimates. Tool-result text, tool arguments, thinking, and image inputs are included in context budgeting. If the service rejects a full context window, run /compact in Copilot Chat, reduce attachments or tool output, or start a new chat.
Documentation
Unofficial project; not affiliated with ai&, GitHub, or Microsoft. ai& usage limits and charges still apply. Licensed under MIT.