Skip to content
Fossa

Visual Studio Code

First, complete the API setup.

Add Fossa through VS Code’s Custom Endpoint provider:

  1. Run Chat: Manage Language Models from the Command Palette. Select Add Models then Custom Endpoint.
  2. Enter Fossa as the group and display name, then enter your API key. Select Chat Completions.
  3. In the generated chatLanguageModels.json, set the model’s id to MODEL_ID and url to https://api.fossa.ag/v1/chat/completions. Use apiType: "chat-completions".
  4. Set contextWindow and maxOutputTokens from the model’s published limits. Enable toolCalling only for a model that supports tools; set vision to false. Keep the generated secret input for apiKey.
  5. Save the file and select the model in chat. Reload VS Code if it does not appear.

Custom Endpoint replaces the deprecated OpenAI Compatible provider and github.copilot.chat.customOAIModels setting.

For integrated Fossa routing, wallet, and recovery controls, use the OpenCode plugin. You can also build a native integration for this client using the API, CLI, or SDK.

Last updated: 13 November 2026. Configuration checked against the official Visual Studio Code documentation. We recommend reading it for the full configuration options and changes between client releases.