Back to directory

llm-ls

A language server that connects code editors to LLMs for code completion, handling prompt construction, context-window tokenization and multi-backend model access so editor extensions can stay lightweight.

llm-ls

llm-ls is a Language Server Protocol server that provides LLM-based code completion so that editor extensions built on top of it can stay thin. It builds a fill-in-the-middle or plain completion prompt from the current file, checks the prompt against the model's context window by tokenizing it, and parses the file's AST to decide whether a completion should be multi-line, single-line or empty.

It supports multiple backends, including Hugging Face's Inference API and text-generation-inference, Ollama, and OpenAI-compatible APIs such as the python llama.cpp server bindings, and logs request and completion telemetry locally rather than exporting it. It is used by the llm.nvim, llm-vscode and llm-intellij editor extensions, and the project describes itself as a work in progress.

More in Inference

See all 770
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • Lifeboat

    iterate.ai

    A local inference server that puts an OpenAI- and Anthropic-compatible API in front of open-weight language models running on hardware you control, from a laptop to a GPU cluster.

  • Claude S40

    github.com

    An unofficial Claude chat client for 2007-era Nokia Series 40 phones, built as a Java ME app plus a small Go relay server, with web search, reading mode and saved chats.