Empowering not replacing programmers for procise & efficiant workflows.
lsp-code-client is an open source language server that serves as a backend for AI-powered functionality in your favorite code editors. It offers features like in-editor chatting with LLMs and code completions. Because it is a language server, it works with any editor that has LSP support.
The goal of lsp-code-client is to assist and empower software engineers by integrating with the tools they already know and love, not replace software engineers.
A short list of a few of the editors it works with:
- VS Code
- NeoVim
- Emacs
- Helix
- Sublime
It works with many many many more editors.
NOTE: This project is currently used daily by many users and has reached a stage where it has all the features I want for it. Development is not necessarily done, but no new features are currently being developed for it.
Chat directly in your codebase with your favorite local or hosted models.
Chatting with Claude Sonnet in Helix
Create custom actions to do code refactoring, code completions and more!
Using Claude Sonnet to perform refactoring with chain of thought prompting in Helix
lsp-code-client can work as an alternative to Github Copilot.
LSP-AI.VS-Code.and.Helix.Demo.mp4
On the left: VS Code using Mistral Codestral. On the right: Helix using stabilityai/stable-code-3b
Note that speed for completions is entirely dependent on the backend being used. For the fastest completions we recommend using either a small local model or Groq.
See the wiki for instructions on:
tl;dr lsp-code-client abstracts complex implementation details from editor specific plugin authors, centralizing open-source development work into one shareable backend.
Editor integrated AI-powered assistants are here to stay. They are not perfect, but are only improving and early research is already showing the benefits. While several companies have released advanced AI-powered editors like Cursor, the open-source community lacks a direct competitor.
lsp-code-client aims to fill this gap by providing a language server that integrates AI-powered functionality into the editors we know and love. Here’s why we believe lsp-code-client is necessary and beneficial:
-
Unified AI Features:
- By centralizing AI features into a single backend, lsp-code-client allows supported editors to benefit from these advancements without redundant development efforts.
-
Simplified Plugin Development:
- lsp-code-client abstracts away the complexities of setting up LLM backends, building complex prompts and soon much more. Plugin developers can focus on enhancing the specific editor they are working on, rather than dealing with backend intricacies.
-
Enhanced Collaboration:
- Offering a shared backend creates a collaborative platform where open-source developers can come together to add new functionalities. This unified effort fosters innovation and reduces duplicated work.
-
Broad Compatibility:
- lsp-code-client supports any editor that adheres to the Language Server Protocol (LSP), ensuring that a wide range of editors can leverage the AI capabilities provided by lsp-code-client.
-
Flexible LLM Backend Support:
- Currently, lsp-code-client supports llama.cpp, Ollama, OpenAI-compatible APIs, Anthropic-compatible APIs, Gemini-compatible APIs and Mistral AI FIM-compatible APIs, giving developers the flexibility to choose their preferred backend. This list will soon grow.
-
Future-Ready:
- lsp-code-client is committed to staying updated with the latest advancements in LLM-driven software development.