VS Code
VS Code setup guide using Cline as the example
Why this guide uses Cline
VS Code is only the editor. Model requests are sent by extensions. This guide uses Cline because it supports OpenAI-compatible providers directly.
If you use Roo Code, Continue, or similar extensions, the mapping is usually the same: Provider, Base URL, API Key, and Model.
Step 1: Create a Key in Routescope
Follow Get Base URL and API Key to create a token and copy the full sk-... secret.
Keep these fixed values:
Base URL: https://api.routescope.ai/v1
Provider: OpenAI CompatibleStep 2: Parameter Mapping
| Extension Field | Value | Notes |
|---|---|---|
API Provider | OpenAI Compatible | Some extensions may show OpenAI-compatible |
Base URL / OpenAI Base URL / Endpoint | https://api.routescope.ai/v1 | /v1 is required |
API Key | sk-... | Use the full secret |
Model | Choose an available model | Do not use a model your account cannot access |
Step 3: Configure VS Code
- Open VS Code.
- Open the extension marketplace.
- Search for and install
Cline. - Open the Cline panel from the sidebar.
When Cline first opens, choose Bring my own API key, then continue.
Common Cline Fields
| Cline Field | Value |
|---|---|
API Provider | OpenAI Compatible |
Base URL | https://api.routescope.ai/v1 |
API Key | sk-your-full-secret |
Model | Choose an available model |
Recommended order:
- Set
API ProvidertoOpenAI Compatible. - Enter
Base URL = https://api.routescope.ai/v1. - Paste the full API Key.
- Choose the model.
- If the extension has
Verify,Test, orSave, verify before saving.
If You Are Not Using Cline
| Generic Field | Value |
|---|---|
Provider / API Provider | OpenAI Compatible |
Base URL / API Base / Endpoint | https://api.routescope.ai/v1 |
API Key / OpenAI API Key | sk-... |
Model | Choose an available model |
Step 4: Verify the Setup
First output "Routescope is configured successfully", then list the top-level files in the current project.FAQ
Why can Cline work while another VS Code extension may not?
Different extensions support different provider types. Any extension that supports OpenAI-compatible APIs and lets you customize Base URL can usually connect to Routescope.
What should I do for 401 / 403?
Check whether the API Key is complete, whether the token is disabled, expired, or out of quota, whether the selected model is allowed, and whether IP restrictions are blocking the request.
Should I use https://api.routescope.ai or https://api.routescope.ai/v1?
For VS Code model extensions, usually use https://api.routescope.ai/v1.
How is this guide?
Last updated on