Open source projects have the easiest top of funnel in software and the hardest bottom of funnel. The repo is free, the docs are public, the install command is one line, and a stranger in another timezone can adopt your product without talking to anyone. Then they fork it, run it on their own box, and never touch your checkout. The traffic is enormous. The revenue attribution is a rumor.
That mismatch is why open source affiliate programs feel either obviously right or obviously impossible. The optimists are looking at docs traffic. The pessimists have tried to attribute a Docker pull.
An affiliate program can work very well here, but only if you are honest about what you sell. You are not paying commission on adoption. You are paying commission on revenue, and that revenue comes from a hosted product, a commercial license or support.

TL;DR
- Open source projects earn from hosted cloud, commercial licenses, support and marketplaces. Affiliate commission applies to that paid product, never to stars, clones or downloads.
- Your README and docs are the highest intent landing pages you own, and they are where most affiliate traffic starts. A plain link with a
?ref=parameter that survives the click is worth more than any dashboard feature here. - Self-hosted installs, forks and mirrors cannot be attributed with a browser cookie, so write the rules down before an affiliate assumes otherwise.
- Contributors, consultants, integrators and course authors are the four affiliate types that actually convert for developer products. Recruit from your issue tracker, not from a list of generic influencers.
- Flat tool pricing matters more than usual here, because a percentage-of-commission model eats into programs whose margins are already thin.
Why open source projects sell a different product
The repo and the business are two different objects, and affiliates must be pointed at the second one. A hosted cloud that upgrades from a free tier. A commercial license for teams that cannot accept copyleft terms. A support contract. A managed deployment. A marketplace listing that bills on your behalf.
Each has a checkout, and a checkout is the only place where attribution becomes money. That frame keeps the program sane: the affiliate is not paid to get someone to git clone, but to get someone to pay for the thing that funds the repo.
It also decides your commission base. Hosted subscriptions renew, so a recurring commission on a monthly or annual plan is generous without being reckless. One-off commercial licenses behave like classic one-time commissions, and they usually carry a higher percentage because there is no renewal to look forward to. If your paid product is metered, the commission base has to be the invoice amount, not the plan list price, or you will overpay on the quiet accounts and underpay on the busy ones. The mechanics of that are covered in commissions on usage based pricing, and the gross versus net question is worth settling before you write a single line of terms.
The free tier is the trap. Most open source companies have one and convert a small slice of it. A commission on a free signup is money for nothing. Pay on the first invoice, not the first account.
The README is your highest intent landing page
Someone who reads your README to the installation section is further into a buying decision than most people who land on a pricing page. They have decided the problem exists and are deciding whether your project is the fix.
That is where affiliate traffic belongs. A contributor writes "I use this for X, here is the link" and the link points at your docs or hosted product page with a referral parameter. From there it is a normal funnel: parameter read, first party cookie written, checkout session created with the code in metadata, webhook writing the conversion.
Two things must be true. The link lands on your own domain, because the cookie is first party and a link to the GitHub repo sets nothing. And the checkout forwards the cookie into provider metadata, because GitHub, npm and Docker Hub will not.
The second point is where developer programs quietly lose money. The cookie exists, the visitor goes to the repo, returns a week later by another path and buys. Whether the affiliate gets credit depends on your cookie window and on whether the return visit carries the parameter. Sled's default is 90 days, configurable per program, which covers the research phase typical of a developer purchase. Cookie windows and attribution models covers the tradeoffs of shortening it.

What actually gets attributed, and what does not
This is the honest version, worth showing every affiliate you approve so nobody is surprised in month two.
| Surface | Tracked by a cookie | Why |
|---|---|---|
| README link to your site | Yes, if the parameter survives | Click lands on your domain, script sets ta_ref |
| Docs link to pricing | Yes | Same domain, same cookie |
| Blog post or tutorial link | Yes | Marketing site is on your domain |
| Package registry page (npm, PyPI, crates) | No | Registry page is not yours, no script runs |
docker pull counter |
No | No browser, no session, no checkout |
| Copied URL pasted into Slack or Discord | Sometimes | Blank referrer, but the parameter travels if pasted whole |
The pattern: anything inside a browser on your domain is measurable, anything on someone else's infrastructure is not. Welcome affiliates who write registry tutorials, since those posts do send traffic, but the measurable part is the click that reaches your site.
The fix is to make your docs the referral surface. Give affiliates links to a page on your domain instead of the repo, and put the repo link inside that page. The cookie is written before the reader leaves.
Self-hosted installs, forks and mirrors
A self-hosted install is a legitimate customer and a terrible attribution target. It happens on a machine you do not control, the purchase might be a support contract signed weeks later, and no browser session connects the two.
Forks are worse. A fork can remove your branding, rename the binary, and publish its own docs. Nothing in your tracking survives that, and nothing should. You are not paying for the fork's adoption, and the fork is not your affiliate.
Write the rule down in the program terms instead of leaving it to a support ticket:
- Commission applies to purchases that flow through your own checkout with a referral code attached.
- Self-hosted deployments qualify only if the purchase was made through your checkout, which usually means a commercial license or support plan.
- A fork, mirror or republished package is not a referral, regardless of how much traffic it sends.
- A contributor who builds an integration on your hosted API is a referral if their users sign up through their link, and only then.
A soft edge worth naming: contributors who do a lot of unpaid work often assume the program exists to pay them back. It does not, and saying so early is kinder than paying one person and not the next. Fund contributors through sponsorships or bounties, described as unrelated to commissions. Mixing the two turns a commercial program into a fairness argument you will lose.
Who your affiliates actually are
Recruiting for a developer product is not recruiting for a newsletter tool. The audience is narrow, the content technical, and the person with reach is often the one who filed the bug report that saved your release.
| Affiliate type | What they publish | Why it converts | Main risk |
|---|---|---|---|
| Core contributor | Release notes, deep dives on internals | Credibility with the existing user base | Small reach, may resent being asked |
| Consultant or integrator | Case studies, migration guides | Buyer already has budget | Wants a reseller margin, not a referral fee |
| Course author | Paid courses and workshops | Teaches the problem, then the tool | Course may go stale and keep linking anyway |
| Newsletter author | Weekly dev tool roundups | Recurring audience in one niche | Placement fees creep into the deal |
| Agency | Implementation services | Sells outcomes, not software | Attribution fights when they also do the work |
The consultant and agency rows are the ones people get wrong. Someone who implements your product for clients is a reseller, not an affiliate, and the structure that fits is a margin on the deal rather than a cut of a subscription. The developer tools recruiting guide goes deeper; the short version is that you should know which bucket each applicant belongs to before approving them.
Recruit where the work happens: people who wrote integration guides, answered in your discussions tab, or published a migration post unasked. Cold messaging a generic tech influencer with no code in their feed wastes a good mail merge.
Pricing the commission on a hosted product
The default Sled program is 30 percent, reasonable for a recurring hosted subscription and a bit low for a one-off commercial license. What matters more is that the base is defined in one sentence and never drifts.
Pick one of these and write it into the terms:
| Base | What it means | Good for |
|---|---|---|
| First invoice only | One payment per customer | One-off licenses, lifetime deals |
| Every invoice for 12 months | Capped recurring | Predictable cost, still attractive |
| Every invoice, indefinitely | Lifetime recurring | Hosted plans with strong retention |
| Net revenue after fees | Subtotal minus provider fee and tax | Thin margin products |
Open source businesses usually live on the third row or the fourth, and the fourth is where arguments start. If your provider fee is around 4 percent and you pay 30 percent on gross, your effective payout is closer to 31 percent of what you receive. Fine if planned, confusing if not. Decide before the first affiliate asks.
Refunds need a mechanical rule. Sled marks the original conversion as refunded rather than deleting it, and when a refund webhook beats the order event, a tombstone makes the later conversion land already refunded, so a refunded sale never pays out. That matters more for open source than most: commercial license buyers are the ones most likely to change their mind mid procurement.
Sponsorships, donations and bounties are not commissions
GitHub Sponsors, Open Collective, Patreon and one-time donations are not affiliate revenue and should not be a commission base or a substitute for a program. Mixing them creates two problems: affiliates ask why a sponsor gets paid for a link, and sponsors ask why they are not getting a cut of the licenses their logo sold.
Keep the streams separate in the terms and in the dashboard. A company that sponsors you and also refers customers gets commission on those referrals and nothing on the sponsorship. A bounty for a feature is unrelated to any referral that contributor later generates.
The one place they touch is the program page, where sponsorship tiers next to affiliate signup are just confusing. Keep the page about earning from referrals.
License and trademark rules your affiliates need
Affiliate marketing does not transfer rights. A permissive license such as MIT or Apache 2.0 grants copyright permissions, not trademark permissions, and Apache 2.0 says so explicitly. A copyleft license does not grant them either, so an affiliate cannot describe themselves as an official partner, use your logo in a paid ad, or imply endorsement unless your terms say they can.
Write four lines into the affiliate terms and you avoid most of the mess:
- Affiliates may state that they use the project and link to it.
- Affiliates may not claim to be official, certified or endorsed without a separate agreement.
- Affiliates may use the project name descriptively, not as part of their own product or domain.
- Affiliates may not resell the hosted product or issue licenses on your behalf.
The fork problem deserves a line. If someone forks the project, strips the branding and competes with your hosted offering, they are not an affiliate and are not owed commission on their own customers. Most licenses permit that fork, which is the point, so the answer is a clear statement that the program pays for referrals to your checkout only, not a legal threat.
Starting from the affiliate program terms template plus those four lines covers more ground than a contract written in a hurry.
Choosing the tool: flat fee or a percentage of commissions
The tool decision looks like a feature comparison and is really a margin question. Open source projects often run thin margins, and a tool that takes a cut of every affiliate payout compounds against you as the program grows.
| Model | Cost at $1,000/month in affiliate commissions | Notes |
|---|---|---|
| Flat subscription (Sled: $19/mo, $99/yr) | $19 to $99 regardless of volume | Predictable, no per affiliate cap |
| Percentage of commissions | $30 to $150 depending on rate | Scales with your success, in the wrong direction |
| Per active affiliate | $5 to $15 per affiliate per month | Punishes you for recruiting well |
| Enterprise contract | Custom | Reasonable only above real volume |
Check whether the tool speaks to the provider you already bill through. If your project sells on Polar, which is where a lot of open source license and sponsorship revenue already sits, the affiliate tool should consume Polar's signed webhooks natively rather than making you glue a middle layer. The Polar affiliate guide covers the checkout metadata path, and the same logic applies to Stripe and Paddle. Native webhooks are the difference between a commission in the dashboard and a commission in a support email.
Sled is a flat $19 per month or $99 a year, 10 day trial, no percentage taken from affiliate payouts. Payouts run through PayPal, Wise, Payoneer, Revolut, bank transfer or crypto with a $20 default minimum, and refunds reverse automatically. The cost does not grow with the number of people you recruit, which suits a project with a modest but real affiliate base.
A 30 day launch plan
Week one, define the product being promoted and the commission base on one page, then put both in the terms. If you cannot say it in one sentence, the program is not ready.
Week two, build the referral path and test it end to end. Create a link, click it in an incognito window, confirm the cookie is written, go through checkout, confirm the conversion lands. Then repeat on a phone, because posts get opened on phones.
Week three, recruit ten people you know by name: contributors with merged PRs, consultants who wrote about you, the integration maintainer. Personal messages beat a thousand platform signups.
Week four, publish the program page and the share kit. The launch checklist is a decent audit, and the share kit separates an affiliate who posts once from one who posts every release. Give them a link, three drafts and a screenshot.
Then leave it a month and look at the numbers. Programs fail from neglect more often than bad economics.
FAQ
Do open source projects need an affiliate program separate from GitHub Sponsors? Yes. Sponsorships fund maintenance, paid by people who already care. An affiliate program pays for acquisition and is measured against paid acquisition cost. Running both is normal, but they need separate pages, budgets and rules.
Can I track affiliates when someone installs from a package registry? No. A registry page is not your domain, so no first party cookie is written and no checkout session carries the code. Track the click that reaches your site instead, and point affiliates at a docs page on your domain rather than at the repo.
Should affiliates get paid on self-hosted licenses? Only if the purchase went through your checkout with their referral code attached. A self-hosted install with no checkout is not a referral, and a fork is never one. State that in the terms so the first disputed payout is a conversation about the rules rather than about trust.
What commission rate works for a hosted open source product? A recurring 30 percent is a common starting point for hosted subscriptions, with a higher one-time rate for commercial licenses. The rate matters less than the base: gross or net, first invoice or all invoices, and how refunds reverse. Decide those three and the percentage is a detail you can adjust later.
If you are wiring this up for a Polar, Stripe or Paddle product, the affiliate program guide for developer tools covers the parts that break first. When you are ready to run it, start a program on Sled.