Best Self-Hosted Git Servers in 2026: 7 Forges Ranked With Prices
Seven Git forges you run on your own hardware, compared on license cost, paid tiers, built-in CI and what 25 developers pay in a year.
Short answer: Gitea is the self-hosted Git server most teams should install first. The open-source edition is free under the MIT license with pull requests, issues, packages and Gitea Actions for CI, and Gitea Enterprise lists at $19 per user a month on a one-year commitment. Forgejo is the community-governed fork, GitLab Self-Managed is the full DevSecOps suite, and GitHub Enterprise Server fits teams already on GitHub.
For 25 developers, our arithmetic puts OneDev Enterprise at $1,800 a year, GitHub Enterprise at $6,300 and GitLab Premium at $8,700, while Gitea, Forgejo, Gogs and SourceHut cost nothing in licenses. Prices were checked on each vendor's page in November 2026; servers and backups are extra in every case.
Key facts7 tools compared: Gitea, Forgejo, GitLab Self-Managed, GitHub Enterprise Server, OneDev, Gogs…
- 7 tools compared: Gitea, Forgejo, GitLab Self-Managed, GitHub Enterprise Server, OneDev, Gogs, SourceHut
- Forgejo (best for: Teams that want a lightweight forge governed by a non-profit rather than a company): Free and open source; no paid edition.
- GitLab Self-Managed (best for: Larger engineering orgs that want source control, CI/CD and security scanning in one platform): Free plan · Premium $29/mo per user on the annual plan · custom-priced plans too
- GitHub Enterprise Server (best for: Companies standardised on GitHub that must keep code on their own infrastructure): Free plan · Team $4/mo per user · custom-priced plans too
Self-hosting Git used to mean choosing between a bare SSH server and a heavy GitLab install. In 2026 the middle is crowded: lightweight open-source forges now ship CI runners, package registries and SSO, and the paid tiers on top of them cost a fraction of a hosted seat.
Toolradar data: Toolradar, the software directory we run, tracks 1,901 developer tools as of November 2026, and its self-hosted Git guide draws on that set. GitLab is listed as an alternative to 32 other tools there, which is why it remains the benchmark every option below is measured against.
If you are weighing hosted plans instead, our GitHub vs GitLab comparison and GitLab pricing breakdown cover the cloud side. This page is for the team that wants the code on its own servers.
How we chose: seven forges, each checked on its own pricing, release or documentation page in November 2026, ranked on how much of a hosted forge they replace, how actively they ship releases and what a 25-developer team pays for the license.
Top Picks
Based on features, real-world fit, and value for money.
The default lightweight forge, with a free MIT edition and an optional paid tier for SSO and support.
Open source free (MIT); Enterprise $19/user/mo list, 1-year commitment, shown discounted to $9.50.
Small and mid-size teams that want a GitHub-style forge with CI on one lightweight server
Free and open source; no paid edition.
Teams that want a lightweight forge governed by a non-profit rather than a company
The full DevSecOps suite on your own servers, with the highest seat price on this list.
Free plan · Premium $29/mo per user on the annual plan · custom-priced plans tooChecked Nov 29, 2026 on Toolradar
Larger engineering orgs that want source control, CI/CD and security scanning in one platform
| Tool | Pricing | Best for |
|---|---|---|
| Gitea | Open source free (MIT); Enterprise $19/user/mo list, 1-year commitment, shown discounted to $9.50. | Small and mid-size teams that want a GitHub-style forge with CI on one lightweight server |
| Forgejo | Free and open source; no paid edition. | Teams that want a lightweight forge governed by a non-profit rather than a company |
| GitLab Self-Managed | Free plan · Premium $29/mo per user on the annual plan · custom-priced plans too | Larger engineering orgs that want source control, CI/CD and security scanning in one platform |
| GitHub Enterprise Server | Free plan · Team $4/mo per user · custom-priced plans too | Companies standardised on GitHub that must keep code on their own infrastructure |
| OneDev | Community Edition free; Enterprise $6/user/mo with a 12 user-month minimum per order. | Teams that want Git, CI/CD, packages and issues in one self-hosted app at a low seat price |
| Gogs | Free and open source (MIT); no paid edition. | Solo developers and tiny teams hosting Git on a Raspberry Pi or the smallest VM |
| SourceHut | Free to self-host (open source); hosted plans $4, $8 or $12/mo plus tax, same features. | Developers who prefer email-based patches and want a forge with no tracking or AI features |
Pricing read from each vendor's own pricing page, checked November 2026. 2 of 7 publish prices for some plans and quote the rest.
Gitea
The default lightweight forge, with a free MIT edition and an optional paid tier for SSO and support.
- Pricing
- Open source free (MIT); Enterprise $19/user/mo list, 1-year commitment, shown discounted to $9.50.
Best for: Small and mid-size teams that want a GitHub-style forge with CI on one lightweight server
Pros
- The free edition includes pull requests, issues, packages and Gitea Actions for CI/CD, with unlimited users and repositories.
- Enterprise adds SAML SSO, audit logs and Kubernetes autoscaling runners.
- Enterprise includes priority email support with an SLA and an installation and upgrade assistant service.
Cons
- Enterprise requires a one-year commitment when paid online.
- The discounted Enterprise rate on the page carries no stated end date, so budget for the list price at renewal.
Forgejo
A community fork run under Codeberg e.V., with a published long-term support line.
- Pricing
- Free and open source; no paid edition.
Best for: Teams that want a lightweight forge governed by a non-profit rather than a company
Pros
- v15.0 is a long-term support release maintained until 15 July 2027.
- The stable v17.0 line shipped v17.0.1 on 26 October 2026.
- Forgejo says it needs an order of magnitude fewer resources than other forges.
Cons
- There is no vendor support contract; help comes from the community or third-party services.
- Each stable line is short-lived: v17 is supported until 28 January 2027, so plan regular upgrades.
GitLab Self-Managed
The full DevSecOps suite on your own servers, with the highest seat price on this list.
- Pricing
- Free plan · Premium $29/mo per user on the annual plan · custom-priced plans tooChecked Nov 29, 2026 on Toolradar
Best for: Larger engineering orgs that want source control, CI/CD and security scanning in one platform
Pros
- The free self-managed tier lets you bring your own storage and runners.
- Premium includes $12 of GitLab Credits per user a month for AI features; Ultimate includes $24.
- Qualifying open source projects, schools and startups can get free Ultimate licenses.
Cons
- Every user on an instance must be on the same plan, so you cannot mix Free and Premium seats.
- Ultimate has no public price, so the jump past Premium needs a sales call.
GitHub Enterprise Server
GitHub's own forge in a self-hosted deployment, sold under the GitHub Enterprise plan.
- Pricing
- Free plan · Team $4/mo per user · custom-priced plans tooChecked Nov 29, 2026 on Toolradar
Best for: Companies standardised on GitHub that must keep code on their own infrastructure
Pros
- The Enterprise plan includes SAML single sign-on, SCIM provisioning and an audit log API.
- GitHub Connect shares features and workflows between Enterprise Server and Enterprise Cloud.
- GitHub Enterprise now includes access to GitHub Copilot.
Cons
- It is the only proprietary option here, so you cannot inspect or patch the server code.
- There is no free self-hosted edition; even a small team pays the full seat price.
OneDev
An all-in-one forge with a CI engine that builds jobs without YAML and a cheap enterprise tier.
- Pricing
- Community Edition free; Enterprise $6/user/mo with a 12 user-month minimum per order.
Best for: Teams that want Git, CI/CD, packages and issues in one self-hosted app at a low seat price
Pros
- Community includes built-in CI/CD, a package registry for Docker, npm, Maven and more, and a project wiki.
- Enterprise adds clustering for high availability, cross-project code search and security scans.
- Disabled users, service accounts and AI users do not count toward the Enterprise license.
Cons
- It is a smaller project than Gitea or GitLab, with fewer third-party integrations.
- Enterprise support is email only, with a response within two business days.
Gogs
The original painless Go forge, built to run on almost no hardware.
- Pricing
- Free and open source (MIT); no paid edition.
Best for: Solo developers and tiny teams hosting Git on a Raspberry Pi or the smallest VM
Pros
- Gogs says it runs on 64 MiB of RAM and a quarter of a vCPU.
- It ships as a single binary or a Docker container across Linux, macOS, Windows and ARM.
- It has been MIT-licensed since 2014.
Cons
- Its introduction describes a simple Git service, so check its feature docs for CI, packages and SSO before you commit.
- There is no paid edition, so there is no vendor support contract to buy.
SourceHut
A minimalist, fully open-source forge with mailing lists, CI and no JavaScript requirement.
- Pricing
- Free to self-host (open source); hosted plans $4, $8 or $12/mo plus tax, same features.
Best for: Developers who prefer email-based patches and want a forge with no tracking or AI features
Pros
- All of it is open source (AGPL, BSD and others), with installation docs for running it yourself.
- Every feature works without JavaScript, and the project ships no AI features.
- On the hosted version all three price tiers get the same features; you pick by what you can afford.
Cons
- The email-driven review workflow is unfamiliar to teams used to pull requests.
- The hosted service is still described as a public alpha.
What it is
A self-hosted Git server is software you install on your own machine or cloud account to host repositories, review code and track issues, instead of renting that from GitHub or GitLab.com. You own the data, the uptime and the upgrades.
The options split into three groups. Lightweight forges (Gitea, Forgejo, Gogs) cover the GitHub-style workflow of repositories, pull requests and issues. All-in-one platforms (GitLab Self-Managed, GitHub Enterprise Server, OneDev) bundle CI, security tooling and admin controls. SourceHut sits apart with an email-driven, no-JavaScript workflow.
Why it matters
The license is the smallest part of the bill. Every option here needs a server, storage, backups and someone who applies security updates, and that work does not shrink because the software is free. A forge that runs in a small VM saves real money over one that needs a dedicated host with several gigabytes of RAM.
Where the license does matter is seats. GitLab Premium and GitHub Enterprise charge for every developer, so a 25-person team pays several thousand dollars a year before any hardware. Gitea and OneDev sell optional enterprise tiers at a much lower seat price, and Forgejo, Gogs and SourceHut have no paid edition at all.
The other cost is migration risk. A forge with a small maintainer base can stall, so release cadence and governance belong in the decision next to features.
Key features to look for
Pricing
Prices were checked in November 2026 on each vendor's own page: Gitea pricing, GitLab pricing (Self-Managed tab), GitHub pricing, OneDev pricing and SourceHut pricing. Forgejo's support dates come from its releases page and Gogs' footprint from its introduction.
Gitea's card shows Enterprise at a discounted rate with the $19 list price struck through and no end date, so the table uses the list price. GitLab bills Premium annually; GitHub's card prints the Enterprise rate per user a month.
| Server and edition | 25 developers, one year |
|---|---|
| Gitea (open source) | Free |
| Gitea Enterprise, list price | $5,700 |
| Gitea Enterprise, discounted rate shown in November 2026 | $2,850 |
| Forgejo | Free |
| GitLab Self-Managed Free | Free |
| GitLab Premium | $8,700 |
| GitHub Enterprise | $6,300 |
| OneDev Community | Free |
| OneDev Enterprise | $1,800 |
| Gogs | Free |
| SourceHut, self-hosted | Free |
The paid tiers span a wide range: GitLab Premium costs almost five times OneDev Enterprise for the same 25 people. If your requirement is SSO and an audit trail rather than GitLab's security suite, OneDev or Gitea Enterprise covers it for far less.
| Plan | Price | Best for |
|---|---|---|
| Gitea Open Source | Free | Unlimited users and repos, pull requests, issues, packages, Gitea Actions CI |
| Gitea Enterprise | $19/user/mo list, 1-year commitment | SAML SSO, audit logs, Kubernetes autoscaling runners, SLA support |
| Forgejo | Free | Stable and long-term support release lines, community support |
| GitLab Self-Managed Free | Free | Source code management and CI/CD with your own storage and runners |
| GitLab Premium | $29/user/mo billed annually | Team collaboration features plus included GitLab Credits for AI |
| GitLab Ultimate | Contact sales | Everything in Premium plus $24 of GitLab Credits per user a month |
| GitHub Enterprise | $21/user/mo | Self-hosted deployment option, SAML SSO, SCIM, audit log API, Copilot access |
| OneDev Community | Free | Git, YAML-free CI/CD, package registry, wiki, issue tracking |
| OneDev Enterprise | $6/user/mo, 12 user-month minimum | Clustering, cross-project search, security scans, audit log, email support |
| Gogs | Free | Single binary or Docker image, MIT license |
| SourceHut hosted | $4, $8 or $12/mo plus tax | Same features on every tier; self-hosting the open-source code is free |
The bottom line
Gitea is the self-hosted Git server to install first: the MIT edition covers pull requests, issues, packages and CI, and Enterprise adds SSO when you need it. Forgejo is the pick when non-profit governance and a published LTS line matter more than a vendor. GitLab Self-Managed is the choice for a large org that wants security scanning and planning in the same platform and can pay the highest seat price.
Choose GitHub Enterprise Server to keep the GitHub workflow on your own hardware, OneDev for the cheapest paid tier with CI built in, Gogs for the smallest possible footprint and SourceHut for an email-driven workflow. For the platform comparisons behind these picks, read our GitHub vs GitLab, GitLab vs Bitbucket, GitLab pricing and GitHub Actions pricing guides and the GitLab review. To host the server itself, see the best self-hosting tools, cheap VPS and CI/CD tools rankings, and the desktop side in best Git clients. Toolradar keeps records for Gitea, Forgejo and OneDev.
Cite this: Devshot, "Best Self-Hosted Git Servers in 2026", December 2026.
Frequently asked questions
What is the best self-hosted Git server in 2026?
Gitea for most teams: the open-source edition is free under the MIT license and includes pull requests, issues, packages and Gitea Actions for CI. Forgejo is the community-governed alternative, and GitLab Self-Managed suits larger orgs that want a full DevSecOps suite. Prices were checked on vendor pages in November 2026.
Is there a free self-hosted alternative to GitHub?
Yes. Gitea, Forgejo, Gogs, SourceHut, OneDev Community and GitLab's free self-managed tier all cost nothing in licenses. You still pay for the server, storage and the time to maintain it.
How much does GitLab Self-Managed cost?
GitLab's self-managed Free tier costs nothing, Premium is $29 per user a month billed annually, and Ultimate is priced by sales. Every user on an instance must be on the same plan, so 25 Premium seats cost $8,700 a year by our arithmetic.
What is the difference between Gitea and Forgejo?
Forgejo is a fork of Gitea governed by the non-profit Codeberg e.V. and published as exclusively free software, with a stable line and a long-term support line. Gitea is run by a company that sells an optional Enterprise tier with SSO, audit logs and SLA support on top of its free MIT edition.
Can I self-host GitHub?
Yes, through GitHub Enterprise Server, which GitHub lists as the self-hosted deployment of its Enterprise plan at $21 per user a month. There is no free self-hosted edition of GitHub.
Which self-hosted Git server needs the least hardware?
Gogs, which says it runs on 64 MiB of RAM and a quarter of a vCPU. Forgejo says it needs an order of magnitude fewer resources than other forges.
Some offers on this page may be paid placements or contain affiliate links.
Get the Devshot brief
Free daily newsletter, read in 5 minutes.
Subscribe free