I'm working on a project I want to keep open source on GitHub, but I have a licensing problem. I have searched for hours, but I haven't found a license which disallows commercial use/sale of the application. This is very important as I plan to sell it.
-
5A license that prohibits commercial use is not an open source license. – Nov 22 '14 at 12:43
-
Tip: don't sell the software, sell support. – Sean Allred Nov 22 '14 at 12:53
-
@SeanAllred That won't work for most software, mostly software targeted at enterprises. Another problem is that it creates a perverse incentive by discouraging you from improving the software so it requires less support. – CodesInChaos Nov 22 '14 at 13:09
-
@SeanAllred Case in point: how would you go about selling support for, say, video games that aren't MMO? – Damian Yerrick Nov 22 '14 at 13:48
-
@tepples I don't know – I'd call that an edge case. (Disclaimer: there are a lot of edge cases.) – Sean Allred Nov 22 '14 at 13:53
-
@CodesInChaos I never thought about that – it's a good point depending on the developer and the sheer number of people you're expecting to reach. If you're just one guy attempting to reach many end users, than your point stands pretty firmly. But if you're one guy hoping to reach a very specialized niche or (in general) you have the resources to provide support for your customers, then it's only limited by the drive of the developer(s) to improve the software for its own sake. – Sean Allred Nov 22 '14 at 13:56
-
If you want such a license, though – you may wish to check out Creative Commons. I believe it has provisions that limit sale of the work to only its originator. To be clear though – CC isn't an OSL (as made clear by Jörg's answer. You can perhaps release the source under CC-SA-BY-NC, which would prohibit sale, prohibit re-releasing under a different license (I believe), and prohibit (what amounts to) plagiarism. – Sean Allred Nov 22 '14 at 13:58
-
2Creative Commons explicitly states that their licenses should not be used for software: https://wiki.creativecommons.org/Frequently_Asked_Questions#Can_I_apply_a_Creative_Commons_license_to_software.3F – Jörg W Mittag Nov 22 '14 at 14:45
-
did you check prior questions here before asking? eg, How can I compare and contrast open source licenses? and Is there a chart for helping me decide between open-source licenses? – gnat Nov 25 '14 at 06:21
2 Answers
You won't find such a license, since the freedom to use the software commercially is an integral part of the Open Source Definition, specifically see clause (6), emphasis mine:
6. No Discrimination Against Fields of Endeavor
The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.
And the non-normative rationale in the Annotated Open Source Definition:
The major intention of this clause is to prohibit license traps that prevent open source from being used commercially. We want commercial users to join our community, not feel excluded from it.
The Free Software Definition doesn't spell it out as explicitly as the OSD does, but it is implicit in the four freedoms:
- The freedom to run the program as you wish, for any purpose (freedom 0).
- The freedom to study how the program works, and change it so it does your computing as you wish (freedom 1). Access to the source code is a precondition for this.
- The freedom to redistribute copies so you can help your neighbor (freedom 2).
- The freedom to distribute copies of your modified versions to others (freedom 3). By doing this you can give the whole community a chance to benefit from your changes. Access to the source code is a precondition for this.
It is however clarified explicitly in the commentary further down the page:
“Free software” does not mean “noncommercial”. A free program must be available for commercial use, commercial development, and commercial distribution. Commercial development of free software is no longer unusual; such free commercial software is very important. You may have paid money to get copies of free software, or you may have obtained copies at no charge. But regardless of how you got your copies, you always have the freedom to copy and change the software, even to sell copies.
The FSF even has an entire page about Selling Free Software.
So, in short, you haven't found such a license, because such a license cannot possibly exist.

- 103,514
The GNU GPL is probably the closest thing to what you are looking for.
While it expressly allows commercial use/sale the copyleft provisions are very good at deterring businesses from using it because they would have to open their source too.

- 360
-
1Or if you're worried that offering a (web)service based on your software doesn't count as distribution, there is the AGPL. – CodesInChaos Nov 22 '14 at 13:11