OpenProvider for VS Code

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.

Install from Marketplace ext install VK007.openprovider-vscode
Requirements

Before you connect

VS Code 1.120.0 or newer

The extension relies on the current VS Code language model provider surface.

GitHub Copilot Chat enabled

OpenProvider models appear through the Copilot Chat model picker.

Optional provider keys

Auto Free works without sign-in. Add provider keys only for higher limits or exact provider models.

Install

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.

  1. 01
    Install from Marketplace

    Open the marketplace listing, install the extension, and reload VS Code if prompted.

  2. 02
    Start with Auto Free

    Choose Use Auto Free or Select Model. Anonymous routes work immediately for lightweight chat and coding tasks.

  3. 03
    Refresh 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.

Connect

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.

Command palette

Run OpenProvider: Manage OpenProvider, then choose Auto Free, Select Model, or Sign in.

Browser authentication

Optional: sign in to the OpenProvider website and confirm your workspace credentials.

Local callback

The browser posts the signed-in credential bundle back to VS Code on localhost.

Models

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.

Copilot Chat provider

Use OpenProvider models from the GitHub Copilot Chat model picker without leaving VS Code.

Auto or exact routing

Start with Auto Free for fallback, or pin a specific provider model when your task needs stable behavior.

Tools, vision, reasoning

Expose exact-model capabilities to Copilot Chat when the selected model supports tool calls, images, and reasoning.

No-login first run

Use Auto Free without an OpenProvider account, then sign in or add provider keys only when you need higher limits.

Commands

Command palette reference

Use Auto Free

Switch back to anonymous Auto Free without browser sign-in.

Sign in

Optionally open OpenProvider in your browser for saved routes and higher limits.

Refresh Models

Bypass local cache and reload the OpenProvider model catalog.

Filter Provider

Limit the model picker to one provider while testing routes.

Select Model

Choose Auto Free, or pick an exact model and add that provider key when needed.

Show Model Info

Open capability, token limit, provider, and route details for the selected model.

Set Endpoint

Point the extension at another OpenProvider deployment or API base URL.

Settings

Open all extension settings in the VS Code settings UI.

Sign out

Remove the stored extension credentials from VS Code.

Settings

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.

SettingPurposeDefault behavior
openprovider.outputTokenBudgetNormal max-token budget for model responses.Clamped to the selected model limit.
openprovider.retryOutputTokenBudgetSmaller retry budget after empty streams or upstream rejections.Used only on compact retries.
openprovider.forwardSamplingParametersForward temperature and top_p to providers that support them.Disabled by default for broader route compatibility.
openprovider.freeRouteCatalogUrlsOptional catalog URLs for Auto Free routing.Uses bundled anonymous catalogs when empty.
openprovider.freeRouteBaseUrlsOptional route base URLs for Auto Free traffic.Uses bundled anonymous route URLs when empty.
openprovider.freeRouteGatewayUrlOptional gateway URL for Auto Free fallback.Reads the configured OpenProvider gateway env when empty.
Security

Credential handling

VS Code is the provider-native exception.

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.

No manual copy step

The browser callback sends the connection back to VS Code automatically.

Sign out clears storage

Run Sign out to remove the stored extension credentials from VS Code.

Route-aware requests

Auto Free selects candidates that match required tool, vision, and chat capabilities.

Troubleshooting

Common fixes

Sign-in opens but does not finish

Confirm Google sign-in is configured on the OpenProvider deployment and retry from the command palette.

Anonymous route keeps failing

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.

Models look stale

Run Refresh Models to bypass cache. If the provider still looks missing, verify that provider setup is enabled and working.

OpenProvider is missing in Copilot Chat

Confirm GitHub Copilot Chat is enabled and that VS Code is version 1.120.0 or newer.

Building against the API too?

Use the API docs for `/v1/*` routes, OpenAI SDK setup, request examples, and normalized error shapes.

Open API docs