NORMAL ~/wkd/p/ai :set skin=modern utf-8

ai.nvim

A provider-agnostic ask/stream layer for talking to an AI from inside Neovim -- context assembly (buffer/selection/diagnostics), a streaming answer panel, and one :Ai command, instead of every plugin hand-rolling its own curl calls.

status
beta — Beta stage — active development. This repository is past its first shape and in active use, but the surface is not frozen: breaking changes are still possible. Pin a commit or tag if you depend on it.
category
AI
neovim
0.11+
repo
github.com/WKDSteve/ai.nvim
commits
184
help
:help ai

install

{
  "WKDSteve/ai.nvim",
  opts = {},
}

also as

  • native app: ai-desktop — Local agent-framework server (C++17, cpp-httplib).

docs/

git log

  1. fix sheets: key sheet expects provider_resolution after reset, run lines name --task
  2. fix sheets: room for thinking in the model sheet, the key file removed on any exit
  3. test sheets: live sheets for the Claude API features, a manual one for the key setup
  4. test sheets: :Ai trust in the real viewer, blink.cmp, live Ollama and ai-desktop
  5. fix ollama: effort low switches a thinking model's thinking off
  6. test sheets: live sheet for num_ctx against a real Ollama
  7. fix ollama: send max_tokens as num_predict, warn about a long prompt once
  8. fix repo_prompt: write the trust store atomically, keep an unreadable one
  9. fix repo_prompt: a prompt file that links out of the project root is refused
  10. fix repo_prompt: :Ai trust allow in the review popup trusts the file shown
  11. feat the repository's own system-prompt file, trusted per content
  12. test sheets: room for thinking in the live provider sheets

keys

j / k
next / previous line
gg / G
first / last line
⏎
open the line under the cursor
/
search plugins and apps (app: x or plugin: x narrows)
:
command line — Tab completes
:help x
vimdoc of a plugin (:e x = plugin page)
:ls · :apps · :play · :log · :stack
plugin list · app list · play area · activity stream · dependency graph
:log apps
the stream of one area (plugins or apps)
:colo x
colorscheme
:set skin=
modern | tui
?
this help
esc
close