Visual Studio Code
First, complete the API setup.
Add Fossa through VS Code’s Custom Endpoint provider:
- Run Chat: Manage Language Models from the Command Palette. Select Add Models then Custom Endpoint.
- Enter Fossa as the group and display name, then enter your API key. Select Chat Completions.
- In the generated
chatLanguageModels.json, set the model’sidtoMODEL_IDandurltohttps://api.fossa.ag/v1/chat/completions. UseapiType: "chat-completions". - Set
contextWindowandmaxOutputTokensfrom the model’s published limits. EnabletoolCallingonly for a model that supports tools; setvisiontofalse. Keep the generated secret input forapiKey. - 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.