Skip to content

How to sell a paid edition of an open-source project

Updated December 4, 202615 min read

To sell a paid edition, pro module, or commercial bundle beside a public open-source repository, you need the right to license every file in the paid package, and each file needs one clear set of terms. This guide works through three fictional projects: Tally Sheet, a solo MIT project; Dock Queue, an Apache-2.0 repository with outside contributions and no contributor license agreement; and Print Shelf, which depends on copyleft libraries. We built the three example repositories on Nov 27, 2026, as What the worked layouts cover describes. This is practical guidance, not legal advice.

Selling code that uses open source explains what each license requires, and Third-party notices for code you sell shows how to prepare the notices file.

Before you sell open-source software as a paid edition

Every product on Kurodyne is sold under the Kurodyne Commercial License. It covers everything your package delivers except third-party material you identify, which keeps its own license, as Third-party material (Kurodyne Commercial License) states. When you submit a product, you confirm, among other things, that you own what the license covers or can license it, as the Products section of the Terms of Use states. Buyers may use the product in unlimited projects with no end date, seat limit, revenue tier, or royalty, under the Kurodyne Commercial License grant, and a README or bundled file can’t replace the license or add restrictions to it, under Seller authority and warranty (Kurodyne Commercial License).

Choose open core or dual licensing

In open core, the base stays public under its open-source license and the paid package adds modules never published under it, as in all three layouts here, so you need the rights to those modules. In dual licensing, the same code is offered under two licenses, usually copyleft in public and commercial for buyers who can’t meet copyleft’s conditions, so you need the rights to all of it.

Dual licensing stops working once someone else’s GPL code is part of the work you want to relicense without separate permission: GPL-3.0, Section 5 (opens in a new tab) “gives no permission to license the work in any other way,” though it doesn’t invalidate a permission you have “separately received.” Unshipped or independent tools in the same repository don’t by themselves block dual licensing your own work; for GPL code that is part of it, selling under the Commercial License takes each contributor’s agreement, or your own code in its place. Even for code you own, the Commercial License doesn’t say how it treats files that are also public under an open-source license, as the Tally Sheet layout explains.

In the public repository, list the authors Git records, then add the people named in Co-authored-by lines:

Shell
git shortlog -sne HEAD
git shortlog -sne --group=author --group=trailer:co-authored-by HEAD

In Dock Queue, the second command adds Contributor C, whose emailed patch the maintainer committed with a Co-authored-by line, as the git shortlog reference (opens in a new tab) describes:

     4  Example Author <author@example.com>
     1  Example Contributor A <contributor-a@example.com>
     1  Example Contributor B <contributor-b@example.com>
     1  Example Contributor C <contributor-c@example.com>

Then count the lines each person still has in every shipped tracked source file and asset. This command audits every tracked text file in the repository, prints commit authors for binary assets that git blame doesn’t attribute line by line, prints the total file count, and stops with an error if nothing matched:

Shell
(
  set -eo pipefail
  count=0
  while IFS= read -r -d '' file; do
    count=$((count + 1))
    echo "$file"
    if git grep -qI '' -- "$file" 2>/dev/null || [ ! -s "$file" ]; then
      git blame --line-porcelain -- "$file" | sed -n 's/^author //p' | sort | uniq -c
    else
      git log --format='%an' -- "$file" | sort | uniq -c
    fi
  done < <(git ls-files -z --)
  echo "Audited $count tracked files"
  [ "$count" -gt 0 ] || { echo "No tracked files matched" >&2; exit 1; }
)

To narrow the audit, add your paths after -- in git ls-files. From the root of the repository you packaged, use Python 3 to list any differences between the audit and the ZIP file. The example assumes you built the archive with git archive --format=zip --prefix=paid-package/ -o paid-package.zip HEAD. If you narrowed the audit, pass the same paths after python3 -.

Shell
python3 - <<'PY'
import os
import subprocess
import sys
from zipfile import ZipFile

paths = subprocess.check_output(["git", "ls-files", "-z", "--", *sys.argv[1:]])
audited = {"paid-package/" + os.fsdecode(path) for path in paths.split(b"\0") if path}
with ZipFile("paid-package.zip") as archive:
    shipped = {entry.filename for entry in archive.infolist() if not entry.is_dir()}
for path in sorted(audited - shipped):
    print("Missing from the archive:", repr(path))
for path in sorted(shipped - audited):
    print("Outside the audit:", repr(path))
sys.exit(audited != shipped)
PY

For the Dock Queue example, adding the JavaScript-only pathspec 'src/*.js' after -- lists only its four top-level files in src/. The original audit recorded these author counts:

src/metrics.js
  12 Example Contributor B
src/queue.js
  20 Example Author
   8 Example Contributor A
   5 Example Contributor B
src/retry.js
   3 Example Author
  11 Example Contributor A
src/store.js
  16 Example Author

The command stops at a file it can’t read, such as one you deleted but haven’t committed, so a fatal: line or a zero count means that the list is incomplete. Don’t reuse 'src/*.js' on a TypeScript or multi-folder repository without replacing the pathspec, or git ls-files can match nothing.

git blame (opens in a new tab) credits each line to the last commit that changed it, which is why three src/retry.js lines show Example Author for Contributor C’s patch. It can’t see pasted code either, so treat the output as the list of people to account for, not as proof of who owns what.

Then find the terms each outside author’s code came in under:

  • A contributor license agreement or copyright assignment puts that code with your own if it lets you license contributions on other terms or transfers the copyright to you.
  • A contribution clause in the license sets the terms. Under Apache-2.0, Section 5 (opens in a new tab), a contribution submitted for inclusion, which under Section 1 includes a patch emailed to the maintainer, is under Apache-2.0 unless the contributor explicitly said otherwise. MIT has no such clause.
  • On GitHub, whoever adds content to a repository with a license notice licenses it under the same terms, unless a separate agreement such as a contributor license agreement supersedes them, under GitHub’s Terms of Service (opens in a new tab).
  • A Signed-off-by line under the Developer Certificate of Origin (opens in a new tab), as on Contributor A’s commit, certifies the right to submit the work under the open-source license indicated in the file. It grants you nothing beyond that license.
  • With none of these, as with a patch emailed to an MIT project, the code has no recorded terms. Get the contributor’s terms in writing, or replace the code.

A contributor can license only what they own or are authorized to license, and an employer can own an employee’s work, as How is copyright ownership different? explains for the US. Authorship, protection for small changes, and ownership of work done for an employer depend on each country’s law, and this guide treats every outside change as the contributor’s.

Separate the open-source base from the paid modules

Keep three groups in separate folders: the public base, the paid modules and assets you wrote alone, and third-party material, which the notices file identifies. Keep the paid modules in a private repository. Under GitHub’s terms for contributions to a licensed repository (opens in a new tab), pushing them to the public repository licenses them on its terms unless a separate agreement applies. Have them call the base’s interface instead of copying from it, and build the package from the private repository’s tracked files, for example with git archive (opens in a new tab), within the Package limits and file rules. How to package and sell source code as an app starter covers the rest of a source package.

Package a solo MIT project with paid modules

Tally Sheet is a command-line tool with one author and an MIT license. Tally Sheet Pro adds invoice export and hourly rates.

tally-sheet/                    Public repository
  src/
    cli.js
    parse.js
    summary.js
  test/
    summary.test.js
  LICENSE                       MIT, Copyright (c) 2025 Example Author
  README.md
  package.json                  "license": "MIT"

tally-sheet-pro/                Private repository, paid package
  examples/
    time-entries.csv
  licenses/
    example-money-3.0.2/
      LICENSE.txt               MIT text for example-money
  src/
    invoice.js                  Paid module, imports tally-sheet
    rates.js                    Paid module
  templates/
    invoice.html                Paid asset
  vendor/
    example-money.mjs           Third-party component, MIT, unchanged
  README.md
  THIRD_PARTY_NOTICES.md
  package.json                  "private": true

git shortlog lists one author in both repositories, with and without Co-authored-by trailers.

What can and can’t ship:

  • src/, templates/, examples/, and README.md ship under the Commercial License. One person wrote them, and none was published under MIT.
  • vendor/example-money.mjs ships as identified third-party material under MIT, with its license text in licenses/ and a notices entry like the filled example.
  • Tally Sheet stays out, and buyers install it from the public repository.
  • The base’s LICENSE file stays out. The first build copied it to the package root, with "license": "MIT" in package.json, so the package read as MIT throughout. Under the Commercial License, a bundled file can’t replace the terms buyers accept at checkout (Seller authority and warranty (Kurodyne Commercial License)), and the license controls where another statement conflicts with it (General terms (Kurodyne Commercial License)), but it doesn’t say whether a copied MIT license still licenses your code to anyone who gets a copy. The fix, which this guide recommends, deleted the file, set "private": true so npm refuses to publish the package, and set "license": "SEE LICENSE IN README.md" (package.json reference (opens in a new tab)).

You own the base, so you could bundle it. The Commercial License covers everything a package delivers except identified third-party material, under Definitions (Kurodyne Commercial License), but doesn’t say how it treats your own files that are also public under an open-source license. This guide recommends leaving the base out, which keeps one set of terms on every file, and the notices file ends by saying so:

Markdown
## Required software that isn't in this package

- Tally Sheet 2.1.0 or later: The open-source project these modules
  extend, published under the MIT license at
  [example.com/tally-sheet](https://example.com/tally-sheet). Install
  it separately. This package contains none of its files.

Package a repository with outside contributions and no contributor agreement

Dock Queue is an Apache-2.0 job queue. Three people besides the maintainer wrote parts of it, and nobody signed an agreement. Dock Queue Pro adds a dashboard and a scheduler and bundles the base unchanged in core/.

dock-queue-pro/                 Private repository, paid package
  core/                         Unchanged copy of Dock Queue 3.2.0, Apache-2.0
    src/
      metrics.js
      queue.js
      retry.js
      store.js
    test/
      queue.test.js
    LICENSE                     Apache License 2.0
    NOTICE                      Attribution notices
    README.md
    package.json
  pro/
    dashboard.js                Paid module
    scheduler.js                Paid module
  README.md
  THIRD_PARTY_NOTICES.md
  package.json                  "private": true

The maintainer owns only their own lines and holds the contributions under Apache-2.0, which, if they meet its conditions, lets them sublicense that code (Apache-2.0, Section 2 (opens in a new tab)) and put their own terms on a derived work (Section 4). The Commercial License asks you to own or be able to license what it covers (Seller authority and warranty (Kurodyne Commercial License)) but doesn’t say whether a file that mixes your code with a contributor’s meets that. This guide recommends keeping contributor code in an identified component, as this layout does in core/.

What can and can’t ship:

  • pro/ ships under the Commercial License. The maintainer wrote it alone, and it imports the base instead of containing it. Apache-2.0’s “Derivative Works” leave out works that “remain separable from, or merely link (or bind by name) to the interfaces of” the licensed work (Apache-2.0, Section 1 (opens in a new tab)).
  • core/ ships as an identified component under Apache-2.0, with the LICENSE and NOTICE files that Apache-2.0, Section 4 (opens in a new tab) asks a redistributor to pass on. Its maintainer lines raise the bundling question from Tally Sheet, which the license doesn’t settle here either, and leaving the base out avoids it.
  • Contributor code stays in core/, and code with no recorded terms stays out until its author supplies them.

The first pro/scheduler.js broke this: it held a function copied from core/src/retry.js, which the private repository’s history credited to the maintainer. Comparing the folders found it:

Shell
grep -Fxn -f <(grep -hE '.{30,}' core/src/*.js) pro/*.js
pro/scheduler.js:2:const DEFAULTS = { baseMs: 500, factor: 2, maxAttempts: 5, maxMs: 60_000 };
pro/scheduler.js:4:export function backoffDelay(attempts, policy = {}) {
pro/scheduler.js:5:  const { baseMs, factor, maxMs } = { ...DEFAULTS, ...policy };
pro/scheduler.js:6:  return Math.min(baseMs * factor ** attempts, maxMs);

The command runs in Bash or Zsh and prints each paid line that exactly matches a base line of at least 30 characters, so it misses copied code that was then edited. These four lines come from Contributor A’s commit and Contributor C’s patch. After the fix imported backoffDelay from core/src/retry.js, the command printed nothing. The notices file has one entry for the whole base:

Markdown
## Dock Queue

- Version: 3.2.0
- Source: [Dock Queue 3.2.0](https://example.com/dock-queue/v3.2.0)
- Included folder: `core/`
- Use: The open-source queue that the modules in `pro/` extend
- License: Apache-2.0
- Copyright holders: Example Author and Dock Queue contributors
- Changes: None. `core/` is an unchanged copy of the 3.2.0 release.
- Full license: [Bundled license](core/LICENSE)
- Attribution notices: [Bundled NOTICE file](core/NOTICE)

Package a project that depends on copyleft libraries

Print Shelf is an MIT label printing tool with one author. It uses example-pdfcore, under LGPL-3.0-only, and release 1.4.0 also used example-barcode, under GPL-3.0-only. Print Shelf Pro adds batch printing.

print-shelf/                    Public repository, MIT
  src/
    barcode.js                  Release 1.4.0 imported example-barcode
    index.js
    labels.js
    pdf.js                      Imports example-pdfcore
  LICENSE
  README.md
  package.json

print-shelf-pro/                Private repository, paid package
  examples/
    labels.csv
  licenses/
    example-pdfcore-4.2.0/
      COPYING                   GPL-3.0 text
      COPYING.LESSER            LGPL-3.0 text
  src/
    batch.js                    Paid module, imports print-shelf and example-pdfcore
    sheets.js                   Paid module
  README.md
  THIRD_PARTY_NOTICES.md
  package.json                  "private": true

Check how the GPL library is combined

  • Library code in your package, vendored or inlined by a build, is GPL code you distribute, with the license text, notices, and source that GPL-3.0, Sections 4 to 6 (opens in a new tab) ask for.
  • Paid code that imports the library, or a base that imports it, is the hard case. If the two form one work based on the library, the Commercial License can’t cover your modules, as Why can copyleft conflict with the Kurodyne Commercial License? explains. The Free Software Foundation (FSF), which publishes the GPL, reads static and dynamic linking alike as making one combined work, in its GPL FAQ (opens in a new tab). Whether a court in your country reads an import that way is a question of copyright law this guide can’t settle.
  • A library run as a separate program, started as a command, can fall outside. GPL-3.0, Section 5 (opens in a new tab) doesn’t extend the GPL to “separate and independent works” that aren’t by their nature extensions of it and aren’t combined with it “such as to form a larger program,” a line the GPL FAQ on aggregation (opens in a new tab) calls “a legal question, which ultimately judges will decide.”

With Print Shelf 1.4.0, the paid modules would be in the second case: src/batch.js imports the base, whose src/barcode.js imported example-barcode. Release 2.0.0 replaced that library with example-code128, under MIT, which is why Print Shelf Pro requires 2.0.0 or later.

Check how the LGPL library is linked

LGPL-3.0, Section 4 (opens in a new tab) lets you distribute your code combined with the library under terms of your choice that don’t restrict changing the library or reverse engineering to debug such changes, if you meet its conditions, including these:

  • Your code uses the library only through its interface, as src/batch.js does. A library you changed or copied from stays under the LGPL.
  • Buyers can run your code with a changed library. Print Shelf Pro loads the copy buyers install, by name, as Section 4(d)(1) describes. If you bundle the library or a build inlines it, read 4(d)(0): the library’s source, and your code in a form, and on terms, that let buyers recombine it with a changed library.
  • The package gives prominent notice that it uses the library and that the LGPL covers the library and its use, and carries copies of the GPL and the LGPL, under 4(a) and 4(b).
  • Your terms leave those rights alone. The Commercial License lets buyers modify what they bought, doesn’t mention reverse engineering in its restrictions, and leaves the library under the LGPL.

The notices file gives the notice and says how to use a changed library:

Markdown
## example-pdfcore (not included)

- Version: 4.2.0 or a later 4.x release
- Source: [example-pdfcore](https://example.com/example-pdfcore)
- License: LGPL-3.0-only
- Use: `src/batch.js` imports the installed package by name to merge
  label pages. This package contains no example-pdfcore code.

This product uses example-pdfcore. The library and its use are covered
by the GNU Lesser General Public License, version 3. Copies of that
license and of the GNU General Public License, version 3, are in
`licenses/example-pdfcore-4.2.0/COPYING.LESSER` and
`licenses/example-pdfcore-4.2.0/COPYING`.

To use a modified example-pdfcore, install your version in place of the
published one. Print Shelf Pro loads whichever copy is installed.

What can and can’t ship:

  • src/, examples/, and README.md ship under the Commercial License once no GPL code runs with them and each LGPL condition is met, with the two license texts in licenses/.
  • example-pdfcore and Print Shelf stay out and are listed as requirements.
  • The 1.4.0 arrangement can’t ship under the Commercial License on the FSF’s reading.

Prepare the notices file and check it against the Commercial License

Write the notices file as Third-party notices for code you sell describes. Then confirm that every file is yours alone or identified there, that no third-party license asks for rights over your own code that the Commercial License restricts, as Why can copyleft conflict with the Kurodyne Commercial License? explains, and that no file, such as a copied license file or a manifest’s license field, states other terms for your own code.

Decide what stays public and what ships in the paid edition

  • Plan on code that’s already public staying available on its public terms. Apache-2.0 calls its copyright license irrevocable, GPL-3.0 calls its rights irrevocable while its conditions are met (Section 2 in each), and the MIT text (opens in a new tab) has no clause that ends its permission.
  • Keep contributor code, code that runs with a GPL library, and the interfaces your paid modules call in the public base, and move a feature to the paid package only if you wrote it alone.
  • Take future contributions under an agreement that covers licensing on other terms, or keep contributor code out of paid modules.
  • An update can’t remove or narrow what earlier buyers hold, under Check what an update can change, and a significantly new edition is a new product, under Publish a new product instead.

Document installation and license boundaries in the README and listing

Anyone can read the README on the product page before buying, so state the boundary there. List each project and library buyers install, with versions and full https:// links, and give the steps to install the paid modules on the base, tested from the ZIP file as the README template describes. In the license section, keep the template’s first paragraph and name each folder and its terms, as Dock Queue Pro’s does:

Markdown
## License and third-party notices

The [Kurodyne Commercial License](https://kurodyne.com/license)
covers everything this product delivers except identified third-party
material, which remains subject to its own license terms.

- `pro/`: The paid modules, which the Kurodyne Commercial License
  covers.
- `core/`: An unchanged copy of Dock Queue 3.2.0, an open-source
  project under the Apache License 2.0. It stays under that license,
  and the same code is public at https://example.com/dock-queue.
- `THIRD_PARTY_NOTICES.md`: Identifies `core/` and the license and
  notice files that come with it.

In the Product Editor’s Details section, say in Description what the paid package adds and that the base is free and public. Under Public requirements, add each project and library buyers install as a Software entry, and use Other requirements for third-party obligations, such as example-pdfcore’s LGPL terms (Describe buyer obligations before purchase). Don’t call the paid package open source or MIT-licensed, or state a limit the Commercial License doesn’t have, such as one site per purchase. Using purchased products for commercial and client work answers what buyers may do with paid modules.

What the worked layouts cover

We built the projects on Nov 27, 2026, on macOS 27.2.1 with Git 2.54.0, and exported each paid package with git archive. The layout checks ran in Bash 3.2 and Zsh 5.9. We checked the tracked-file audit and archive comparison separately on Dec 4, 2026. No paid module ran against an installed base or library, since none is a real package: Node.js 24 checked each file’s syntax and ran Dock Queue Pro’s import from core/ and the bundled base test. Kurodyne’s package check, the one behind the Product Editor’s Package checklist, found each README and recognized every license and notice file by name, which doesn’t establish license compliance.

License statements come from the texts as published that day by the Open Source Initiative (MIT), the Apache Software Foundation (Apache-2.0), and the FSF (GPL-3.0 and LGPL-3.0), and the FSF’s reading, from its FAQ, is marked as such. The guide doesn’t cover real projects’ code, other licenses or versions, patents, trademarks, contributor agreements’ wording, or how a court in any country treats an import of a copyleft library. Following it doesn’t rule out a claim from a contributor, an employer, or a library’s author.

Publish the paid edition

When every file in the package is either yours to license or identified with its own terms, build the ZIP file and follow Publish your first product to create the listing and submit it for review.

Was this helpful?

Need more help? or contact Kurodyne support.