codetocoin

Guides / 6 min read

Software licenses, explained for people who want to get paid

MIT, GPL, AGPL, source-available, proprietary: what each license means for selling your code — and your dependencies.

This guide explains common patterns. It is not legal advice: have a lawyer review your terms before you sell.

Your license is part of your business model

The license you choose decides who may use, change and resell your code. Choosing none is also a choice: without a license, nobody has the right to use your code at all, which blocks buyers and contributors alike.

Permissive: MIT, Apache 2.0, BSD

Anyone can use, modify and sell your code, including competitors. You monetise the things around the code: hosting, support, a proprietary edition, speed of updates and brand. Apache 2.0 adds an explicit patent grant, which companies like.

Copyleft: GPL, AGPL

Derivative works must be released under the same license. The AGPL extends this to software offered over a network: if someone runs a modified version as a service, they must publish the source. Many companies avoid AGPL code, which is exactly why "AGPL + commercial license" is a proven dual-licensing model. It only works if you own all the copyright.

Source-available: BSL, Elastic License, SSPL

The code is visible, but production use or offering it as a service is restricted. These licenses protect commercial interests but are not "open source" by the OSI definition, and some communities will not adopt them.

Proprietary / commercial

You keep all rights and grant buyers a license under your terms (an EULA). Standard for paid templates, desktop apps and SaaS. Spell out seats, updates, redistribution and support.

Check your dependencies too

Your product's license must be compatible with the licenses of what you depend on. A proprietary product that bundles GPL code is a problem; MIT and Apache dependencies are generally fine with attribution. Run a license checker on your dependency tree before launch.

Quick decision path

  • Selling hosted access and never distributing code? Most licenses work; avoid building on others' AGPL code unless you'll publish yours.
  • Want adoption first, revenue later? Permissive + paid hosting or paid features.
  • Want companies to pay for the code itself? Copyleft + commercial dual license, or proprietary.

Check the licenses in your repository.

A free scan finds your license, explains what it allows and whether it suits the way you want to sell. See a real report.

Or upload a zip after signing up. Your code is read, never run, never kept.