Value per license is set by tokens. Source code pays $100 per million tokens and git history pays $40 per million. History is usually the bigger part, because a repo with years of commits holds far more history than source. Across the program, history makes up 79% of licensed tokens.
In practice, a typical repo earns about $1,000 to $1,500 per license. A light repo with a short history earns about $400 to $700, and a deep, long-lived repo with tests about $2,500 to $4,000. These are illustrative, conservative figures. Your real per-repo estimate appears in minutes once you connect Git.
Licenses are non-exclusive, so those amounts can recur. The same repo can be licensed again, and you are paid each time. For the working, the depth table and what drives the number up, read how much is my code worth. For why labs pay at all, read sell code for AI training.
Is selling source code taxable?
Usually, yes. Licensing income is normally taxed as business income, whether it is paid to you or to your company. The rules depend on where you live and how you hold the code, so ask an accountant in your jurisdiction before the first payment arrives.