twinny is an open-source AI coding assistant for Visual Studio Code that emphasizes "your models, your infrastructure": all features run against model servers you control yourself, with no telemetry, no account required, and an MIT license.
Purpose and positioning It embeds AI coding capabilities into VS Code, making it suitable for developers and teams who want to use local or self-hosted models and care about keeping code and prompt data from leaving their network.
Key capabilities
- Code completion: streams fill-in-the-middle suggestions as ghost text while you type, with context drawn from open files, imports, the language server, and recent edits, tuned for 7B models.
- Inline editing: press Ctrl+I to describe a change, review it as a diff in the editor, and accept or reject it block by block; you can also apply fixes to diagnostic issues.
- Code chat: type @ to attach files, symbols, the Problems panel, git diff, the terminal, or workspace index search results; conversations are preserved.
- Agent mode (experimental): enabled via a chat toggle or Shift+Tab; the model can read, search, and edit files and run commands, with each step shown in the reply; commands ask for confirmation first by default.
- Workspace indexing: performs hybrid keyword and vector search over the workspace, reranks results before they enter the prompt, updates on save, shows sources below replies, and isolates the index per workspace.
- Code review and commit messages: review the workspace, branch comparisons, or GitHub PRs, and generate commit messages from the staged diff.
- Terminal: generate commands from a description and show them before running; when a command fails, locate the file and line and suggest a fix.
- Prompt templates are editable, and all features are VS Code commands with rebindable shortcuts.
How to use Install from the VS Code Marketplace (requires VS Code 1.93 or newer), run a model server (Ollama, LM Studio, and llama.cpp are discovered on common ports at first launch), and twinny will ask which models to use. For team scenarios, run npx twinny-server quickstart to set up a gateway; an admin page lets you set default models, send invitation links, and view per-person, per-model usage.
Use cases and limitations Suitable for individual local development, team collaboration with self-hosted models, and organizations that need a unified gateway, key management, usage statistics, and policy control. Agent mode is marked experimental; team plugins, policies, recording, and similar features arelicense features. The free tier supports five developers, with per-seat pricing thereafter; an individual one-time license is $29 and includes a 30-day trial. Refer to the official page for specific pricing and features. The project has been maintained by a single person since 2023 and is provided as-is.