This video demonstrates how to connect VSCode to a locally hosted large language model (LLM) using the Continue extension and Ollama, enabling AI-powered coding assistance without cloud dependencies. The process involves installing VSCode, Ollama with a local LLM, the Continue extension, and configuring the config.js file with model settings including IP address, port, model name, and system messages. The presenter shows practical demonstrations of code generation (creating a Python Fibonacci number generator), code completion, and inline comments, proving that locally hosted AI assistants can provide coding assistance comparable to paid services like GitHub Copilot.
Run Local LLM Coding Assistant in VSCode with Ollama and Continue
Added:in this video I want to show you how you can benefit from your locally installed llm when you're coding programs or in my case creating code for algorithmic trading strategies we're going to connect our vs code Editor to our locally hosted language model to optimize our coding sessions let's do this step by step and start with the requirements to follow this video to begin with the code editor you should already have installed vs code in your machine to follow this instruction and then you should also have installed AMA and a large language model locally and if you don't know how to do this then watch my previous video there I explain in 10 minutes how you can install aama and the large language models because it's super easy and everybody can do this I believe after you have done this and Alama is running locally you can proceed with the next steps open vs code and search for the extension continue then install that extension and after this has been done the continue button will pop up in your sidebar if not then you'll have to probably restart vs code if you have the button you can click on it and then the prompt window opens in my case you can see that it already has Cloud on it as it's default language model set and it could be that after you have installed it you see other language models but don't be scared because we can add our own models here and all we have to do for it is to click on this little icon this will open the config.js file of continue and here we can configure our own AMA server and the models it contains now I already have prepared a configuration file and I will copy and paste the settings into the configuration file next what you see here are the following settings the first setting contains the models I have installed on my AMA server and each has a title that will be shown in the drop- down menu on the prompt window then the provider should be configured here in my case Alama server the next setting is the IP address and port number on which the language model is served in my case the AMA server is running on the same computer where I use vs code so I can set Local Host here but if you work on a laptop and use a centralized server at home then this should contain the IP address of the server that's running AMA here the model should contain the model name obviously and then there is a system message that you can give to the model in this case these are the system default messages but the great part is that you can alter this system message in such a way that it is completely preconfigured on how you want to respond it to your question now I haven't tried this yet but I think that you can also create multiple responses that can be based on the same model by creating multiple titles and different system messages now a little bit down in this config file you can also see that I have created an autotap completion model and this model is used when you're are going to type code and it responds with suggestions to autocomplete your code now I haven't tried these context providers yet so you'll have to look this up in the documentation but for me this basic configuration is enough to get me started using vs code with an AI assistant this should work similarly as a GitHub co-pilot or cursor without having to pay these ridiculous amounts of money for their service so let's give it a test run to see how it works I'll ask the language model to create a piece of python code that prints fibon numbers between zero and 100 so let me open a new file and let's create a python file for it and here you can choose the model that you want to use to create the code let's use deep seek as an example and I'll add the instructions [Music] [Music] here see how fast this code is generated wow let's add it to the file and save it and have to give it a nice name too then let's run it from the terminal and wow bang all the Fibonacci numbers between zero and 100 let's check if autoc completion works as well I'll add a description to this function too and in this case it fully understands the mission and automatically creates the description here now let's do some other random stuff in the code as well first I'll make the counter go to,000 and then add some inline comments as [Music] well and let's finally create a comment and see if the auto complete recognizes the assignment and it actually does wow this is amazing I can see now why everybody is so hyped up let's check if the code works and it does too wow wow incredible I already can see so much potential here and if I can also add a separate rack system as well wow but let's keep this for another time I hope that I gave you enough information to add this to vs code and start to optimize your coding sessions now thanks for watching and click like And subscribe or give a comment if you want to see more of this in the future for now I think this is it and I will see you in the next video goodbye
Up Next

VS Code Inline Quick Suggestions: Complete Guide
@Code2020
29.4K views•2022-04-11

IFS Therapy Demonstration: Complete Session with Unburdening
@IFSCA
95.9K views•2021-01-13

FastAPI vs Flask vs Django: Choosing the Right Python Web Framework
@TechWithTim
302.5K views•2024-05-26

Game of Thrones Opening Credits: A Cinematic Analysis
@gameofthrones
46.3M views•2011-04-18
Related Study Plans & Knowledge Roadmaps
Structured learning paths in General & Interdisciplinary Studies







































