{"id":14964506,"url":"https://github.com/xnul/codestral-mamba-for-vscode","last_synced_at":"2025-10-05T10:30:39.204Z","repository":{"id":249174278,"uuid":"830659722","full_name":"xNul/codestral-mamba-for-vscode","owner":"xNul","description":"Use Codestral Mamba with Visual Studio Code and the Continue extension. A local LLM alternative to GitHub Copilot.","archived":false,"fork":false,"pushed_at":"2024-07-18T18:24:39.000Z","size":4,"stargazers_count":31,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-20T16:05:58.387Z","etag":null,"topics":["api","assistant","code","codestral","continue","continuedev","copilot","github","llama","llamacpp","local","mamba","mistral","mock","studio","visual","vscode"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xNul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-18T17:55:53.000Z","updated_at":"2025-01-16T01:22:21.000Z","dependencies_parsed_at":"2024-07-19T01:46:00.652Z","dependency_job_id":"2fff0013-f004-450b-888c-aee41661f821","html_url":"https://github.com/xNul/codestral-mamba-for-vscode","commit_stats":null,"previous_names":["xnul/codestral-mamba-for-vscode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xNul%2Fcodestral-mamba-for-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xNul%2Fcodestral-mamba-for-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xNul%2Fcodestral-mamba-for-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xNul%2Fcodestral-mamba-for-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xNul","download_url":"https://codeload.github.com/xNul/codestral-mamba-for-vscode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235383702,"owners_count":18981198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","assistant","code","codestral","continue","continuedev","copilot","github","llama","llamacpp","local","mamba","mistral","mock","studio","visual","vscode"],"created_at":"2024-09-24T13:33:16.880Z","updated_at":"2025-10-05T10:30:38.857Z","avatar_url":"https://github.com/xNul.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codestral Mamba for VSCode\n\nAn API which mocks [Llama.cpp](https://github.com/ggerganov/llama.cpp) to enable support for Codestral Mamba with the\n[Continue Visual Studio Code extension](https://continue.dev/).\n\nAs of the time of writing and to my knowledge, this is the only way to use Codestral Mamba with VSCode locally. To make it work, we implement the `/completion` REST API from [Llama.cpp's HTTP server](https://github.com/ggerganov/llama.cpp/blob/master/examples/server/README.md) and configure Continue for VSCode to use our server instead of Llama.cpp's. This way we handle all inference requests from Continue instead of Llama.cpp. When we get a request, we simply pass it off to [mistral-inference](https://github.com/mistralai/mistral-inference) which runs Continue's request with Codestral Mamba. Platform support is available wherever mistral-inference can be run.\n\nNow let's get started!\n\n### Setup\n\nPrerequisites:\n- [Download and run Codestral Mamba with mistral-inference](https://huggingface.co/mistralai/mamba-codestral-7B-v0.1) (Ref [1](https://colab.research.google.com/drive/1aHH4PW4eBU_R4R8pQ9BuYeOeMTiA98NF?usp=sharing#scrollTo=KWz9SwHXUfi-) \u0026 [2](https://github.com/mistralai/mistral-inference/releases/tag/v1.2.0) \u0026 [3](https://github.com/mistralai/mistral-inference/issues/192#issuecomment-2234242452))\n- [Install the Continue VSCode extension](https://marketplace.visualstudio.com/items?itemName=Continue.continue)\n\nAfter you are able to use both independently, we will glue them together with Codestral Mamba for VSCode.\n\nSteps:\n1. Install Flask to your mistral-inference environment with `pip install flask`.\n2. Run `llamacpp_mock_api.py` with `python llamacpp_mock_api.py \u003cpath_to_codestral_folder_here\u003e` under your mistral-inference environment.\n3. Click the settings button at the bottom right of Continue's UI in VSCode and make changes to `config.json` so it looks like [this](https://docs.continue.dev/reference/Model%20Providers/llamacpp)[\u003csup\u003e\\[archive\\]\u003c/sup\u003e](http://web.archive.org/web/20240531162330/https://docs.continue.dev/reference/Model%20Providers/llamacpp). Replace `MODEL_NAME` with `mistral-8x7b`.\n\nRestart VSCode or reload the Continue extension and you should now be able to use Codestral Mamba for VSCode!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnul%2Fcodestral-mamba-for-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxnul%2Fcodestral-mamba-for-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnul%2Fcodestral-mamba-for-vscode/lists"}