Skip to main content

Documentation Index

Fetch the complete documentation index at:
https://docs.llmrouter.app/llms.txt
Use this file to discover all available models, tags, and features before exploring further.

Cline Integration

Cline is a powerful VS Code extension that allows you to use AI models directly in your editor for code generation, file operations, refactoring, debugging, and more. By connecting Cline to LLM Router, you get access to intelligent tag-based routing, automatic Skill injection, aggressive context optimization, Zero Data Retention (ZDR), and significant cost savings.
Note: When using LLM Router, always use the main gateway endpoint instead of any provider-specific URLs.

Step 1: Installing the Cline Plugin

  1. Open VS Code.
  2. Click the Extensions icon on the left sidebar.
  3. Search for cline in the marketplace.
  4. Find and install the Cline extension.
  5. After installation, trust the developer when prompted.

Step 2: Configuring LLM Router in Cline

  1. Open the Cline settings panel.
  2. Select Use your own API Key.
  3. Fill in the following configuration:
    • API Provider: Select OpenAI Compatible
    • Base URL: Enter
      https://api.llmrouter.app/v1
    • API Key: Paste your LLM Router API key (sk_llmr_...)
    • Model: Select “Use custom” and enter any model supported by LLM Router, for example:
      • anthropic/claude-opus-4.6
      • openai/gpt-5.4
      • google/gemini-3.1-pro
      • xai/grok-4.20
    Recommended Additional Settings:
    • Support Images: Enable if you need multimodal capabilities (depends on the model)
    • Context Window Size: Set to 200000 or higher (LLM Router handles large contexts efficiently)
    • Adjust temperature and other parameters based on your task

Step 3: Configure Routing Settings via Dashboard

For best results, configure your routing preferences in the LLM Router Dashboard:
  • Log into your LLM Router Dashboard.
  • Go to your API keys.
  • Set default tags (e.g. coding, ui design, testing, copywriting), enable relevant Skills, turn on Zero Data Retention (ZDR), and configure context optimization.
  • These settings will apply automatically to all requests from Cline.

Step 4: Getting Started

Once configured, you can start using Cline with LLM Router for:
  • Generating and editing code
  • Refactoring and improving existing code
  • Explaining complex logic
  • Debugging issues
  • File creation and project management