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
- Open VS Code
- Go to Extensions (
Cmd+Shift+X
orCtrl+Shift+X
) - Search for “Kilo Code”
- 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 purposeanthropic/claude-3.5-sonnet
- Best reasoningdeepseek/deepseek-chat
- Best for codingphala/qwen-2.5-7b-instruct
- TEE confidential
Configuration JSON
Using Kilo Code
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
Recommended Models for Kilo Code
Task | Model | Why |
---|---|---|
General Coding | deepseek/deepseek-chat | Optimized for code |
Complex Refactoring | anthropic/claude-3.5-sonnet | Best reasoning |
Quick Fixes | google/gemini-2.0-flash | Fast responses |
Sensitive Code | phala/qwen-2.5-7b-instruct | TEE protection |
Continue.dev
Continue.dev is an open-source AI code assistant for VS Code and JetBrains.Installation
- Open VS Code
- Go to Extensions
- Search for “Continue”
- Click Install
Configuration
1
Open Config File
Press
Cmd+Shift+P
(Mac) or Ctrl+Shift+P
(Windows/Linux)Type: Continue: Open config.json2
Add RedPill Configuration
Add to the
models
array:3
Save and Reload
Save the config file. Continue will auto-reload.
Complete config.json Example
Using Continue.dev
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
- Open VS Code
- Go to Extensions
- Search for “Cline”
- 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:Using Cline
Cline is task-oriented and autonomous: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
Task | Best Model | Alternative |
---|---|---|
New Features | anthropic/claude-3.5-sonnet | openai/gpt-4o |
Bug Fixes | deepseek/deepseek-chat | openai/gpt-4o |
Refactoring | anthropic/claude-3.5-sonnet | deepseek/deepseek-chat |
Documentation | openai/gpt-4o | google/gemini-2.0-flash |
Code Review | anthropic/claude-3.5-sonnet | openai/gpt-4o |
Quick Edits | google/gemini-2.0-flash | deepseek/deepseek-chat |
Sensitive Code | phala/qwen-2.5-7b-instruct | phala/deepseek-chat-v3-0324 |
Comparison
Feature | Kilo Code | Continue.dev | Cline |
---|---|---|---|
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
Choose the Right Model
Choose the Right Model
- 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
Provide Clear Context
Provide Clear Context
- Describe the full task upfront
- Include relevant file paths
- Mention tech stack and dependencies
- Specify coding style preferences
Review AI Changes
Review AI Changes
- Always review code before committing
- Test generated code thoroughly
- Check for security issues
- Verify error handling
Manage Costs
Manage Costs
- Use cheaper models for simple tasks
- Set token limits in settings
- Monitor usage in RedPill dashboard
- Use Continue autocomplete sparingly
Privacy for Proprietary Code
Privacy for Proprietary Code
- 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
Troubleshooting
Connection Errors
Connection Errors
Solution:
- Verify base URL:
https://api.redpill.ai/v1
- Check API key is valid
- Ensure model name includes provider prefix
- Reload VS Code window
Model Not Found
Model Not Found
Solution:
- Use full model name:
openai/gpt-4o
notgpt-4o
- Check model exists in supported models
- Try a different model
Slow Responses
Slow Responses
Solution:
- Switch to faster model (Gemini Flash, DeepSeek)
- Reduce context window
- Check internet connection
- Clear VS Code cache
High API Costs
High API Costs
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
- Kilo Code: “Plan a user authentication system”
- Review the plan
- Kilo Code: “Implement the plan”
- Continue: Ask questions about specific parts
- Cline: “Add tests for the auth system”
Workflow 2: Bug Fixing
- Continue Chat: “What’s causing this error?”
- Review explanation
- Cline: “Fix the bug and add error handling”
- Continue Edit: Make final adjustments
Workflow 3: Code Review
- Kilo Code: “Review this PR for issues”
- Continue: “Explain this complex function”
- Cline: “Refactor based on review feedback”