Your Local AI Coding Companion

CodePilot is a powerful VS Code extension that provides intelligent coding assistance using local Ollama models. Keep your code private while getting AI-powered suggestions, explanations, and code generation.

100% Private
Local Processing
Open Source
VS Code - CodePilot AI Assistant
CodePilot in action

Powerful Features

Everything you need for AI-powered coding assistance

Complete Privacy

All AI processing happens locally on your machine using Ollama. Your code never leaves your computer.

AI Chat Interface

Interactive chat panel with context-aware conversations and specialized prompt templates.

Code Actions

Right-click on any code to explain, refactor, document, or optimize it with AI assistance.

Chat History

Keep track of all your AI conversations with persistent chat history and easy navigation.

File Context

Include specific files as context for more relevant and accurate AI responses.

Theme Integration

Seamlessly adapts to your VS Code theme for a consistent development experience.

See It In Action

Experience the power of local AI assistance

AI Chat Interface

Interactive AI Chat

Ask questions, get explanations, and receive coding assistance through an intuitive chat interface.

function calculateFibonacci(n) {
  // Right-click to explain this function
  if (n <= 1) return n;
  return calculateFibonacci(n - 1) + calculateFibonacci(n - 2);
}

Smart Code Actions

Right-click on any code to get AI-powered explanations, refactoring suggestions, and documentation.

๐Ÿ“ Code Review
๐Ÿ” Bug Analysis
๐Ÿ“š Documentation
โšก Optimization
๐Ÿงช Unit Tests

Specialized Templates

Choose from various prompt templates designed for specific coding tasks and workflows.

How It Works

Understanding the magic behind AI Assistant

1

Install Ollama

Set up Ollama on your local machine to run AI models locally.

2

Install Extension

Add the AI Assistant extension to your VS Code environment.

3

Configure Settings

Customize the extension to fit your coding preferences.

4

Start Coding

Enjoy AI-powered assistance without sacrificing privacy.

Quick Start Guide

Get up and running in just a few minutes

1

Install Ollama

Download and install Ollama from the official website

# Visit https://ollama.ai and download for your OS
2

Pull a Model

Download a coding model (recommended: codellama)

ollama pull codellama:7b-instruct
3

Install Extension

Add CodePilot to your VS Code from the marketplace

4

Start Coding

Open VS Code and start using AI assistance

Ctrl + Shift + P then type "CodePilot"

Pro Tips

  • Try different models like codellama:13b for better performance
  • Use ollama run codellama to test your model first
  • Check our GitHub for troubleshooting

About CodePilot

Built for developers who value privacy and local control

Privacy-First AI Assistance

CodePilot was created with a simple philosophy: you should be able to use AI to enhance your coding without sacrificing privacy. By leveraging Ollama's local AI models, your code never leaves your machine.

Open Source & Community-Driven

This project is completely open source under the MIT License. We welcome contributions, feedback, and suggestions from the developer community to make CodePilot even better.

1K+ Downloads
4.8 Rating
MIT License

Built With

TypeScript
VS Code API
Ollama
Node.js

Contributors Welcome

Join our growing community of developers making AI more accessible and private.

Contribute