New this week: 6 head-to-head tests added, including Claude vs Gemini for long documents.

See what changed →
pricing verified September 2026 pricing verified August 2026

undefined

GitHub Free is genuinely free, including unlimited private repositories. Team is $4 per user a month and Enterprise $21.

So people rarely leave over price. They leave over ownership, over what their code trains, or because they want the whole thing on their own server.

Prices were checked against each vendor’s own pricing page on 14 September 2026.

The shortlist

The best GitHub alternatives at a glance

A non-profit European host, a self-hosted server that runs on anything, and the community fork that replaced it.

CBBest overall

Codeberg

Non-profit, European, free

Free, donation funded
FJRunner-up

Forgejo

Self-host it on a Raspberry Pi

Free, open source
BBThird pick

Bitbucket

If you live in Jira

Free / from about $3 a user
01

Codeberg

Hosted, free, no company

A hosted Git service run by Codeberg e.V., a registered non-profit in Germany, with no venture funding and no commercial owner. Issues, pull requests, wikis, CI through Woodpecker, and Codeberg Pages for static sites. For open-source projects that want a European, non-commercial host where the code will not be used to train anything, this is the main answer. Smaller than GitHub, so fewer drive-by contributors.

Free tier: Free tier: yes, and there is no paid tier. Codeberg is run by a German non-profit association and funded by donations.

Free, funded by donations
02

Forgejo

The community fork

A fork of Gitea created after Gitea moved to a commercial company, and now the software behind Codeberg. Runs from a single binary on modest hardware, including a Raspberry Pi, with issues, pull requests, packages and CI. If you want GitHub-shaped workflows entirely on your own infrastructure with no licence at any headcount, this is the least painful route.

Free tier: Free tier: yes. Free and open source to self-host, with no user limits.

Free, open source
03

Gitea

The original lightweight forge

The project Forgejo forked from, still actively developed and now backed by a company that offers hosting and support. Same appeal: tiny footprint, fast, familiar interface, packages registry and Actions-compatible CI. Choose Gitea if you want a commercial support option behind your self-hosted forge, and Forgejo if you specifically want community governance.

Free tier: Free tier: yes, self-hosted. Gitea Cloud is a paid hosted option.

Free, open source, paid cloud
04

Bitbucket

Made for Atlassian shops

Worth considering only for one reason, and it is a good one: if your team runs on Jira, Bitbucket links branches, commits and deployments to issues without an integration to maintain. Pipelines handles CI. Outside the Atlassian world it has no particular advantage over GitHub, and its open-source community is far smaller.

Free tier: Free tier: yes, for a small team with limited build minutes.

Free for small teams, then per user
05

SourceHut

Email-driven, no JavaScript

Deliberately austere: no JavaScript in the web interface, patches by email, and a build service that handles nine operating systems. It is fast, fully open source, and suits maintainers who prefer the mailing-list workflow the Linux kernel uses. The email-based contribution model is genuinely unfamiliar to anyone who learned Git through pull requests.

Free tier: Free tier: limited. Hosting is a low monthly fee, deliberately funded by users rather than investors.

Paid, low monthly fee
06

Radicle

Git with no server at all

The most radical option: a peer-to-peer network where repositories, issues and patches replicate directly between contributors, with no central host to go down, censor or be acquired. It is the only tool here that removes the platform entirely. Early, sparse tooling, and discoverability is the obvious trade-off when there is no central index.

Free tier: Free tier: yes. Peer-to-peer and open source; you run a node.

Free, open source
GitHub alternatives compared at a glance6 tools
#ToolBest forFree tierPrice
01CodebergHosted, free, no companyYes, entirelyFree, funded by donations
02ForgejoThe community forkYes, fully freeFree, open source
03GiteaThe original lightweight forgeYes, self-hosted freeFree, open source, paid cloud
04BitbucketMade for Atlassian shopsYes, up to five usersFree for small teams, then per user
05SourceHutEmail-driven, no JavaScriptFree while in beta for some servicesPaid, low monthly fee
06RadicleGit with no server at allYes, fully freeFree, open source

Is GitHub free? Yes, and that is the problem

GitHub Free gives individuals and organisations unlimited public and private repositories, unlimited collaborators, and a monthly allowance of Actions minutes and Packages storage. Team is $4 per user a month, Enterprise $21.

So price is almost never why people search for an alternative. When something is free, the question becomes what you are paying with instead.

The three answers people give are ownership, training and dependency. GitHub is owned by Microsoft. Your code sits on infrastructure you do not control, governed by terms that can change. And an enormous amount of the world’s open-source software now has a single point of failure in one company’s product decisions.

None of that is an emergency. It is a reason some projects want a different arrangement, and the options below are the arrangements available.

GitHub alternatives compared

Cheapest paid tier and what the free tier really allows, checked against each vendor’s own page on 14 September 2026.

Hosted, self-hosted, or no host at all

This category splits three ways, and knowing which you want removes most of the choice.

Someone else hosts it, but not a corporation. Codeberg is run by a German non-profit association on donations. You get issues, pull requests, CI and static hosting, with no commercial owner and no venture timeline. This is the closest to “GitHub but not a company”.

You host it. Forgejo and Gitea run from a single binary on hardware as small as a Raspberry Pi. Unlimited users, no licence, your disk. The cost is that upgrades, backups and uptime become yours, and a forge that is down blocks your whole team.

Nobody hosts it. Radicle replicates repositories peer to peer between contributors. There is no server to be acquired or taken offline. There is also nothing to link to and no search, which is a real cost for a project that wants contributors.

GitLab or GitHub?

The most common comparison, and the honest answer is that they are no longer competing on the same thing.

GitHub is where open source lives. The network effect is the product: contributors already have accounts, your issues get found, and every tool integrates with it first.

GitLab sells a complete DevOps platform, and its real advantage is the self-managed edition, which puts repository, CI, registry, security scanning and issue tracking inside your own network as one product.

If you want one system for the whole pipeline on your own infrastructure, GitLab. If you want a lightweight forge and you already have CI you like, Forgejo is simpler and lighter. Our Jira alternatives guide covers GitLab’s issue-tracking side in more detail.

What moving actually involves

Git itself makes this easy, and everything around Git makes it hard.

The repository is trivial: Git is distributed, so a clone and a push moves all your code and history. What does not move automatically is issues, pull request discussions, labels, milestones, releases, wiki pages, Actions workflows, secrets, branch protection rules, and the GitHub Apps you have installed.

Forgejo, Gitea and Codeberg all have GitHub migration tools that bring issues and pull requests across with reasonable fidelity. CI is the part you rebuild: Forgejo and Gitea Actions are Actions-compatible but not identical, and SourceHut’s build system is entirely different.

Two practical notes. Keep the GitHub repository as a mirror rather than deleting it, because links to it exist in blog posts, package registries and other people’s documentation. And if you publish packages, check that your registry can pull from the new location before you switch.

How we test and price these tools

Every price here was read from the vendor’s own pricing page in a browser on 14 September 2026, not copied from another round-up.

For code hosting we weigh three things above features: who owns and funds the platform, whether the full product can run on your own hardware, and what a migration carries across beyond the code itself. Feature parity with GitHub is easy to claim and rarely the deciding factor.

For self-hosted options we state plainly that the cost is hardware plus maintenance rather than zero, and that a forge outage stops work. We read current Reddit threads for each tool, so the views here are from this year. No vendor pays for a place on this list.

Questions

GitHub alternatives FAQs

Taken from Google’s results and current threads on Reddit.

How we test
01 Is GitHub 100% free?

The Free plan is genuinely free, with unlimited public and private repositories and unlimited collaborators, plus a monthly allowance of Actions minutes and Packages storage. Team is $4 per user a month and Enterprise $21. You pay when you need more build minutes, advanced security or organisation controls.

02 Does GitHub have any competitors?

Yes, though none at its scale. GitLab competes as a full DevOps platform, Bitbucket inside Atlassian shops, Codeberg as a non-profit European host, and Forgejo and Gitea as self-hosted forges. Radicle removes the host entirely. GitHub advantage is its network, not its features.

03 Is GitLab or GitHub better?

GitHub for open source, because contributors are already there and every tool integrates with it first. GitLab if you want repository, CI, registry and security scanning as one product, especially self-managed inside your own network. They are no longer competing on the same thing.

04 What is the best self-hosted GitHub alternative?

Forgejo. It runs from a single binary on hardware as small as a Raspberry Pi, has no user limits and no licence cost, and its interface will be familiar within minutes. Gitea is the same shape with a commercial support option. GitLab self-managed is the choice if you want the whole pipeline in one product.

05 Is there a non-profit alternative to GitHub?

Codeberg, run by a registered German non-profit association and funded by donations, with no commercial owner. It offers issues, pull requests, CI through Woodpecker and static site hosting. It is smaller, so expect fewer passing contributors than a GitHub project would attract.

06 Can I move my issues and pull requests, not just the code?

The code and full history move with a clone and a push, because Git is distributed. Issues and pull requests migrate reasonably well using the GitHub import tools in Forgejo, Gitea and Codeberg. Labels, milestones and releases usually come too. Actions workflows, secrets, branch protection rules and installed apps have to be rebuilt.

07 Should I delete my GitHub repository after moving?

No. Keep it as a mirror or an archived repository with a pointer to the new location. Links to it exist in blog posts, package registries, dependency files and other people documentation, and breaking those costs you more than the repository does.

Updated monthly · No paid placements

Browse every alternatives guide, or start with the dev tools category.