10

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

4 Answers 4

5

codeium.vim seems promising:

codeium.vim

Free, ultrafast Copilot alternative for Vim and Neovim

Codeium autocompletes your code with AI in all major IDEs. We launched this implementation of the Codeium plugin for Vim and Neovim to bring this modern coding superpower to more developers. Check out our playground if you want to quickly try out Codeium online.

Example

1

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.

New contributor
jobukkit is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
8
  • 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
    2 days ago
  • @wizzwizz4 Their site contains a list of all repositories used in the dataset, so you can link to that list as attribution.
    – jobukkit
    2 days ago
  • 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
    2 days ago
  • 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
    yesterday
  • 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
    yesterday
0

https://www.continue.dev/ Can be used with self hosted LLMs

New contributor
Nikolay Hüttenberend is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
-1

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.

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.