twinny
Open-source AI coding assistant for VS Code. Coding agent, code completion, chat, edits and reviews with local or hosted models. Your models, your infrastructur
What is twinny?
Open-source AI coding assistant for VS Code. Coding agent, code completion, chat, edits and reviews with local or hosted models. Your models, your infrastructure.
Overview of twinny
What it is
twinny is an open-source AI coding assistant for Visual Studio Code. It provides code completion, chat, inline edits, and code review using local or hosted models. The software is designed to operate within your own network, with no telemetry and no sign-in required. It is licensed under MIT.
Key features
- Code completion: fill-in-the-middle suggestions streamed as ghost text, using context from open files, imports, and recent edits.
- Inline edit: describe a change with Ctrl+I and review it as a diff; accept or reject per hunk.
- Chat with code: attach files, symbols, problems, git diff, terminal, or workspace search results using @.
- Agent mode (experimental): the model can read, search, edit files, and run commands in the workspace, with each step shown.
- Workspace index: hybrid keyword and vector search over the workspace, updated on save.
- Code review of the working tree, a branch, or a GitHub pull request, and commit messages from the staged diff.
- Terminal: write a command from a description, or get a fix when a command fails.
Use cases
twinny is suitable for individual developers who want AI assistance with code completion, chat, and review while keeping models and data on their own infrastructure. It also supports teams: a gateway server can serve multiple developers, with per-developer keys, usage tracking, and policy controls. The software can be used with local model servers (Ollama, LM Studio, llama.cpp) or hosted APIs (OpenAI, Anthropic, Mistral, DeepSeek, etc.).
Getting started
- Install twinny from the VS Code Marketplace (VS Code 1.93 or newer).2. Run a model server (e.g., Ollama, LM Studio, llama.cpp).3. Type to see completions as ghost text; use the sidebar for chat.
License and pricing
twinny is MIT licensed. For teams, the gateway is free for up to five developers. Additional seats are $15 per developer per month. A personal license is $29 once. A 30-day trial with all features is available with no credit card required. Details are at twinny.dev.
Based on the project's public README and repository metadata.