The commercial licence
The packages of rule.codes are free under the AGPL 3.0. A company that will not release its own code under that licence uses them under a commercial licence instead.
This licence model is work in progress and may change.
Do you need a licence?
We ship a closed-source product that contains the packages.
Yes. The AGPL lets you distribute a product that contains the packages only if you offer the complete source of that product under the AGPL too. A commercial licence takes that condition away.
We publish an app in an app store.
Yes, unless the complete source of the app is public under the AGPL. An app that contains the packages is a product you distribute.
We run a service that people use over a network.
If the service runs a version of the packages that you changed, the AGPL asks you to offer the source of that version to the people who use the service. A commercial licence takes that condition away. If you use the packages only inside your own company and give nothing to others, the AGPL is enough.
We are a university, a foundation, a public body or another organisation that is not a company.
Research and teaching that is not commercial is free for any institution, with an account. For any other use the first three answers apply to you as they do to a company, and the price follows your size class.
These answers summarise the licences. The licence texts decide.
What a licence covers
Every package
One licence covers every package of rule.codes. There is no price per package, per seat or per product.
Not legal code
The licence covers the packages of rule.codes only. Code that states the law is not part of it: that code gets a commercial licence of its own, on the same model, sold later.
One company
A licence is for one legal entity. It also covers the companies that entity controls, and contractors while they work for them.
Paid each year
A company needs a current licence while it develops or releases products that contain the packages. The payment renews each year until you cancel. Everything you released while you were licensed stays licensed for good.
Or paid once
The buy-out is one payment of 5 times the yearly price. It covers every version released until 5 years after the purchase, and security fixes to those versions for good.
What it costs
The price follows the size of your company, by the size classes of the European Union (Commission Recommendation 2003/361/EC). An organisation that is not a company reads the limits on its staff and its yearly budget. You declare your size class when you buy.
| Size class | Your company | Each year | Once |
|---|---|---|---|
| Micro | Fewer than 10 people, and a yearly turnover or a balance sheet total of at most €2 million. | €1,000 | €5,000 |
| Small | Fewer than 50 people, and a yearly turnover or a balance sheet total of at most €10 million. | €5,000 | €25,000 |
| Medium-sized | Fewer than 250 people, and a yearly turnover of at most €50 million or a balance sheet total of at most €43 million. | €20,000 | €100,000 |
| Large | Every company above the medium-sized class. | On request | On request |
Free for the smallest
A company with less than €100,000 of yearly revenue or funding, counted together with its affiliates, gets the commercial licence for free, with an account.
Free for research and teaching
A university or another institution uses the packages for free for research and teaching that is not commercial, with an account.
Prices exclude VAT. They were set on 1 December 2026, are starting points, and may change until sales open.
How to buy
Sales are not open yet: the licence text is being drafted. Write to us and we tell you when you can buy.
For a large company, an invoice or a purchase order, write to hello@rule.codes.
The licence text
The text of the commercial licence is being drafted by the owner of the code, who is a lawyer. It will be published here in full, with a plain summary and a date, before the first licence is sold.
For your purchasing department
The seller
Coen ten Thije Boonkkamp, in the Netherlands, who holds the copyright in the packages.
Law and court
Dutch law applies, and the Dutch courts decide.
Warranty and liability
The seller warrants that he may license the packages. Everything else is provided as it is, and liability is limited to what you paid in the last year.
Invoice and purchase order
You get an invoice for every payment. For a purchase order or a bank transfer, write to hello@rule.codes.
Contributions
A contribution from outside is merged only after its author has accepted the contributor agreement, once, so that every line can be licensed to you. The author keeps the copyright and is credited. The seller may license the contribution under any terms, and promises that it also stays available under the AGPL 3.0 or another licence the Open Source Initiative approves. For a substantial contribution the author's company gets the commercial licence free for one year.
Absorbed code
Where a package absorbs code that others published under a permissive licence, its notice names the original author. On request that author gets a free licence: a person or a company in the micro class for every package, a larger company for the package that absorbed its code and the packages it depends on.
Creators
Creators who maintain packages of rule.codes share in the licence income.
Paid development
To have a package or a feature built, write to hello@rule.codes. The result is published under both licences, and what you pay counts toward your licence.
The same offer as data
For your tools and your coding agent: the offer as JSON, llms.txt.