FIM Copilot (Local LLM)FIM Copilot is a lightweight, high-performance VS Code and VSCodium extension for local, private code completion. Powered by Fill-In-The-Middle (FIM) coder models running via Ollama, llama.cpp, or any OpenAI-compatible completion server, it delivers real-time "ghost text" suggestions with zero telemetry and zero cloud dependencies. ✨ Features
🚀 Quick Start1. Run a Local LLM ServerChoose your preferred local inference engine: Option A: OllamaPull and run a coder model:
Option B: llama.cpp (
|
| Setting | Type | Default | Description |
|---|---|---|---|
enabled |
boolean |
true |
Enable or disable auto-completion. |
provider |
string |
"ollama" |
Target server protocol (ollama, llamacpp, or openai-compatible). |
serverUrl |
string |
"http://localhost:11434" |
HTTP endpoint of your local model server. |
model |
string |
"qwen2.5-coder:1.5b" |
Model tag or path identifier. |
debounceMs |
number |
200 |
Typing pause delay before firing LLM request (in ms). |
maxContextTokens |
number |
4096 |
Context window size allocated for prefix and suffix code. |
maxOutputTokens |
number |
64 |
Maximum tokens predicted per inline suggestion. |
temperature |
number |
0.2 |
Generation randomness (0.0 to 0.2 recommended for code). |
fimFormat |
string |
"qwen" |
Delimiter format (qwen, codellama, deepseek, starcoder, custom). |
customFim |
object |
{} |
Custom tokens if fimFormat is set to "custom". |
stopTokens |
array |
[...] |
List of string sequences where generation should stop. |
disabledLanguages |
array |
["plaintext", "log"] |
List of language IDs to ignore. |
⌨️ Extension Commands
Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) to run:
FIM Copilot: Toggle Auto-Completion: Instantly pause or resume completion without restarting the editor.FIM Copilot: Reload Configuration: Reload.fim-copilot.yamlor.fim-copilot.jsonon the fly after making edits.
📋 Troubleshooting & Output Logs
To view extension trace logs in real-time:
- Open the Output panel (
Ctrl + ~-> Output tab). - Select
FIM Copilotfrom the top-right dropdown menu. - Observe live request logs, token generation performance, and model latencies.
📄 License
MIT License. Free and open source for everyone.