gen.nvim
Run prompts against local Ollama models from inside Neovim.
Overview
gen.nvim is a compact Neovim plugin that sends the current selection or buffer to an Ollama model with predefined or custom prompts. Results can replace text or open in a split, and follow-up chat is supported.
- Prompt menu
- Replace selection
- Follow-up chat
- Custom prompts
Our verdict
What we like
- Minimal and fast
- Fully local
Watch out for
- Ollama only out of the box
Works with these providers
Keys from these providers work in this app. Usage is billed by the provider at its list price.
BYOK Key Safety Score
Key handling in gen.nvim
Grade A
Your key is stored on your device and requests go directly to the provider.
- Key storage40/40
Key stays on your device; requests go direct to the provider.
- Auditable code25/25
Open source: anyone can verify how keys are handled.
- Self-hosting8/15
Runs as a local app, but not as a self-hosted service.
- Offline option10/10
Supports local models, so no key is needed at all for private work.
- Provider choice2/10
1 provider option, which lets you pick the provider whose data terms you trust.
Whatever the score, give each app its own key, set a monthly spend limit with your provider, and revoke keys you no longer use. Read the key-safety checklist.
gen.nvim FAQ
- Does gen.nvim support bring your own key?
- Yes. gen.nvim accepts your own API key from Ollama. Usage is billed by the provider at its API rates.
- Where does gen.nvim store my API key?
- On your device. Requests go directly from gen.nvim to the provider. Its BYOK Tools Key Safety Score is 85/100.
- Is gen.nvim free?
- Open source: Free & open source. API usage is billed separately by your model provider.
- Is gen.nvim open source?
- Yes. The source code is at https://github.com/David-Kunz/gen.nvim.
- Can gen.nvim run local models?
- Yes. It can connect to local runtimes such as Ollama or LM Studio, so no API key is needed for private or offline use.
- Which platforms does gen.nvim support?
- CLI.
Community reviews
No reviews yet.
Alternatives to gen.nvim
All coding agents & ides →Aider
Coding Agents & IDEs
AI pair programming in your terminal with git-aware edits.
OpenCode
Coding Agents & IDEs
Open-source terminal coding agent that works with any provider.
Goose
Coding Agents & IDEs
Extensible open-source AI agent from Block for coding and beyond.
OpenAI Codex CLI
Coding Agents & IDEs
OpenAI lightweight open-source coding agent for the terminal.
OpenHands
Coding Agents & IDEs
Open-source autonomous software engineering agent platform.
gptel
Coding Agents & IDEs
Simple, provider-agnostic LLM client for Emacs.