# GitHub Copilot Integration with OfoxAI Configuration Guide Source: https://ofox.ai/docs/integrations/copilot Using the VS Code extension **OAI Compatible Provider for Copilot**, you can integrate OfoxAI with GitHub Copilot Chat to use Claude, GPT, Gemini, and 100+ models right in your familiar editor. This extension requires a **GitHub Copilot Individual subscription** and does not support Copilot Business or Enterprise users. If you don't have a Copilot subscription, consider using [Cursor](https://ofox.ai/docs/integrations/cursor) or [Cherry Studio](https://ofox.ai/docs/integrations/cherry-studio) instead. ## Prerequisites - A registered OfoxAI account with an API Key ([Get one here](https://app.ofox.ai)) - [VS Code](https://code.visualstudio.com/) installed - A valid **GitHub Copilot Individual** subscription (Business / Enterprise not supported) ## Configuration Steps ### Step 1: Install the Extension Search for **OAI Compatible Provider for Copilot** (by Johnny Zhao) in the VS Code Extension Marketplace and click **Install**. ![Install OAI Compatible Provider for Copilot extension](https://ofox.ai/screenshots/copilot/step-1.png) ### Step 2: Open the Configuration UI Press `Cmd+Shift+P` (macOS) / `Ctrl+Shift+P` (Windows/Linux) to open the Command Palette, then type and run: ``` OAICopilot: Open Configuration UI ``` ![Open configuration UI via Command Palette](https://ofox.ai/screenshots/copilot/step-2.png) ### Step 3: Fill in the Global Configuration In the **Global Configuration** section, fill in the following fields and click **Save Global Configuration**: | Field | Value | |-------|-------| | **Global Base URL** | `https://api.ofox.ai/v1` | | **Global API Key** | Your OfoxAI API Key | ![Fill in Global Base URL and API Key then save](https://ofox.ai/screenshots/copilot/step-3.png) ### Step 4: Add a Provider In the **Provider Management** section, click **Add Provider** (labeled ①), fill in the following fields in the new row, then click **Save** (labeled ⑥): | Field | Value | |-------|-------| | **Provider ID** (labeled ②) | `ofox` | | **Base URL** (labeled ③) | `https://api.ofox.ai` | | **API Key** (labeled ④) | Your OfoxAI API Key | | **API Mode** (labeled ⑤) | `Anthropic` | ![Add OfoxAI Provider](https://ofox.ai/screenshots/copilot/step-4.png) ### Step 5: Add a Model In the **Model Management** section, click **Add Model** (labeled ①), fill in the following fields, then click **Save Model** (labeled ④): | Field | Value | |-------|-------| | **Provider ID** (labeled ②) | `ofox` | | **Model ID** (labeled ③) | Model name, e.g. `anthropic/claude-sonnet-5.5` | ![Add a custom model](https://ofox.ai/screenshots/copilot/step-5.png) You can repeat this step to add multiple models. For model IDs, see the [OfoxAI model catalog](https://ofox.ai/models). ### Step 6: Select a Model in the Chat Panel Open the Copilot Chat panel, click the model selector, disable **Auto** mode, and find the OfoxAI models you added under **Other Models**. If you can't see the models, click **Manage Models...** to go to the model list page. ![Switch to OfoxAI model in the chat panel](https://ofox.ai/screenshots/copilot/step-6.png) ### Step 7: Confirm Model and Start Using In the Language Models panel, the OfoxAI models you added will appear under the **OAI Compatible** group. Select a model in the chat box in the bottom right to start chatting. ![Confirm model appears under OAI Compatible group](https://ofox.ai/screenshots/copilot/step-7.png) ## Recommended Models For recommended models, see the [Model Marketplace](https://ofox.ai/models). ## FAQ **Q: I can't find the extension in the marketplace** Search the full name `OAI Compatible Provider for Copilot`, or search by the author name `Johnny Zhao`. **Q: I can't find `OAICopilot: Open Configuration UI` in the Command Palette** Make sure the extension is installed and enabled. You may need to reload the VS Code window after installation (`Cmd+Shift+P` → `Reload Window`). **Q: The models I added don't appear in the chat panel** In the model selector dropdown, disable **Auto** mode and look under the **Other Models** category, or click **Manage Models...** to check if the models were added correctly. **Q: "Invalid API Key" error or request failure** Check the following: 1. Is the Global Base URL exactly `https://api.ofox.ai/v1` (no trailing slash)? 2. Was the API Key copied in full from the [OfoxAI Console](https://app.ofox.ai) (no leading/trailing spaces)? 3. Is the Provider's API Mode set to `Anthropic`? **Q: Tab completion still uses the official Copilot model** This is expected behavior. OAI Compatible Provider currently only affects **Copilot Chat** conversations. Tab code completion is controlled by GitHub Copilot officially. **Q: I'm a Copilot Business / Enterprise user — can I use this?** Not currently. This extension only supports **GitHub Copilot Individual** users. Business and Enterprise users will need to wait for future version support.