Roo Code and Deepseek Model Integration

Introduction

Reading Benefits
  1. Understand the basic features of Deepseek model
  2. Master Roo Code plugin configuration methods
  3. Learn practical applications of Deepseek model with Roo Code in programming

Deepseek Model Overview

ScenarioDeepSeek-V3DeepSeek-R1
Application AreasNatural Language Processing, Knowledge Q&A, Creative Content GenerationMathematical Modeling, Code Generation, Complex Logic Reasoning Tasks
Developer ToolsSupports Local Deployment, Suitable for Small to Medium Scale ApplicationsProvides Distilled Small Models (1.5B-70B), Adapts to Resource-Limited Scenarios
API FeaturesCost-Effective, Suitable for General NeedsSupports “DeepThink” Mode for Chain of Thought Output, Ideal for Professional Development

Roo Code Configuration Tutorial

Step 1: Plugin Installation

  1. Install through VSCode Extension Marketplace: Search for “Roo Code” and install

Roo Code Plugin Installation

Step 2: Obtain API Key

  1. Due to recent inaccessibility of Deepseek Api Development Platform, we’ll use API services provided by Silicon Flow. New users receive 20 million tokens (14 yuan platform quota) upon registration

Deepseek Platform Maintenance Notice

  1. Register at Silicon Flow and login
  2. Check usage quota

API Usage Quota Check

  1. Generate API Access Key:
    • Select “API Keys”
    • Click “Create New API Key”
    • Generate and save API Key

Generate API Key

Step 4: Plugin Configuration

  1. Open VSCode and add plugin API call configuration:

Roo Code API Configuration

# 1. Select API Provider
OpenAI Compatible
# 2. Configure API call address
https://api.siliconflow.cn
# 3. Configure the generated API key
  1. Chat test, using Deepseek-R1 model to generate a Snake game

Using Deepseek to Generate Snake Game

  • The basic functional logic was implemented, though response time was relatively long
  • Except for command line commands, feature implementation and bug fixes were mostly automatic

Snake Game Running Effect

  1. Other Plugin Configurations
  • Prompt Configuration

Prompt Configuration Interface

  • Enhanced Prompt Configuration

Enhanced Prompt Configuration Interface

Initial Experience and Comparison with Cursor

  • Question answering and prompt configuration allow for more detailed custom prompt configuration, with similar response quality, mainly dependent on the model
  • In terms of response speed, using Deepseek is relatively slower. Previously using Cursor with claude-3.5-sonnet model showed significantly faster code modification speed. Using Deepseek requires waiting for deep thinking before code modifications
  • Using Roo Code + Deepseek is FREE!!!
  • When using @ prompt for file selection in Roo Code plugin, file search filtering is not supported, making file addition for questions more cumbersome
  • The plugin itself has some bugs, making it less comfortable to use compared to Cursor
Will compare usage differences after experiencing Roo Code + claude-3.5-sonnet later