How to sell access to a private GitHub repo or Discord server
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
- PayBuyer paysOn Ruba’s checkout.
- GrantBenefits are grantedGitHub and Discord together.
- UseBuyer gets inRepo invite, server role.
- EndAccess is removedWhen the entitlement ends.
GitHub or Discord: how each works
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.
Great for Paid communities and cohorts with different roles per product.
Watch for Approve both permissions, or removal will not work.
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
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.
- Ruba: GitHub accessChecked 26 Nov 2026
- Ruba: Discord accessChecked 26 Nov 2026
- Ruba: subscriptionsChecked 26 Nov 2026
- Ruba: pricing and feesChecked 26 Nov 2026
- Gumroad: pricingChecked 26 Nov 2026
- Polar: feesChecked 26 Nov 2026