twinny

twinny

The most no-nonsense, locally or API-hosted AI code completion plugin for Visual Studio Code - like GitHub Copilot but completely free and 100% private.

Stars: 2272

Visit
 screenshot

Twinny is a free and open-source AI code completion plugin for Visual Studio Code and compatible editors. It integrates with various tools and frameworks, including Ollama, llama.cpp, oobabooga/text-generation-webui, LM Studio, LiteLLM, and Open WebUI. Twinny offers features such as fill-in-the-middle code completion, chat with AI about your code, customizable API endpoints, and support for single or multiline fill-in-middle completions. It is easy to install via the Visual Studio Code extensions marketplace and provides a range of customization options. Twinny supports both online and offline operation and conforms to the OpenAI API standard.

README:

twinny

Free and private AI extension for Visual Studio Code.

🚀 Getting Started

Visit the quick start guide to get started.

Main Features

Fill in the Middle Code Completion

Get AI-based suggestions in real time. Let Twinny autocomplete your code as you type.

Fill in the Middle Example

Chat with AI About Your Code

Discuss your code via the sidebar: get function explanations, generate tests, request refactoring, and more.

Additional Features

  • 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

Known Issues

Visit the GitHub issues page for known problems and troubleshooting.

Contributing

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.

Support Twinny

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

Disclaimer

Twinny is actively developed and provided "as is". Functionality may vary between updates.

Star History

Star History Chart

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for twinny

Similar Open Source Tools

For similar tasks

For similar jobs