How to integrate RouterLink in VS Code (Continue plugin)

This documentation is provided for informational purposes only and demonstrates how to configure and use our API with third-party AI chat interfaces. Any third-party software, websites, or services mentioned are not operated, controlled, or endorsed by us.

This section demonstrates how to integrate RouterLink into Visual Studio Code using the Continue plugin as an example.

The Continue plugin is an AI coding assistant extension that supports OpenAI-compatible APIs, allowing RouterLink models to be connected directly inside the editor for code completion, chat, and coding assistance.

Step1: Open VS Code software.

Step2: Click the Extensions button in the VS Code sidebar.

Step3: Search for the Continue plugin and click the "Install" button on the right to install it.

Step4: Click the "Continue" icon on the sidebar to launch.

Step5: Click the "settings" button in the upper right corner to navigate to the Configs list.

Step6: Click the "settings" icon to the right of Local Config to open the config.json file for configuration.(If you are opening a config.ymal file, please carefully review Step 7.

Step7: Configure the corresponding model parameters, as shown in the image below.

These parameters must be completely identical; otherwise, the model will not take effect. To configure multiple models, simply add them to this configuration file.In the apiKey section below, paste the API key you obtained in the previous step (Press Ctrl + F to find ${API_KEY}, then replace all), making sure it is enclosed in double quotation marks. (Here will display the configuration files for all models.).

If the configuration file is a JSON file, please fill it in according to the following format.

If you don’t find the model you want in the configuration file, please add it manually. For the model field, use the value shown on the model page, as illustrated in the image.

Step8: Save the configuration file, return to the chat interface, and select the model in the chat box to start chatting (like Gemini 3 Pro Preview).

Step9: On the Billing page, you can view the tokens consumed by this model and the amount of WAI Credits.

Last updated