Use OpenProvider models in GitHub Copilot Chat
The OpenProvider VS Code extension connects Copilot Chat to anonymous Auto Free routing, optional browser login, direct provider keys, live model refresh, provider filters, tool calls, vision support, and reasoning output for compatible models.
ext install VK007.openprovider-vscodeBefore you connect
The extension relies on the current VS Code language model provider surface.
OpenProvider models appear through the Copilot Chat model picker.
Auto Free works without sign-in. Add provider keys only for higher limits or exact provider models.
Install and open the command palette
Install the extension from Visual Studio Marketplace, then use the VS Code command palette for all extension actions. The fastest no-login path is OpenProvider: Manage OpenProvider, then Use Auto Free.
- 01Install from Marketplace
Open the marketplace listing, install the extension, and reload VS Code if prompted.
- 02Start with Auto Free
Choose Use Auto Free or Select Model. Anonymous routes work immediately for lightweight chat and coding tasks.
- 03Refresh and pick a model
Refresh the catalog, filter by provider if needed, then choose Auto Free, sign in, or add a provider key for exact models.
How optional browser sign-in works
You do not need sign-in for Auto Free. When you want saved OpenProvider routes, the sign-in command opens OpenProvider in your browser at /api/vscode/connect. After Google sign-in, OpenProvider returns a one-time credential bundle to a temporary local callback server started by the extension. VS Code stores the result in SecretStorage, so you do not need to paste OpenProvider credentials manually.
Run OpenProvider: Manage OpenProvider, then choose Auto Free, Select Model, or Sign in.
Optional: sign in to the OpenProvider website and confirm your workspace credentials.
The browser posts the signed-in credential bundle back to VS Code on localhost.
Routing and model selection
Use openprovider/auto-free when you want OpenProvider to pick the best available free route. Auto Free works without sign-in, advertises a compact anonymous-safe context window, and retries across anonymous route providers. Choose an exact model when you need a specific provider, larger context window, tool support, image input support, or reasoning behavior.
Use OpenProvider models from the GitHub Copilot Chat model picker without leaving VS Code.
Start with Auto Free for fallback, or pin a specific provider model when your task needs stable behavior.
Expose exact-model capabilities to Copilot Chat when the selected model supports tool calls, images, and reasoning.
Use Auto Free without an OpenProvider account, then sign in or add provider keys only when you need higher limits.
Command palette reference
Switch back to anonymous Auto Free without browser sign-in.
Optionally open OpenProvider in your browser for saved routes and higher limits.
Bypass local cache and reload the OpenProvider model catalog.
Limit the model picker to one provider while testing routes.
Choose Auto Free, or pick an exact model and add that provider key when needed.
Open capability, token limit, provider, and route details for the selected model.
Point the extension at another OpenProvider deployment or API base URL.
Open all extension settings in the VS Code settings UI.
Remove the stored extension credentials from VS Code.
Extension settings
Most users can keep defaults. Adjust these settings when you are debugging provider behavior, running a custom endpoint, or tuning output budgets for long Copilot Chat sessions.
| Setting | Purpose | Default behavior |
|---|---|---|
openprovider.outputTokenBudget | Normal max-token budget for model responses. | Clamped to the selected model limit. |
openprovider.retryOutputTokenBudget | Smaller retry budget after empty streams or upstream rejections. | Used only on compact retries. |
openprovider.forwardSamplingParameters | Forward temperature and top_p to providers that support them. | Disabled by default for broader route compatibility. |
openprovider.freeRouteCatalogUrls | Optional catalog URLs for Auto Free routing. | Uses bundled anonymous catalogs when empty. |
openprovider.freeRouteBaseUrls | Optional route base URLs for Auto Free traffic. | Uses bundled anonymous route URLs when empty. |
openprovider.freeRouteGatewayUrl | Optional gateway URL for Auto Free fallback. | Reads the configured OpenProvider gateway env when empty. |
Credential handling
Browser and server clients should call /v1/* with OpenProvider API keys. The VS Code extension can use anonymous Auto Free without secrets, store direct provider keys in VS Code SecretStorage, or receive a signed-in credential bundle during optional browser login.
The browser callback sends the connection back to VS Code automatically.
Run Sign out to remove the stored extension credentials from VS Code.
Auto Free selects candidates that match required tool, vision, and chat capabilities.
Common fixes
Confirm Google sign-in is configured on the OpenProvider deployment and retry from the command palette.
Use Auto Free again to try another route, start a new chat with less attached context, or add a direct provider API key for the selected model.
Run Refresh Models to bypass cache. If the provider still looks missing, verify that provider setup is enabled and working.
Confirm GitHub Copilot Chat is enabled and that VS Code is version 1.120.0 or newer.