Is there a FOSS (free, open source) alternative to GitHub Copilot, preferably one that can be integrated into Vim?

4 Answers 4


I think Tabby, "Opensource, self-hosted AI coding assistant", is what you're looking for:

enter image description here

Easy to configure: Controls deployment with simple TOML config

Open source: Audit the entire Tabby codebase for security or compliance on Github. Or host your own deployment.

Powered by Rust: Brings the best-in-class speed and safety of Rust, to make your coding experience as quick and reliable as possible.

It has integrations with the major editors and IDEs, including Vim/NeoVim.

The project was started by ex-Google engineers, is open source, written in Rust, and is compatible with several models with different licenses. You can learn more in their documentation.

You can find the source here: https://github.com/TabbyML/tabby.

  • This looks good and open: 17.7k ★s on GitHub (compared to 3.5k ★s for codium.vim).
    – Geremia
    Commented May 22 at 21:27

Tabnine has a plugin for NeoVim, and unlike Microsoft Copilot, it doesn't give you copyright-infringing code. Just make sure to link to the dataset at https://trust.tabnine.com in the documentation of your software in order to satisfy the licenses of the open source software it was trained on.

  • 3
    While that's what they're advertising, it's not correct. Per their website: “The licenses are as follows: MIT, MIT-0, Apache-2.0, BSD-2-Clause, BSD-3-Clause, Unlicense, CC0-1.0, CC-BY-3.0, CC-BY-4.0, RSA-MD, 0BSD, WTFPL, ISC.” Many of these (e.g. MIT, Apache, BSD, CC BY) require attribution. If they'd only used CC0, 0BSD and WTFPL, it'd be fine, but they haven't.
    – wizzwizz4
    Commented May 16 at 16:16
  • @wizzwizz4 Their site contains a list of all repositories used in the dataset, so you can link to that list as attribution.
    – jobukkit
    Commented May 16 at 17:41
  • 4
    Not according to the text of the MIT license. “The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” (emphasis mine) The other licenses are similar.
    – wizzwizz4
    Commented May 16 at 17:51
  • 2
    Legal questions aside, I doubt a reference like "maybe this project contains some snippets originating somewhere, in some form, from <insanely long list of projects>" maintains the spirit of OSS licensing. As much as companies want to wiggle around it, we are going to need new licensing that allows to explicitly opt in/out of ML training.
    – xLeitix
    Commented May 17 at 11:29
  • 2
    @xLeitix Have you looked at the transitive dependencies of a project of any appreciable size recently? We're well into "some snippets from <insanely long list of projects>" land manually.
    – Caleth
    Commented May 17 at 14:49

https://www.continue.dev/ for VSCode and JetBrains

Can be used with self hosted LLMs with https://ollama.com/

(As for the preferable part) I don't think it has a vim integration as of this time.


Perhaps codegpt is worth a look.
It's not open source but there is a free tier. It is not for Vim either.

They have documented via Screenshot (and Video) how to configure VSCode to build a connection to one of several common "AI Providers". Then you choose one from that list of providers (which you need to be registered with). Then you can control a bit better where to send your prompts and your code snippets to.

I found CodeGPT/VSCode/PerplexityAI integration relatively simple to set up. Maybe this can be used as an intermediate learning-step, when going directly to self-hosted LLMs is too complicated.

  • This answer is not relevant at all - they explicitly want something open-source that works with vim. Commented May 19 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.