Description
llm-ls is a language server that uses large language models for code completion. A language server is a background program that editors talk to, so one server can serve many editor plugins. The stated goal of llm-ls is to give IDE extension authors a shared platform, so the extensions can stay small while the server handles building prompts and calling the model. It uses the current file as context and can build the prompt with fill-in-the-middle, while tokenizing the prompt to stay inside the model's context window. It reads the syntax tree of the code to decide whether a completion should be a single line, several lines or none. It is compatible with Hugging Face's Inference API, text-generation-inference, ollama, and OpenAI-compatible APIs such as the Python llama.cpp server bindings. Compatible extensions listed in the README include llm.nvim, llm-vscode and llm-intellij. The README says telemetry is only written to a local log file, and the project is marked as a work in progress.…
Highlights
- Language server for LLM code completion
- Fill-in-the-middle prompts built from the current file
- Single-line, multi-line or no completion from the syntax tree
- Works with Hugging Face, ollama and OpenAI-compatible APIs
- Works with llm.nvim, llm-vscode and llm-intellij
Ratings & Reviews
No ratings yet
Be the first to rate LLM LS.
People also visit
Vscode Unify Chat Provider
Integrate multiple LLM API providers into VS Code's GitHub Copilot Chat
LLM LS FAQ
What is llm-ls?
A language server that brings LLM-based code completion to editor extensions, so the extensions do not have to call the models themselves.
Which editors can use it?
The README lists llm.nvim, llm-vscode and llm-intellij as compatible extensions.
Which model backends does it support?
Hugging Face's Inference API, text-generation-inference, ollama, and OpenAI-compatible APIs such as the llama.cpp server bindings.
Does it send my code anywhere?
The README says llm-ls does not export data anywhere beyond the user-agent header on model API calls. Telemetry goes to a local log file when the log level is set to info.
Is it ready for everyday use?
Not yet. The README says it is a work in progress and that things may be broken.
What are the best LLM LS alternatives?
Popular alternatives to LLM LS include LSP AI, Vscode Unify Chat Provider and liter-llm. See all LLM LS alternatives


