minuet-ai.el

πŸ’ƒ Dance with LLM in Your Code. Minuet offers code completion as-you-type from popular LLMs including OpenAI, Gemini, Claude, Ollama, Llama.cpp, Codestral, and

What is minuet-ai.el?

πŸ’ƒ Dance with LLM in Your Code. Minuet offers code completion as-you-type from popular LLMs including OpenAI, Gemini, Claude, Ollama, Llama.cpp, Codestral, and more.

Overview of minuet-ai.el

What it is

Minuet is an Emacs package that provides code completion as-you-type from popular large language models (LLMs), including OpenAI, Gemini, Claude, Ollama, Llama.cpp, and Codestral. It is licensed under GPL-3.0 and is available as free and open source software.

Key features

  • LLM-powered code completion with dual modes: specialized prompts for chat-based LLMs and fill-in-the-middle (FIM) for compatible models (DeepSeek, Codestral, and some Ollama models).
  • Support for multiple LLM providers: OpenAI, Claude, Gemini, Codestral, Ollama, Llama.cpp, and OpenAI-compatible providers.
  • Customizable configuration options.
  • Streaming support to enable completion delivery even with slower LLMs.
  • Accept multi-line suggestions line-by-line; longer suggestions can be pulled in incrementally.
  • When typed text matches the start of a suggestion, Minuet keeps the completion in sync rather than discarding it, reducing unnecessary LLM requests.
  • Next-edit prediction (NES) via minuet-duet commands (experimental).

Use cases

Minuet is intended for Emacs users who want AI-assisted code completion while editing code. It can be used with local models (Ollama, Llama.cpp) or remote cloud services (OpenAI, Gemini, Claude, Codestral, OpenAI-compatible) to provide inline suggestions, ghost text overlays, and minibuffer previews. The next-edit prediction feature targets scenarios where the user wants to quickly apply commonly predicted edits.

Getting started

Install Minuet from ELPA or MELPA using your preferred package manager, then configure a provider. An API key for at least one provider is required. See the repository README for full installation and configuration details.elisp;; install with package.el(package-install 'minuet);; install with straight(straight-use-package 'minuet)(use-package minuet :bind (('M-y' . #'minuet-complete-with-minibuffer) ('M-i' . #'minuet-show-suggestion) ('C-c m' . #'minuet-configure-provider) :map minuet-active-mode-map ('M-p' . #'minuet-previous-suggestion) ('M-n' . #'minuet-next-suggestion) ('M-A' . #'minuet-accept-suggestion) ('M-a' . #'minuet-accept-suggestion-line) ('M-w' . #'minuet-accept-suggestion-word) ('M-e' . #'minuet-dismiss-suggestion)) :init (add-hook 'prog-mode-hook #'minuet-auto-suggestion-mode) :config (setq minuet-provider 'openai-fim-compatible) (minuet-set-optional-options minuet-openai-fim-compatible-options :max_tokens 64))

License and pricing

Minuet is licensed under GPL-3.0. It is free and open source software. Pricing for LLM usage depends on the provider chosen; the software itself is free of charge.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/milanglacierminuet-aiel.svg)](https://yunodb.com/tools/milanglacierminuet-aiel?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/milanglacierminuet-aiel?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/milanglacierminuet-aiel.svg" alt="Featured on YunoDB" height="20"></a>