Based on the search results, several VS Code extensions offer AI coding assistance and support the use of local LLMs[1]. Here are some of the most prominent ones with descriptions of their capabilities:
Extensions Supporting Local LLMs:
- Continue: This is frequently mentioned as a leading open-source extension for generative AI coding assistance in VS Code[1][2]. It allows developers to connect various models and context to build custom autocomplete and chat features. Continue is popular for its flexibility with both commercial and open-source models, and it specifically supports using local models (like those run with Ollama or LM Studio) to maintain data privacy [2, 3, 5, 9, 10, 14, 15, 16][1]. It offers features like inline commands, context-aware completions, natural language editing, and file generation [9][1].
- CodeGPT: Another powerful VS Code extension that connects AI models directly to your editor[1][3]. It can use locally installed models like Deepseek-Coder via Ollama [1][1][3]. While basic usage is free, advanced features and a one-click solution might require paid plans [4][1][4]. CodeGPT provides instant code suggestions, completions, and debugging insights [4][4]. It's also mentioned as being able to integrate with major platforms like Ollama and LM Studio for free [4][4].
- Cody (by Sourcegraph): Cody is an AI extension that can use context about APIs, symbols, and usage patterns within VS Code[1][2]. It supports connecting to local Ollama models in its free and pro versions [2, 17][2]. Cody offers conversational AI assistance and can work with various programming languages [2][2].
- twinny: This extension is highlighted for its unique fill-in-the-middle code completion feature and chat capabilities[1][5]. It offers seamless integration with platforms like Ollama and LM Studio[4]. twinny is described as completely free, entirely private, and offering customizable settings [9].
- llm-vscode: This extension for VS Code is powered by
llm-ls as its backend[1][6]. It supports "ghost-text" code completion and allows you to use your own HTTP endpoint that adheres to specific APIs, including Ollama and any OpenAI-compatible API (like llama-cpp-python) [8][1]. It also includes features like code attribution checks [8].
- LocalCompletion: This extension provides local LLM-based code completion similar to Copilot[1][7]. It doesn't have a built-in backend but works with any existing tool that supports the OpenAI API [12][1][7]. Features include inline code completion, saving multiple API endpoints, reducing requests, and dynamically detecting completion types [12].
- Visual Studio Code AI Toolkit (Preview): Developed by Microsoft, this toolkit allows you to run pre-optimized AI models locally within VS Code[1]. It aims to address data privacy and cost-effectiveness concerns by enabling local deployment of LLMs and SLMs [6][1][8]. It provides features for onboarding models, evaluation in a playground environment, and fine-tuning [6][1][8].
Other Noteworthy Extensions (May primarily use cloud models but offer comprehensive features):
- GitHub Copilot: One of the most popular VS Code extensions, known for helping write code faster and smarter[1][2]. It provides inline coding suggestions and a companion chat extension (GitHub Copilot Chat) [2][2]. While primarily cloud-based, it's a benchmark for comprehensive AI coding features[1].
- Codeium: Described as a cutting-edge extension for improving coding efficiency and accuracy[1][2]. It offers chat, code in your language, search, and autocomplete features in over 70 languages[2]. Individuals get unlimited free access to single and multi-line code autocompletion with Codeium's model [2][2][9].
Key Tools for Running Local LLMs:
Many of the extensions listed above rely on external tools to run the local LLMs[1]. The most commonly mentioned tools for this purpose are:
- Ollama: A popular and easy-to-use tool for running open-source AI models locally[1]. It's lightweight and works across different operating systems [1, 3, 4, 10, 14, 17][3].
- LM Studio: Described as a user-friendly UI for running local LLMs [3, 5, 9][1][10]. It simplifies downloading and serving models locally [5][4][8].
When choosing an extension, consider the specific features you need (e.g., chat, code completion, context awareness), the ease of integration with local LLM runners (like Ollama or LM Studio), and the hardware requirements for running local models[1]. Continue and CodeGPT appear to be strong contenders for comprehensive features with robust local LLM support.