Practical overview
When it fits
Use it when you already have Code Llama Instruct and Continue running independently and want to connect them through a local compatibility layer.
Who it is for
- Visual Studio Code users who want Continue to use a locally run Code Llama Instruct model.
- Developers able to run Code Llama's model command and configure Continue.
Documented uses
- Connect a local Code Llama Instruct model to Continue in Visual Studio Code.
- Configure Continue to use local model inference for code assistance.
Requirements & limits
The repository is public and MIT-licensed. The documented setup uses a local model and does not require signing up for a model API service.
- The integration has three components to configure: Code Llama, the Flask-based Python adapter, and Continue.
- The README's setup depends on the Code Llama Instruct torchrun command and requires manual edits to Continue's config.json.
- The repository describes cross-platform use wherever Meta's Code Llama code runs.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up local Code Llama with Continue in VS Code
Connect a running Code Llama Instruct model to Continue through the Python mock API.
Before you start
- A downloaded and running Code Llama Instruct model
- The Continue extension installed in Visual Studio Code
- Flask installed in the Python environment
Steps
Move llamacpp_mock_api.py into the Code Llama folder and install Flask with pip install flask.
Run the script using the Code Llama Instruct torchrun command; the README provides a CodeLlama-7b-Instruct example.
Edit Continue's config.json according to its Llama.cpp provider configuration and replace MODEL_NAME with codellama-7b.
Restart VS Code or reload the Continue extension.
Expected outcome
Continue is configured to use the locally run Code Llama model for code-assistance workflows.
Guide limitations
- The guide assumes the model and Continue can already be run independently.
- The README points to Continue's provider configuration; it does not include the complete configuration inline.
Compare options for Model inference and serving
These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.
| Project | Documented purpose | Platform | Access and requirements |
|---|---|---|---|
| Code Llama For Vscode | Connect a local Code Llama Instruct model to Continue in Visual Studio Code. | Windows, Linux, macOS, Server | The repository is public and MIT-licensed. The documented setup uses a local model and does not require signing up for a model API service. |
| Ergo | Create a project with separate data-preparation, model and training scripts. | CLI | |
| Llama2Lang | Translate an instruction dataset into a target language and combine translation checkpoints. | The repository is public and identified as open source under the Apache-2.0 license. |
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 10 November 2026
- Original website title
- xNul/code-llama-for-vscode · Official homepage title · retained in its source language

