Free and private AI extension for Visual Studio Code.
Visit the quick start guide to get started.
Get AI-based suggestions in real time. Let Twinny autocomplete your code as you type.
Discuss your code via the sidebar: get function explanations, generate tests, request refactoring, and more.
![](https://private-user-images.githubusercontent.com/5537428/323951184-a5c5bb34-60f6-41f6-8226-c62cf4c17c1d.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMxOTU1MzksIm5iZiI6MTcyMzE5NTIzOSwicGF0aCI6Ii81NTM3NDI4LzMyMzk1MTE4NC1hNWM1YmIzNC02MGY2LTQxZjYtODIyNi1jNjJjZjRjMTdjMWQuZ2lmP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MDlUMDkyMDM5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjA1MjE5NDM5OGZhNTg1ODE4ZDg2NTJmZjgzNzAzOTZkMTE2YjczYmMwZjZkMTFjODVkZDEzOGRiZTJhYTIyYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.wwOqfqaRtZqzI2mxaXKrkFG32dlche3c76QZzfQoUPA)
- Operates online or offline
- Highly customizable API endpoints for FIM and chat
- Chat conversations are preserved
- Conforms to the OpenAI API standard
- Supports single or multiline fill-in-middle completions
- Customizable prompt templates
- Generate git commit messages from staged changes
- Easy installation via the Visual Studio Code extensions marketplace
- Customizable settings for API provider, model name, port number, and path
- Compatible with Ollama, llama.cpp, oobabooga, and LM Studio APIs
- Accepts code solutions directly in the editor
- Creates new documents from code blocks
- Copies generated code solution blocks
Visit the GitHub issues page for known problems and troubleshooting.
Interested in contributing? Reach out on Twitter, describe your changes in an issue, and submit a PR when ready. Twinny is open-source under the MIT license. See the LICENSE for more details.
Thanks for using Twinny!
This project is and will always be free and open source. If you find it helpful, please consider showing your appreciation with a small donation <3
Bitcoin: 1PVavNkMmBmUz8nRYdnVXiTgXrAyaxfehj
Twinny is actively developed and provided "as is". Functionality may vary between updates.