whereismyai
CodeCompanion
CodeCompanion is an AI coding plugin for Neovim that enables inline code editing and chat with various large language models and CLI agents.
CodeCompanion is an AI coding plugin designed for Neovim that connects to various large language models and command-line agents. It uses an interaction system to allow users to chat directly within a buffer or write code output inline into existing files. The plugin supports extensive integrations, including Anthropic, Google Gemini, OpenAI, Ollama, and many others, as well as Agent Client Protocol and Model Context Protocol. Users can customize their experience through slash commands, custom prompts, and specific rulesets like CLAUDE.md. It also handles various inputs, including images and PDFs, to provide context for code reviews, refactoring, and generation tasks.
CodeCompanion at a glance
- Best for: Software engineer
- Runs on: Neovim
- Pricing: Free
- Released: December 2023
- Category: AI coding tool
- Website: codecompanion.olimorris.dev
Key features
- Inline code transformation and refactoring
- Support for multiple concurrent chat sessions
- Integration with LLMs like Claude, Gemini, and OpenAI
- Support for Agent Client Protocol and CLI agents
- Model Context Protocol support
- Customizable prompts, slash commands, and editor context
- Code review capabilities with approval workflows
Use it for
- Performing inline code refactoring and creation
- Chatting with AI models about code in Neovim
- Reviewing and managing code generated by AI agents
- Analyzing PDF and image files for coding context
Companions
Tools that articles about CodeCompanion recommend using with it, each with its job.
- Context7 — Provides up-to-date documentation for AI agents and code editors.
- Ollama — Run local models at zero marginal cost, with code kept on your machine.
- OpenRouter — Access over 500 models and 80 providers through one unified API.
- Daytona — Runs sessions in isolated sandboxes synced to git branches.
- Oh My OpenCode Slim — Lightweight multi-agent orchestration and background tasks.
Alternatives to CodeCompanion
- opencode.nvim — Keeps AI interactions within the existing Neovim environment and workflow.
- claudecode.nvim — Adds native AI coding assistant functionality to Neovim.
- ModLens — Converts screenshots and charts into structured JSON data for coding agents.
- OpenCode — Works with 75+ model providers, local models, and existing subscriptions
- CodeGraph — It eliminates file crawling, reducing AI agent tool calls by 88% and cutting costs.
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- sidekick.nvim — Integrates Copilot Next Edit Suggestions and AI command-line tools inside Neovim.
- OpenClaude — Connects one terminal interface to over 200 different AI models.
- Composio — Equips AI agents with tools, managed user auth, and sandboxes across 1,500+ apps
- CodeSight — Reduces AI token usage significantly and maps projects instantly.
- Command Code — Repairs open model tool calls and learns developer patterns automatically.
- CopilotChat.nvim — Integrates GitHub Copilot chat into Neovim with tool calling and custom providers.
All CodeCompanion alternatives