Integrate Helvira with Cline in VSCode
Use Helvira's AI models directly in your VSCode editor with the Cline extension. Code with Swiss-hosted AI while maintaining complete data privacy.
What is Cline?
Cline is an autonomous AI coding agent for Visual Studio Code that can:
- Create and edit files in your project
- Run terminal commands with your approval
- Debug and fix code errors automatically
- Refactor and improve existing code
- Generate complete features from natural language
Why Helvira + Cline?
- Swiss Data Privacy: Your code never leaves Switzerland
- GDPR & nFADP Compliant: Enterprise-grade security
- Multiple AI Models: Access various models based on your Helvira plan
- Cost Transparency: Clear pricing with no hidden fees
- Seamless Integration: Works like any other AI provider in Cline
Prerequisites
Before you begin, you'll need:
- Visual Studio Code installed
- A Helvira account (sign up here)
- A Helvira API key (starts with
sk-...)
Installation Guide
Step 1: Install Cline Extension
- Open Visual Studio Code
- Click the Extensions icon (or press
Ctrl+Shift+X/Cmd+Shift+X) - Search for "Cline"
- Click Install on the official Cline extension
- Wait for installation to complete
Step 2: Get Your Helvira API Key
- Log in to your Helvira account
- Navigate to Settings → Account → API Keys → Show
- Copy your API key (it starts with
sk-...)
Step 3: Configure Cline for Helvira
- Click the Cline icon (robot) in the VSCode Activity Bar
- Click the gear/settings icon ⚙️ in the top-right corner of Cline panel
- Configure the following settings:
Configuration Details
API Provider
- Select:
OpenAI Compatible
Base URL
- Enter:
https://chat.helvira.ai/api/v1
OpenAI Compatible API Key
- Paste your Helvira API key (starts with
sk-...)
Model ID
- Enter the model ID based on your Helvira plan (see table below)
- Click Done or close the settings panel
Available Helvira Models
Choose your model ID based on your subscription and needs:
| Model Name | Model ID | Best For |
|---|---|---|
| Gemmini Light (Gemma3) Free | helvira-gemmini-light-gemma3-free | Testing, simple edits |
| Gemmini Light (Gemma3) Standard | helvira-gemmini-light-gemma3-free-unlimited | Quick tasks, unlimited usage |
| Gemmini (Gemma3) Premium | helvira-gemmini-gemma3-premium | Complex development |
| OSS (gpt-oss) Premium | helvira-oss-gpt-oss-premium | Advanced coding tasks |
Example Configuration
For a Standard plan user with unlimited access:
API Provider: OpenAI Compatible
Base URL: https://chat.helvira.ai/api/v1
API Key: sk-abc123xyz789...
Model ID: helvira-gemmini-light-gemma3-free-unlimited
Using Cline with Helvira
Basic Usage
- Open your project in VSCode
- Click the Cline icon to open the chat interface
- Start coding with natural language prompts
Example Prompts
Create a Laravel controller for user authentication
Add validation to the User model
Refactor this function to improve performance
Fix the SQL injection vulnerability in this query
Generate API documentation for this endpoint
Add unit tests for the UserService class
Approval Workflow
Cline shows you every action before executing:
- Plan Review: See what Cline plans to do
- Code Preview: Review code changes
- Approve/Reject: You decide what gets executed
- Safe Iteration: Maintain full control
Configuration Tips
Enable Auto-Read Mode
Speed up your workflow:
- Open Cline settings (gear icon)
- Scroll to Permissions
- Enable "Always approve read-only operations"
- Cline can now read files without prompting
Switching Between Models
If you have access to multiple models:
- Open Cline settings
- Change the Model ID field
- Save and continue chatting
Best Practices
1. Be Specific
❌ "Fix this code"
✅ "Fix the authentication middleware to properly handle JWT token expiration"
2. Provide Context
"In the UserController.php file, add input validation for the email
field using Laravel's validation rules"
3. Break Down Tasks
Instead of:
"Build a complete authentication system"
Try:
1. "Create a User model with proper relationships"
2. "Add a registration controller with validation"
3. "Implement JWT token generation"
4. "Add middleware for protected routes"
4. Reference Files
"Add error handling to the PaymentService class in app/Services/PaymentService.php"
5. Always Review
- Read generated code carefully
- Test before committing
- Verify security implications
- Check for Swiss compliance requirements
Advanced Features
Terminal Commands
Cline can execute commands:
composer install
php artisan migrate
npm run dev
git commit -m "feat: add user service"
File Operations
- Create new files and directories
- Edit multiple files simultaneously
- Search and replace across projects
- Rename and organize files
Code Analysis
- Identify security vulnerabilities
- Suggest performance improvements
- Detect code smells
- Recommend best practices
Data Privacy & Security
Your Code Stays in Switzerland
- All API requests go to Swiss servers
- Code snippets are processed in Switzerland
- No data stored outside Swiss borders
- Full GDPR & nFADP compliance
Best Practices
- Never commit API keys to repositories
- Use environment variables for sensitive data
- Review code for secrets before sharing
- Enable auto-read only for trusted projects
Troubleshooting
"API Key Invalid" Error
Solutions:
- Verify your API key starts with
sk- - Check your Helvira subscription is active
- Ensure you copied the complete key
- Regenerate a new key in Helvira dashboard
"Model Not Found" Error
Solutions:
- Check model ID spelling exactly matches the table above
- Verify model access in your Helvira plan
- Copy-paste the model ID to avoid typos
- Contact Helvira support if issue persists
"Connection Refused" Error
Solutions:
- Verify Base URL is:
https://chat.helvira.ai/api/v1 - Check no extra spaces in the URL
- Ensure API Provider is "OpenAI Compatible"
- Test your internet connection
Slow Responses
Solutions:
- Switch to a faster model if available
- Check your internet connection
- Verify Helvira service status at [status.helvira.ai]
- Try during off-peak hours
Cline Not Connecting
Solutions:
- Double-check all settings:
- API Provider:
OpenAI Compatible - Base URL:
https://chat.helvira.ai/api/v1 - API Key: starts with
sk- - Model ID: exact match from table
- API Provider:
- Restart VSCode completely
- Reinstall Cline extension
- Check Helvira account status
Pricing & Usage
Transparent Costs
- Cline shows token usage in real-time
- Track costs per request
- Monitor monthly spending in Helvira dashboard
Model Comparison
| Model | Speed | Quality | Best Use Case |
|---|---|---|---|
| Gemmini Light Free | ⚡⚡⚡⚡ | ⭐⭐ | Daily development - Limited |
| Gemmini Light Standard | ⚡⚡⚡⚡ | ⭐⭐ | Daily development - Unlimited |
| Gemmini Premium | ⚡⚡⚡ | ⭐⭐⭐ | Production code |
| OSS Premium | ⚡⚡ | ⭐⭐⭐⭐⭐ | Complex logic |
Optimize Costs
- Use appropriate models for each task
- Enable auto-approve for reads (fewer API calls)
- Be specific in prompts (reduce iterations)
- Set usage alerts in your Helvira account
Support
Need help? We're here for you:
- Helvira Support: support@helvira.ai
- Cline Docs: docs.cline.bot
Summary
Helvira + Cline gives you:
✅ Swiss-hosted AI coding assistant
✅ GDPR & nFADP compliant
✅ Multiple model access based on plan
✅ Full control over code changes
✅ Data never leaves Switzerland
✅ Transparent pricing
Start coding with Swiss AI privacy today!
Ready to get started? Install Cline and connect your Helvira account in minutes.
Quick Start Checklist
- Install Cline extension in VSCode
- Get your Helvira API key (starts with
sk-) - Open Cline settings (gear icon)
- Set API Provider to "OpenAI Compatible"
- Enter Base URL:
https://chat.helvira.ai/api/v1 - Paste your API key
- Enter your model ID from the table above
- Save settings
- Start coding with Helvira!