Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Neovim
  3. llm.nvim

llm.nvim

GPL-3.0Luav1.3.0

A Neovim plugin for interacting with various large language models (LLMs) like ChatGPT, Copilot, and local models directly within the editor.

GitHubGitHub
476 stars36 forks0 contributors

What is llm.nvim?

llm.nvim is a Neovim plugin that provides a unified interface to interact with various large language models directly within the editor. It solves the problem of context switching by allowing developers to chat with AI, generate code, explain code, translate text, and perform other AI-assisted tasks without leaving their coding environment. The plugin supports both cloud-based models like ChatGPT and Copilot, as well as local models via Ollama.

Target Audience

Neovim users and developers who want to integrate AI-powered assistance into their editing workflow, including those working with code generation, documentation, translation, and code review tasks.

Value Proposition

Developers choose llm.nvim for its extensive model support, customizable AI tools, and seamless Neovim integration, offering a flexible and powerful alternative to standalone AI applications or limited editor extensions.

Overview

A large language model (LLM) plugin for Neovim, provides commands to interact with LLM (like ChatGPT, Copilot, ChatGLM, kimi, deepseek, openrouter and local llms). Support Github models.

Use Cases

Best For

  • Integrating ChatGPT and other LLMs directly into Neovim for in-editor conversations
  • Generating code explanations and documentation without switching to a browser
  • Translating code comments or text snippets within the editor
  • Creating custom AI tools for specific development tasks like test generation or code optimization
  • Using free LLM models from platforms like GitHub or Cloudflare within a local editor
  • Working with local LLMs via Ollama for privacy-sensitive or offline development

Not Ideal For

  • Users wanting a simple, plug-and-play AI assistant with zero configuration
  • Projects relying on real-time, low-latency code completion without extra plugin dependencies like nvim-cmp
  • Developers using editors other than Neovim who need cross-platform AI tooling

Pros & Cons

Pros

Extensive Model Support

Integrates with a wide range of LLMs including OpenAI, local models via Ollama, and free platforms like GitHub Models and Cloudflare, as detailed in the key features table.

Customizable AI Tools

Allows defining custom tools with specific prompts and models for tasks like translation, code explanation, and test generation, shown in the examples directory.

Flexible UI Layouts

Offers both floating and split-window chat interfaces with customizable keymaps and layouts, providing adaptability to different workflow preferences.

Free Model Integration

Supports free models from platforms like SiliconFlow and Cloudflare Workers AI, with detailed setup instructions for API key acquisition.

Cons

Complex Initial Setup

Requires environment variable configuration (LLM_KEY), dependency management (curl, fzf), and Lua-based setup, which can be daunting for less technical users.

Fragmented Documentation

Critical information is scattered across examples, wiki, and docs, with the README directing users to check examples first, leading to potential confusion.

Custom Parsing Overhead

For non-standard models like Ollama, users must implement custom streaming or parsing handlers, adding development effort as shown in the examples.

Frequently Asked Questions

Quick Stats

Stars476
Forks36
Contributors0
Open Issues0
Last commit8 days ago
CreatedSince 2024

Tags

#vimscript#ai#developer-tools#ai-assistant#neovim-plugin#glm#llm#large-language-models#ollama#deepseek#chatgpt#lua#code-generation#openrouter#copilot

Built With

n
nui.nvim
N
Neovim
p
plenary.nvim
L
Lua

Included in

Neovim20.6k
Auto-fetched 17 hours ago

Related Projects

avante.nvimavante.nvim

Use your Neovim like using Cursor AI IDE!

Stars18,001
Forks829
Last commit4 days ago
codecompanion.nvimcodecompanion.nvim

✨ AI Coding, Vim Style

Stars6,704
Forks429
Last commit1 day ago
ChatGPT.nvimChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API

Stars4,001
Forks321
Last commit5 months ago
CopilotChat.nvimCopilotChat.nvim

Chat with GitHub Copilot in Neovim

Stars3,650
Forks171
Last commit10 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub