https://github.com/SilasMarvin/lsp-ai Skip to content Navigation Menu Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + GitHub Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} SilasMarvin / lsp-ai Public * Notifications You must be signed in to change notification settings * Fork 8 * Star 339 * LSP-AI is an open-source language server that serves as a backend for AI-powered functionality, designed to assist and empower software engineers, not replace them. License MIT license 339 stars 8 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 4 * Pull requests 0 * Actions * Projects 0 * Wiki * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights SilasMarvin/lsp-ai This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main BranchesTags Go to file Code Folders and files Name Name Last commit message Last commit date Latest commit History 80 Commits .vscode .vscode docs/assets docs/assets editors/vscode editors/vscode examples/helix examples/helix logos logos src src tests tests .gitignore .gitignore Cargo.lock Cargo.lock Cargo.toml Cargo.toml LICENSE LICENSE README.md README.md View all files Repository files navigation * README * MIT license Logo LSP-AI LSP-AI is an open source language server that serves as a backend for performing completion with large language models and soon other AI powered functionality. Because it is a language server, it works with any editor that has LSP support. The goal of LSP-AI 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. See the wiki for instructions on: * Getting Started * Installation * Configuration * Plugins * Server Capabilities * and more LSP-AI 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. The Case for LSP-AI tl;dr LSP-AI 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-AI 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-AI is necessary and beneficial: 1. Unified AI Features: + By centralizing AI features into a single backend, LSP-AI allows supported editors to benefit from these advancements without redundant development efforts. 2. Simplified Plugin Development: + LSP-AI 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. 3. 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. 4. Broad Compatibility: + LSP-AI 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-AI. 5. Flexible LLM Backend Support: + Currently, LSP-AI supports llama.cpp, OpenAI-compatible APIs, Anthropic-compatible APIs and Mistral AI FIM-compatible APIs, giving developers the flexibility to choose their preferred backend. This list will soon grow. 6. Future-Ready: + LSP-AI is committed to staying updated with the latest advancements in LLM-driven software development. Roadmap There is so much to do for this project and incredible new research and tools coming out everyday. Below is a list of some ideas for what we want to add next, but we welcome any contributions and discussion around prioritizing new features. * Implement semantic search-powered context building (This could be incredibly cool and powerful). Planning to use Tree-sitter to chunk code correctly. * Support for additional backends * Exploration of agent-based systems About LSP-AI is an open-source language server that serves as a backend for AI-powered functionality, designed to assist and empower software engineers, not replace them. Topics ai ide self-hosted openai developer-tools llama auto-completion mistral lsp language-client llm llamacpp Resources Readme License MIT license Activity Stars 339 stars Watchers 7 watching Forks 8 forks Report repository Releases 1 v0.1.0 Latest Jun 7, 2024 Languages * Rust 93.2% * TypeScript 6.8% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.