VSCode Ollama
English · 中文
Bring the power of Ollama into VS Code — run local LLMs, chat, and let an autonomous coding agent read and modify your workspace, all without leaving your editor.
✨ Features
|
|
| 🤖 Local LLMs |
Run models locally via Ollama with low-latency, private responses and instant model switching. |
| 💬 Intelligent Chat |
Streaming output, visualized thought process, and preserved chat history. |
| 🛠️ Coding Agent |
An autonomous agent with read / write / edit / grep / find / ls / bash tools that reads and modifies your workspace. Risky operations ask for confirmation first. |
| 🧩 Subagents |
Delegate work to built-in codebase-search / plan / implement / review agents, in serial or parallel. |
| ⚙️ Flexible Configuration |
Custom server address, model, token limits, and per-agent tool/confirmation settings. |
📸 Screenshots
Chat interface with live agent activity
Settings page
🚀 Installation
1. Install Ollama
# macOS
brew install ollama
# Linux
curl -fsSL https://ollama.com/install.sh | sh
Pull a model before use:
ollama pull qwen2.5-coder:7b
2. Install the Extension
Open the Extensions view in VS Code, search for "VSCode Ollama", and click Install.
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P), run "Ollama: Settings", then set your server address and default model.
📖 Usage
Open the Command Palette and run "Ollama: Open Chat" to start a conversation.
Commands
| Command |
Description |
Ollama: Open Chat |
Open the chat interface |
Ollama: Settings |
Open the settings page |
Keyboard Shortcuts
| Shortcut |
Action |
Enter |
Send message |
Shift + Enter |
Insert a new line |
Settings
| Setting |
Default |
Description |
vscode-ollama.baseUrl |
http://127.0.0.1:11434 |
Ollama server address |
vscode-ollama.model |
deepseek-r1:32b |
Default model |
vscode-ollama.maxTokens |
4096 |
Maximum response tokens |
vscode-ollama.keepAlive |
5 minutes |
Model keep-alive duration |
vscode-ollama.systemPrompt |
— |
System prompt for chat conversations |
Coding Agent
Chat requests run in Agent mode by default — the model decides which files to read, which commands to run, and how to change the code, while the panel shows its thinking, tool calls, and results.
The agent supports the /reset command to clear the context and drop the current session.
The agent can delegate to subagents with an isolated context window:
codebase-search — locate relevant code and return structured findings
plan — turn context and requirements into a concrete implementation plan
implement — execute a task with full tool access
review — review code for quality and security
⚠️ Agent mode requires Node ≥ 22.19 (a recent VS Code build). On older builds plain chat still works and Agent mode reports a clear message.
Your local model must support tool calling for the agent to actually invoke tools.
🤝 Support
If this extension helps you, here are a few ways to show support:
- ⭐ Star the repository
- 🚀 Contribute to the codebase
- 💬 Share it with your friends
📄 Release Notes
See CHANGELOG.md.
📄 License
Licensed under the MIT License.
⭐ Star History
