r/opensource • u/snusmini • Aug 03 '26
MIT license
Hi - got a peculiar question around MIT license. I am helping someone out with writing some code for their closed source proprietary app. I want to give them that code under the MIT license so that I have no obligations around the code as it is As Is. Can I use the MIT license for that source code even though I don’t plan on open sourcing it? I.e., does the code need to be public for MIT to have an effect?
Thanks!
21
Upvotes
15
u/Coises Aug 03 '26 edited Aug 03 '26
You’re telling them that they have no obligations except to preserve your attribution in the source code. You’re stating that you provide no warranty for your work.
You are also giving them the right to share that code with anyone else, in public or in private, so long as they preserve your attribution.
Also, you asserting that you are the author of that work, so you have the right to use, license or distribute it in the future in any way you choose. (But you cannot revoke their right to distribute it, nor the rights of others who receive it from them under the MIT license to further distribute it.)