vim-chatgpt
FreeVim plugin.
FreeFree tier
Inputs: textOutputs: text
About vim-chatgpt
vim-llm-agent (formerly vim-chatgpt) is an open-source Vim plugin that integrates large language model capabilities directly into the Vim editor. It provides a full-featured LLM agent with multi-provider support, enabling users to interact with AI models for code assistance, autonomous tool execution, and complex multi-step tasks. The plugin supports providers including OpenAI (ChatGPT, GPT-4, GPT-4o), Anthropic (Claude), Google (Gemini), Ollama (local models), and OpenRouter (unified API for 100+ models). It is designed for developers who want AI-powered code intelligence and agentic workflows within their existing Vim environment.
Key Features
Agentic workflows with plan approval and autonomous tool execution
Tool calling for file operations, git integration, and project exploration
Context-aware session persistence, conversation summaries, and project context
Multi-provider support: OpenAI, Anthropic, Google, Ollama, OpenRouter
Code intelligence features: explain, review, and refactor code with visual selections
Backwards compatibility with previous vim-chatgpt configuration and directory names
Pros & Cons
Pros
- Open-source and free to use (requires API keys from providers)
- Supports multiple LLM providers, including local models via Ollama
- Agentic workflows with autonomous tool execution and plan approval
- Context-aware features like session persistence and project context
- Backwards compatible with previous vim-chatgpt configurations
Cons
- Requires Vim with Python3 support and API keys from chosen providers
- Free tier availability depends on the provider's API pricing; plugin itself is free
- Setup may require familiarity with Vim plugin installation and API key configuration
- Autonomous tool execution may pose risks if not carefully supervised
- Limited to Vim editor; not available for other editors or IDEs
Best For
Code explanation and review within VimAutomated refactoring of selected code blocksAutonomous file and git operations via agentic tool callingMulti-step task execution with plan approvalProject-level context-aware AI assistanceIntegration with local or cloud LLM providers for flexible AI access
FAQ
Is vim-llm-agent free to use?
The plugin itself is open-source and free, but it requires API keys from providers like OpenAI, Anthropic, or Google, which may have their own usage costs. Users should verify pricing with their chosen provider.
What LLM providers does vim-llm-agent support?
Based on available information, it supports OpenAI, Anthropic (Claude), Google (Gemini), Ollama (local models), and OpenRouter (unified API for 100+ models).
Does vim-llm-agent work with the original vim-chatgpt configuration?
Yes, the plugin maintains full backwards compatibility with old configuration variables and directory names from vim-chatgpt, as noted in the repository.
What are the prerequisites for installing vim-llm-agent?
The plugin requires Vim with Python3 support and an API key from a supported provider. Installation details should be verified in the repository's README.
Can vim-llm-agent execute commands autonomously?
Yes, it features agentic workflows with autonomous tool execution for file operations, git commands, and other tasks, but includes a plan approval system for oversight.
Is vim-llm-agent only for ChatGPT?
No, despite its original name vim-chatgpt, the plugin now supports multiple providers including Anthropic, Google, Ollama, and OpenRouter, as indicated in the repository.