twinny
Free, private AI code completion for VS Code with local models.
Overview
twinny is an open-source VS Code extension offering code completion and chat using local models through Ollama or other OpenAI-compatible APIs. It is designed as a privacy-friendly Copilot alternative.
- Fill-in-middle completion
- Chat
- Workspace embeddings
- Custom templates
Our verdict
What we like
- Completely free
- Local-first
Watch out for
- Fewer agent features
Works with these providers
Keys from these providers work in this app. Usage is billed by the provider at its list price.
BYOK Key Safety Score
Key handling in twinny
Grade A
Your key is stored on your device and requests go directly to the provider.
- Key storage40/40
Key stays on your device; requests go direct to the provider.
- Auditable code25/25
Open source: anyone can verify how keys are handled.
- Self-hosting8/15
Runs as a local app, but not as a self-hosted service.
- Offline option10/10
Supports local models, so no key is needed at all for private work.
- Provider choice10/10
7 provider options, which lets you pick the provider whose data terms you trust.
Whatever the score, give each app its own key, set a monthly spend limit with your provider, and revoke keys you no longer use. Read the key-safety checklist.
twinny FAQ
- Does twinny support bring your own key?
- Yes. twinny accepts your own API key from Ollama, LM Studio, OpenAI, Anthropic, OpenRouter, Groq and OpenAI-compatible. Usage is billed by the provider at its API rates.
- Where does twinny store my API key?
- On your device. Requests go directly from twinny to the provider. Its BYOK Tools Key Safety Score is 93/100.
- Is twinny free?
- Open source: Free & open source. API usage is billed separately by your model provider.
- Is twinny open source?
- Yes. The source code is at https://github.com/twinnydotdev/twinny.
- Can twinny run local models?
- Yes. It can connect to local runtimes such as Ollama or LM Studio, so no API key is needed for private or offline use.
- Which platforms does twinny support?
- VS Code.
Community reviews
No reviews yet.
Alternatives to twinny
All coding agents & ides →Cline
Coding Agents & IDEs
Autonomous coding agent in VS Code that uses your own API keys.
Roo Code
Coding Agents & IDEs
Customizable multi-mode AI coding agent for VS Code.
Continue
Coding Agents & IDEs
Open-source AI coding assistant for VS Code and JetBrains.
Kilo Code
Coding Agents & IDEs
Open-source VS Code and JetBrains agent combining Cline and Roo ideas.
GitHub Copilot (BYOK)
Coding Agents & IDEs
Copilot Chat in VS Code with models from your own provider keys.
Aider
Coding Agents & IDEs
AI pair programming in your terminal with git-aware edits.