licensing open-source-software
Is there a license that lets only the company the rights to earn money with the code, but does not forbid others to use it?
<p>Is there a License that <strong>permits only the company</strong> that published the code to earn money using it, by selling products or services that include that code?.</p>
<p>The license should let in addition the ability for everybody to change the code and use it as they see fit, and be copyleft.</p>

<p><a href="https://creativecommons.org/licenses/by-nc/2.0/" rel="nofollow noreferrer">CC BY-NC</a> generally meets that requirement.  It requires attribution and prohibits commercial use by licensees, but otherwise allows most uses.  As with most licenses, use of the work by the copyright holder (by default, the author) is not restricted.</p>
<p>It does not entirely prohibit <em>any</em> use that makes money, but it prohibits uses that are &quot;primarily intended for or directed toward commercial advantage or monetary compensation.&quot;</p>
<p>Creative Commons has an <a href="https://creativecommons.org/faq/#does-my-use-violate-the-noncommercial-clause-of-the-licenses" rel="nofollow noreferrer">FAQ</a> that discusses what is meant by &quot;commercial use.&quot;</p>
<p>Also note that to allow this, the project could not, for example, accept contributions via GitHub or other means that are licensed under CC BY-NC, as that would mean that the project owner no longer has the right to license the work outside those terms.  For this, you would need to devise a contributor license agreement granting those rights and get contributors to sign it.</p>
