How to sell access to a private GitHub repo or Discord server

Short answer

You can sell access to a private GitHub repository or a Discord server by attaching a benefit to a product. After the buyer pays, Ruba invites them to the repo or adds them to the server with a role, and removes access when the entitlement ends. Ruba pays you to your own bank.

Access as a product

Ruba can grant access to a private GitHub repo or a Discord server when a buyer pays, at 4% + $0.50 a sale. Rashed in Sylhet teaches web security by sharing real code. His examples live in a private repository, and his students talk in a Discord server. He wants one price that opens both. That is access as a product.

Doing this by hand is slow. Someone must send invitations, give roles and remove people when a plan ends. Ruba’s benefits do these steps automatically.

What happens after payment

One buyer, two doors
  1. PayBuyer paysOn Ruba’s checkout.
  2. GrantBenefits are grantedGitHub and Discord together.
  3. UseBuyer gets inRepo invite, server role.
  4. EndAccess is removedWhen the entitlement ends.
Figure 1Based on Ruba’s GitHub and Discord benefit docs. Payouts are sent by hand, and Ruba does not promise a speed.

GitHub or Discord: how each works

GitHub accessCollaborator
NeedsA dedicated GitHub App
Buyer getsA collaborator role
Ends whenThe entitlement ends
Works withSubscriptions and one-time

Great for Customer-only source, starter kits, courses and early builds.

Watch for It is separate from GitHub sign-in, so you connect it on purpose.

Figure 2From Ruba’s docs. Tap each one.

Different products can give different roles. For more than one repository or server, add more than one benefit.

What is a product, and what is a service

Fine to sell
Access to code in a private repository
A community server that members use themselves
Course material and updates
Not allowed
Live coaching or one-to-one mentoring
Consulting hours
Custom work for members
Figure 3Ruba is for digital products only. Every shop and product is reviewed.

What to do next

Ruba charges 4% + $0.50 per sale, plus 0.5% on subscriptions, with no monthly fee. Gumroad lists 10% + $0.50 and Polar’s free plan is 5% + 50¢, as we read on 26 November 2026. Ruba pays individuals in Bangladesh in BDT, Pakistan in PKR and India in INR to their own bank. Apply for Ruba early access. Related: selling code boilerplates.

Access is granted at purchase and removed when it ends. Skip the company and the monthly fee: neither is needed. For your private community, an early-access approval means 4% + $0.50 per sale, locked while your account is open and in good standing. If Ruba ever charges a fee it never told you about, it refunds the fee and pays you $100. Terms apply. See the early-access deal.

Questions people ask

How does GitHub access work?

You create a GitHub access benefit and connect it to a repository through a dedicated GitHub App. After a buyer is entitled, Ruba invites them as a collaborator. When the entitlement ends, Ruba removes the access. It works with subscriptions and one-time products.

How does Discord access work?

You create a Discord access benefit, connect your account and pick a server and a role. Ruba adds entitled buyers directly to the server with that role. It does not create invite links. When access ends, Ruba can remove the member.

Which permissions does Discord need?

Manage Roles, to read and assign the role, and Kick Members, to remove a member after access is revoked.

Can one product unlock more than one repo or server?

Yes. Create more than one benefit and attach them all to the product.

Is a paid community a service?

Access to a repository or a server can be a digital product. Live coaching, consulting or work you do for each member by hand is a service, and Ruba does not allow it. Every product is reviewed.

Sources

We check these when we update this guide. Rules can change, so check them yourself before you decide.

A note from FaizanHi, I’m Faizan, the founder of Ruba. I built it so people anywhere, from Pakistan, India and Bangladesh to the UK, the EU and the US, can sell software to the world and get paid at home.I wrote these guides to be as fair as I can. But I built Ruba, so I’m about as neutral as a parent at a school play. That’s why every fact has a source you can check.
Early access is live.

Sellers approved now keep 4% + $0.50 per sale locked for as long as they sell, plus +$100 if we ever charge a fee we never told you about. No company and no monthly fee. You are paid to a bank in your own name, in PKR, INR, BDT or 51 other currencies, whenever you ask, from $10. A payout costs $2 up to $200.

Applying is not approval. Terms apply.
All guides

Can’t find your country or currency? Email support@getruba.com.

This guide is general information, not legal, tax or financial advice. Other companies named here set their own rules, which can change. Check their websites before you decide.