Routescope APIRoutescope API
Client Tool Setup

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 Compatible

Step 2: Parameter Mapping

Extension FieldValueNotes
API ProviderOpenAI CompatibleSome extensions may show OpenAI-compatible
Base URL / OpenAI Base URL / Endpointhttps://api.routescope.ai/v1/v1 is required
API Keysk-...Use the full secret
ModelChoose an available modelDo not use a model your account cannot access

Step 3: Configure VS Code

  1. Open VS Code.
  2. Open the extension marketplace.
  3. Search for and install Cline.
  4. Open the Cline panel from the sidebar.

When Cline first opens, choose Bring my own API key, then continue.

Common Cline Fields

Cline FieldValue
API ProviderOpenAI Compatible
Base URLhttps://api.routescope.ai/v1
API Keysk-your-full-secret
ModelChoose an available model

Recommended order:

  1. Set API Provider to OpenAI Compatible.
  2. Enter Base URL = https://api.routescope.ai/v1.
  3. Paste the full API Key.
  4. Choose the model.
  5. If the extension has Verify, Test, or Save, verify before saving.

If You Are Not Using Cline

Generic FieldValue
Provider / API ProviderOpenAI Compatible
Base URL / API Base / Endpointhttps://api.routescope.ai/v1
API Key / OpenAI API Keysk-...
ModelChoose 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