twinny
Open-source AI coding assistant for VS Code. Code completion, chat, edits and reviews with local or hosted models. Your models, your infrastructure.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Note: When this entry was written, we were unable to fetch the content of the official website twinny.dev. The information below is compiled from what is known about the project. For specific features and configuration, please refer to the latest documentation on the official website and the GitHub repository.
Introduction
twinny is a free, open-source AI coding assistant provided as a Visual Studio Code extension. Its defining feature is that it can connect to locally running large language models, so your code doesn't have to be sent to third-party cloud services. Developers who care about privacy and want to control costs often use it as an alternative to GitHub Copilot.
Key Features
- Inline code completion: Uses FIM (fill-in-the-middle) to offer real-time completion suggestions based on the context before and after the cursor.
- AI chat: Discuss code with the model in the sidebar. You can ask it to explain or refactor code, generate tests, or answer other programming questions.
- Multiple model backends: Supports local inference tools such as Ollama, llama.cpp and LM Studio, and can also connect to services compatible with the OpenAI API.
- Separate configuration for chat and completion: Each feature can use its own model. For example, you can use a small model for completion to keep it fast and a larger model for chat to get better quality.
- Workspace context: Project file contents can be used as context, so answers fit your current codebase better.
Target Users and Use Cases
- Individual developers or teams with code privacy requirements who don't want to upload source code to the cloud
- Users who want free AI coding assistance as a replacement for paid Copilot services
- Developers who have already set up a local LLM environment such as Ollama and want to connect it to their editor
- Development in offline or intranet environments
Core Strengths
- Free and open source: Released under the MIT license, with no subscription fees.
- Controllable privacy: When used with local models, your code is processed only on your own machine.
- Flexible: You can freely choose and switch between models and inference backends.
Installation and Usage
- Search for "twinny" in the VS Code extension marketplace (or Open VSX) and install it.
- Install and start a local model inference service, such as Ollama, then pull a model suited to code (for example, a code model that supports FIM).
- In twinny's settings, configure the provider, address and model name for completion and chat.
- Open a code file to get completion suggestions, or open the chat panel in the sidebar.
Technical Requirements
- Visual Studio Code, or an editor compatible with VS Code extensions
- When using local models, you need enough RAM or VRAM to run the chosen model; completion response speed is directly tied to hardware performance
Worth Noting
The quality of completion and chat depends heavily on the model you choose. Different models use different FIM formats, so you need to select the matching template in the settings.
Discover more
Agenta
Agenta is a workspace where you and your team build agents and automations.
AnythingLLM
Stop renting your intelligence. Own it with AnythingLLM. Everything you need for a powerful local-first agent experience
AutoGPT
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Backlog.md
Backlog.md - A tool for managing project collaboration between humans and AI Agents in a git ecosystem
Codeman
Self-hosted mission control for AI coding agents: run Claude Code, OpenCode, Pi, Codex, and Antigravity & Gemini CLI 24/7, from any device, watch every subagent live
Context7
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors