Overview

Connect RedPill to popular VS Code AI coding assistants for autonomous coding with TEE privacy protection. All three assistants support OpenAI-compatible APIs.

Kilo Code

Fork of Roo/Cline with 400+ models

Continue.dev

Ship faster with continuous AI

Cline

Autonomous coding agent

Kilo Code

Kilo Code is an open source AI coding assistant for planning, building, and fixing code.

Installation

  1. Open VS Code
  2. Go to Extensions (Cmd+Shift+X or Ctrl+Shift+X)
  3. Search for “Kilo Code”
  4. Click Install

Configuration

1

Open Kilo Code Settings

Click the Kilo Code icon in the sidebar → Click ⚙️ Settings
2

Select API Provider

Choose: OpenAI Compatible
3

Configure API

  • Base URL: https://api.redpill.ai/v1
  • API Key: YOUR_REDPILL_API_KEY
4

Select Model

Choose from RedPill models:
  • openai/gpt-4o - Best general purpose
  • anthropic/claude-3.5-sonnet - Best reasoning
  • deepseek/deepseek-chat - Best for coding
  • phala/qwen-2.5-7b-instruct - TEE confidential

Configuration JSON

{
  "kilocode.apiProvider": "openai-compatible",
  "kilocode.openaiCompatible.baseUrl": "https://api.redpill.ai/v1",
  "kilocode.openaiCompatible.apiKey": "YOUR_REDPILL_API_KEY",
  "kilocode.openaiCompatible.model": "deepseek/deepseek-chat"
}

Using Kilo Code

@kilo create a REST API endpoint for user authentication

Kilo Code Features

  • Autonomous Planning - AI plans multi-step tasks
  • File Operations - Create, edit, delete files
  • Terminal Commands - Execute commands with permission
  • Code Review - Analyze and improve code
  • Multi-File Editing - Work across entire codebase
  • 400+ Models - Switch models anytime
TaskModelWhy
General Codingdeepseek/deepseek-chatOptimized for code
Complex Refactoringanthropic/claude-3.5-sonnetBest reasoning
Quick Fixesgoogle/gemini-2.0-flashFast responses
Sensitive Codephala/qwen-2.5-7b-instructTEE protection

Continue.dev

Continue.dev is an open-source AI code assistant for VS Code and JetBrains.

Installation

  1. Open VS Code
  2. Go to Extensions
  3. Search for “Continue”
  4. Click Install

Configuration

1

Open Config File

Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)Type: Continue: Open config.json
2

Add RedPill Configuration

Add to the models array:
{
  "models": [
    {
      "title": "RedPill GPT-4o",
      "provider": "openai",
      "model": "openai/gpt-4o",
      "apiKey": "YOUR_REDPILL_API_KEY",
      "apiBase": "https://api.redpill.ai/v1"
    },
    {
      "title": "RedPill Claude 3.5",
      "provider": "openai",
      "model": "anthropic/claude-3.5-sonnet",
      "apiKey": "YOUR_REDPILL_API_KEY",
      "apiBase": "https://api.redpill.ai/v1"
    },
    {
      "title": "RedPill DeepSeek",
      "provider": "openai",
      "model": "deepseek/deepseek-chat",
      "apiKey": "YOUR_REDPILL_API_KEY",
      "apiBase": "https://api.redpill.ai/v1"
    }
  ]
}
3

Save and Reload

Save the config file. Continue will auto-reload.

Complete config.json Example

{
  "models": [
    {
      "title": "RedPill GPT-4o",
      "provider": "openai",
      "model": "openai/gpt-4o",
      "apiKey": "sk-your-redpill-api-key",
      "apiBase": "https://api.redpill.ai/v1",
      "systemMessage": "You are an expert software developer."
    }
  ],
  "embeddingsProvider": {
    "provider": "openai",
    "model": "text-embedding-3-small",
    "apiKey": "sk-your-redpill-api-key",
    "apiBase": "https://api.redpill.ai/v1"
  },
  "tabAutocompleteModel": {
    "title": "RedPill DeepSeek",
    "provider": "openai",
    "model": "deepseek/deepseek-chat",
    "apiKey": "sk-your-redpill-api-key",
    "apiBase": "https://api.redpill.ai/v1"
  }
}

Using Continue.dev

Cmd+L (Mac) or Ctrl+L (Windows/Linux)
Type your question or request

Continue.dev Features

  • Chat - Ask questions about your code
  • Edit - Modify code with AI assistance
  • Autocomplete - Tab completion powered by AI
  • Context - Understands your entire codebase
  • Multi-Model - Switch models per task
  • Custom Commands - Create slash commands

Cline

Cline is an autonomous coding agent that can create/edit files, execute commands, and use the browser.

Installation

  1. Open VS Code
  2. Go to Extensions
  3. Search for “Cline”
  4. Click Install

Configuration

1

Open Cline

Click the Cline robot icon in the sidebar
2

Click Settings

Click ⚙️ in the top right corner
3

Select API Provider

Choose: OpenAI Compatible
4

Enter Details

  • Base URL: https://api.redpill.ai/v1
  • API Key: YOUR_REDPILL_API_KEY
  • Model ID: Enter model name (e.g., openai/gpt-4o)

Configuration via Settings UI

API Provider: OpenAI Compatible Base URL:
https://api.redpill.ai/v1
API Key:
sk-your-redpill-api-key-here
Model ID (examples):
openai/gpt-4o
anthropic/claude-3.5-sonnet
deepseek/deepseek-chat
phala/qwen-2.5-7b-instruct

Using Cline

Cline is task-oriented and autonomous:
"Create a user authentication system with JWT tokens, including login, logout, and middleware"

Cline Features

  • Autonomous - Plans and executes multi-step tasks
  • File Operations - Create, edit, delete files
  • Terminal - Run commands with approval
  • Browser - Use browser for research
  • Approval Flow - Review before executing
  • Token Tracking - Monitor API usage

Approval System

Cline asks permission before:
  • Creating/editing files
  • Running terminal commands
  • Making API calls
  • Using browser

Model Recommendations by Task

TaskBest ModelAlternative
New Featuresanthropic/claude-3.5-sonnetopenai/gpt-4o
Bug Fixesdeepseek/deepseek-chatopenai/gpt-4o
Refactoringanthropic/claude-3.5-sonnetdeepseek/deepseek-chat
Documentationopenai/gpt-4ogoogle/gemini-2.0-flash
Code Reviewanthropic/claude-3.5-sonnetopenai/gpt-4o
Quick Editsgoogle/gemini-2.0-flashdeepseek/deepseek-chat
Sensitive Codephala/qwen-2.5-7b-instructphala/deepseek-chat-v3-0324

Comparison

FeatureKilo CodeContinue.devCline
Autonomous Planning✅ Yes⚠️ Limited✅ Yes
Chat Interface✅ Yes✅ Yes✅ Yes
Tab Autocomplete❌ No✅ Yes❌ No
File Operations✅ Yes✅ Yes✅ Yes
Terminal Access✅ Yes✅ Yes✅ Yes
Browser Use❌ No❌ No✅ Yes
Approval Flow✅ Yes⚠️ Partial✅ Yes
Multi-Model✅ 400+✅ Custom✅ Custom
Cost Tracking✅ Yes❌ No✅ Yes

Best Practices

  • DeepSeek: Best for pure coding tasks
  • Claude 3.5: Best for complex reasoning and refactoring
  • GPT-4o: Best for general purpose
  • Gemini Flash: Best for speed
  • Phala models: Best for proprietary code
  • Describe the full task upfront
  • Include relevant file paths
  • Mention tech stack and dependencies
  • Specify coding style preferences
  • Always review code before committing
  • Test generated code thoroughly
  • Check for security issues
  • Verify error handling
  • Use cheaper models for simple tasks
  • Set token limits in settings
  • Monitor usage in RedPill dashboard
  • Use Continue autocomplete sparingly
  • Use Phala TEE models for sensitive code
  • All requests flow through RedPill’s TEE gateway
  • Code never leaves the secure environment
  • Enable local caching in Continue config

Environment Variables

Store API keys securely:
.env
REDPILL_API_KEY=sk-your-api-key-here
Reference in configs:
{
  "apiKey": "${REDPILL_API_KEY}"
}

Troubleshooting

Solution:
  • Verify base URL: https://api.redpill.ai/v1
  • Check API key is valid
  • Ensure model name includes provider prefix
  • Reload VS Code window
Solution:
  • Use full model name: openai/gpt-4o not gpt-4o
  • Check model exists in supported models
  • Try a different model
Solution:
  • Switch to faster model (Gemini Flash, DeepSeek)
  • Reduce context window
  • Check internet connection
  • Clear VS Code cache
Solution:
  • Use cheaper models for simple tasks
  • Disable autocomplete if using Continue
  • Set max_tokens limits
  • Monitor usage in RedPill dashboard

Example Workflows

Workflow 1: Feature Development

  1. Kilo Code: “Plan a user authentication system”
  2. Review the plan
  3. Kilo Code: “Implement the plan”
  4. Continue: Ask questions about specific parts
  5. Cline: “Add tests for the auth system”

Workflow 2: Bug Fixing

  1. Continue Chat: “What’s causing this error?”
  2. Review explanation
  3. Cline: “Fix the bug and add error handling”
  4. Continue Edit: Make final adjustments

Workflow 3: Code Review

  1. Kilo Code: “Review this PR for issues”
  2. Continue: “Explain this complex function”
  3. Cline: “Refactor based on review feedback”

Resources

Next Steps