Vibe Coding!


My vibe coding setup.

Introduction

The barrier to entry for coding is lower than ever. Professional coders are using AI enabled tools with a monthly, most with some sort of monthly or volume based licesning. For my personal (non-work) environment, I am currently using Visual Studio Code (VS Code), with Continue.dev, Cline, Ollama, and OpenRouter to leverage AI to help with ideas, scaffolding, sanity checks, code review, and other things that AI makes possible that otherwise would not be possible as a one-man team.

Prerequisites

  1. Visual Studio Code
  2. Ollama - Running a my gaming desktop, since it has a nice GPU

Install Continue and Cline VS Code Extensions

Now, let's install the two main extensions that will transform VS Code into an AI-powered coding environment:

  1. Open VS Code
  2. Click on the Extensions tab in the left sidebar (or press Ctrl+Shift+X)
  3. Search for "Continue.dev" and install it
  4. Search for "Cline" and install it

Configure Continue.dev with Ollama Models

Continue.dev gives us a few features, but the best is the autocompletion. Continue.dev needs to be configured to use the AI models provided by Ollama:

  1. First, download the recommended models using the terminal:

    # Download DeepSeek R1 (7B) for chat mode
    ollama pull deepseek-coder:6.7b
    # Download Qwen 2.5 Coder (1.5B) for code completion
    ollama pull qwen2.5-coder:7b
    

    Note: Make sure to check Ollama's library for the latest available models and subvariants.

  2. Open VS Code

  3. Click on the Extensions tab in the left sidebar (or press Ctrl+Shift+X)
  4. Search for "Continue.dev" and install it
  5. Open the Continue extension in VS Code
  6. Close the "Create Assistant Model" dialog if it appears
  7. Click on the cube icon to configure the models
  8. Configure the chat model (DeepSeek R1):

    - name: DeepSeek R1
      provider: ollama
      model: deepseek-coder:6.7b
      apiBase:  http://192.168.50.50:11434/ #Only necessary if you host ollama on another machine
    
  9. Configure the code completion model (Qwen 2.5 Coder):

    - name: qwen 2.5 coder
      provider: ollama
      model: qwen2.5-coder:7b
      apiBase:  http://192.168.50.50:11434/ #Only necessary if you host ollama on another machine
      roles: 
        - autocomplete
    
  10. Save the changes

Set Up Cline

Cline provides additional AI capabilities like multi-file editing and reasoning:

  1. Click on the Cline icon in the VS Code sidebar
  2. Register for a Cline account using Google or GitHub
  3. Authorize access to Cline
  4. You'll receive free trial credits to use with powerful models

Test Your Setup

Let's test if everything is working correctly:

  1. Create a new Python file (e.g., sample.py)
  2. Start typing a simple function and observe the code completion suggestions (from Continue.dev)
  3. Try using the chat mode in Cline to ask coding questions or generate code

Continue.dev Autocomplete Cline Task

Set Up OpenRouter for Additional Models

If you prefer not to store models locally or want access to more powerful models, you can use OpenRouter:

  1. Visit openrouter.ai and create an account
  2. Generate an API key
  3. In Cline, change the provider API to OpenRouter
  4. Paste your API key and select a model (e.g., DeepSeek R1)
  5. Select the model of your choice. Some of the free models require that you have previously purchased 10 credits ($10 USD + tax) to use.
  6. Select the Done button to save the settings.

Create OpenRouter API Key Cline OpenRouter Configuration

Conclusion

With this setup, I can take advantage of autocomplete, or even do one-shot code generation with a well written prompt. Continue.dev allows me to leverage my locally hosted LLM to review snippets of code, or squash bugs. With Cline, I can quickly scaffold code and models for a new project.

The best part is that you can use this setup with free, local models via Ollama, or connect to models through OpenRouter, giving you flexibility based on your needs and resources.