ofcRS

Nvim Acai — AI skill for Claude Code

AI community

AI inline autocomplete plugin for Neovim — ghost text suggestions from any AI provider (OpenRouter, OpenAI, Anthropic).

How to install Nvim Acai

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ofcRS/nvim-acai and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Nvim Acai does

AI inline autocomplete plugin for Neovim — ghost text suggestions from any AI provider (OpenRouter, OpenAI, Anthropic).

Alternatives in AI

  • Zen MCP Server — The power of Claude Code + Gemini / OpenAI / Grok / OpenRouter / Ollama / Custom Model working as one 11.3k ★
  • Codecompanion.nvim — GitHub Repo stars AI-powered coding seamlessly in Neovim Neovim AI coding 6.3k ★
  • Claude Code.nvim — by greggh - A seamless integration between Claude Code AI assistant and Neovim 1.9k ★

README

nvim-acai

AI inline autocomplete for Neovim. Ghost text suggestions as you type, like Copilot — but works with **any AI provider**.

nvim-acai ghost text completion demo

Supports [OpenRouter](https://openrouter.ai), OpenAI, Anthropic, and any OpenAI-compatible API (Groq, Ollama, Together, etc).

Requirements

  • Neovim >= 0.10
  • curl in PATH
  • API key for your chosen provider

Install

lazy.nvim

{
  "ofcRS/nvim-acai",
  event = "InsertEnter",
  opts = {
    provider = "openrouter", -- "openai", "anthropic", or "openrouter"
  },
}

Setup

Set your API key as an environment variable:

# Pick one:
export OPENROUTER_API_KEY="sk-or-..."
export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."

Then call setup with your preferred provider:

require("acai").setup({
  provider = "openrouter",
})

Run `:AcaiStatus` to verify the plugin is loaded and your key is detected.

Config

All options with defaults:

require("acai").setup({
  provider = "openrouter",
  providers = {
    openrouter = {
      api_key_env = "OPENROUTER_API_KEY",
      api_base = "https://openrouter.ai/api/v1",
      model = "anthropic/claude-sonnet-4",
      max_tokens = 256,
      temperature = 0.0,
    },
    openai = {
      api_key_env = "OPENAI_API_KEY",
      api_base = "https://api.openai.com/v1",
      model = "gpt-4o-mini",
      max_tokens = 256,
      temperature = 0.0,
    },
    anthropic = {
      api_key_env = "ANTHROPIC_API_KEY",
      api_base = "https://api.anthropic.com/v1",
      model = "claude-sonnet-4-20250514",
      max_tokens = 256,
      temperature = 0.0,
    },
  },
  completion = {
    debounce_ms = 200,
    max_context_chars = 4096,
    auto_trigger = true,
    filetypes_exclude = {},
  },
  ghost_text = {
    hl_group = "AcaiGhostText",
  },
  keymaps = {
    accept = "",
    accept_word = "",
    accept_line = "