Favicon of aider.el

aider.el

An Emacs coding assistant connects Aider to your editor for code changes, tests and reviews, with support for local models and cloud APIs.

Alternative to:

aider.el brings Aider into Emacs for developers who want AI help with their code without leaving the editor. It connects coding conversations to the files and Git repositories you're working on.

  • Code changes and tests: Ask Aider to implement TODO comments, edit a selected region or function, refactor existing code, and write unit tests.
  • Code review and error fixes: Review staged changes, branch differences or commits, and ask Aider to fix errors reported by Flycheck.
  • Code understanding and planning: Discuss a function, file or module, examine its history through Git blame and logs, or work through software design questions before writing code.
  • Project context: Share individual files or modules with Aider, include dependencies and files that depend on the current file, and keep separate conversations for different repositories.
  • Reusable prompts: Keep tasks and multiline prompts in repository-specific files, use prompt snippets, and find previous prompts with Helm's fuzzy search.

The package runs inside Emacs and requires Aider. It's free and open source under Apache 2.0, with integrations for Magit and Flycheck. Aider supports local models through LiteLLM, as well as cloud models such as Claude Sonnet, Gemini and OpenAI o4-mini. Cloud model use requires the chosen provider's authentication; the code and prompts you share go to that provider. Aider sessions can also run on a remote machine through Emacs TRAMP.

Similar to aider.el