HACKER Q&A
📣 ashton314

Looking for an open license, but not for AI model training


Hello HN!

I, like probably most of you, put a lot of code up on GitHub. With the advent of copilot, I have been growing a little bit uneasy about the software that I write being used for AI training purposes. I generally like releasing my code under an open license, but I would rather the consumer of my software be humans rather than an algorithm.

Is there a variant of the GPL or the MIT license that prohibits using code as part of a big corporate training set?

With that said, I am planning on moving most of my code over to SourceHut, as I like the overall philosophy a lot.


  👤 andreareina Accepted Answer ✓
Take a look at https://en.m.wikipedia.org/wiki/Source-available_software section Non-free licenses. I'd also take a look at the BSL. It requires the code be eventually open source but you can take inspiration. Also take a look at License Zero: https://licensezero.com/

N.B. No matter the license you use, you give GitHub a separate license to use your code.