GitHub alternatives Forgejo vs GitLab

~ git remote -v

Forgejo vs GitLab

A small community forge and an all-in-one company platform, side by side for teams that run their own server.

Verified Published

Independent comparison. Not affiliated with the Forgejo project, Codeberg e.V., GitLab Inc., GitHub, Inc. or Microsoft Corporation. Every figure below was read from the vendor's own page on 15 November 2026 and is linked in the sources list.

Forgejo and GitLab both run on your own server and both include Git hosting, merge or pull requests, issues, package registries and built-in CI. They differ in who controls them, which licence applies, how much hardware they need and how much they include beyond the repository.

This page compares self-managed GitLab with self-hosted Forgejo. It is a directory entry, not a verdict. Each claim comes from the project’s own documentation or source code.

At a glance

GitLab and Forgejo at a glance. Read from each vendor's pricing page on 15 November 2026. Scroll sideways on small screens.
GitLabForgejo
OwnerGitLab Inc.Defined by its contributors, under the umbrella of the non-profit Codeberg e.V., which holds the domains
LicenceOpen core: code outside the ee/ directories is MIT Expat; ee/ is under the GitLab Enterprise Edition licenceGPL-3.0-or-later from v9.0; v8.0 and earlier are MIT
Hardware8 vCPU and 16 GB of memory is the single-node baseline; it can run with at least 8 GB of memoryNo published minimum. The install guide says SQLite is good enough for at least 10 users
DatabasesPostgreSQL onlyPostgreSQL, MySQL, MariaDB, SQLite
CI/CDGitLab CI/CD in .gitlab-ci.yml, jobs run by GitLab RunnerForgejo Actions in .forgejo/workflows, jobs run by Forgejo Runner
Release scheduleMinor release monthly on the third Thursday. Security fixes for the current and two previous minor releases. No LTS documentedStable release every quarter, about three months of support. One LTS release a year, about 15 months of support
Latest release19.5 is the current stable releasev17.0.1, 26 October 2026. LTS: v15.0.11, supported to 15 July 2027
Paid editionPremium, $29 per user per month billed annually. Ultimate on custom pricingNone

Self-managed editions side by side

GitLab self-managed tiers against Forgejo, which has no paid edition. Prices in USD as published on GitLab’s pricing page.
TierGitLabForgejo
FreeFree, $0. Bring your own storage and runners. The 5-user limit applies only to GitLab.comFree, no paid edition. GPL-3.0-or-later, no user or repository limits
PaidPremium, $29 per user per month billed annuallyNo paid edition
TopUltimate, custom pricing. Contact salesNo paid edition

Licence and governance

GitLab is open core. Its repository licence file puts everything under the ee/ directories under the GitLab Enterprise Edition licence, and everything else under MIT Expat. GitLab publishes a read-only mirror with the proprietary code removed, which it calls GitLab FOSS. GitLab says the Enterprise Edition package can run with Free features without a paid subscription.

Forgejo is GPL-3.0-or-later from v9.0. Versions up to v8.0 stay MIT. Forgejo says its governance is defined collectively by its contributors, and that its domains are in the custody of the non-profit Codeberg e.V. It names volunteers, grants, donations and employers who delegate staff as its funding.

GitLab Inc. sets GitLab’s roadmap and sells its paid tiers. Forgejo has no paid edition from the project.

Hardware and operations

GitLab documents 8 vCPU and 16 GB of memory as the baseline for a single-node install. Where memory is tight, it says GitLab can run with at least 8 GB. Application nodes need at least 40 GB of disk, and PostgreSQL is the only supported database. GitLab 19.x needs PostgreSQL 17 or later.

Forgejo’s documentation publishes no CPU or memory minimum. It ships as one binary per CPU architecture and supports PostgreSQL 14 or later, MySQL 8.4 or later, MariaDB 10.6 or later and SQLite. The binary install guide says SQLite is good enough for at least 10 users.

CI/CD

Both products leave job execution to a separate runner program. GitLab CI/CD reads .gitlab-ci.yml and sends jobs to GitLab Runner. On self-managed GitLab you bring your own runners.

Forgejo Actions reads YAML workflows from .forgejo/workflows, and falls back to .github/workflows if that directory is missing. Jobs go to Forgejo Runner, which Forgejo installs and configures separately. Forgejo says Actions is designed to be familiar to GitHub Actions users but not designed to be compatible, and that workflows usually need minor changes. Its admin guide warns that the runner performs remote code execution and points to a page on securing it.

Neither reads the other’s CI format, so moving between them means rewriting pipelines.

What GitLab documents that Forgejo does not

GitLab documents SAST scanning in every tier, including Free, with advanced SAST and vulnerability management in Ultimate. It documents GitLab Pages static site hosting in every tier, and SAML sign-in for self-managed instances in every tier.

Forgejo’s documentation has no section on built-in security scanning or static site hosting. Its authentication pages cover LDAP and PAM and include a page on OpenID Connect group mappings; they do not mention SAML. Forgejo does document a package registry with 23 formats, including Container, npm, Maven, PyPI and Cargo, plus project boards, a wiki and code search.

Moving from GitLab to Forgejo

Forgejo’s migration tool has a GitLab source. Its GitLab downloader reads repository details, topics, milestones, labels, releases, issues, comments, merge requests and reviews. Reactions on issues and merge requests come across; reactions on comments do not, according to a note in the code. Codeberg’s guide, which uses the same Forgejo tool, says an access token is needed to migrate metadata or non-public repositories.

In the other direction, GitLab’s Gitea importer brings repository data, issues, pull requests, milestones and labels. Its documentation does not mention Forgejo. For code only, a mirror push works in either direction.

git clone --mirror https://gitlab.example.com/group/repo.gitcd repo.gitgit remote set-url --push origin https://forgejo.example.com/org/repo.gitgit push --mirror

Frequently asked questions

Is Forgejo lighter than GitLab?

GitLab documents 8 vCPU and 16 GB of memory as its single-node baseline, and at least 8 GB where memory is tight. Forgejo publishes no minimum; its install guide says SQLite alone is good enough for at least 10 users.

Is Forgejo or GitLab open source?

Forgejo is GPL-3.0-or-later from v9.0, with no proprietary edition. GitLab is open core: code outside its ee/ directories is MIT, and the ee/ code is under the GitLab Enterprise Edition licence.

Can Forgejo import from GitLab?

Yes. Forgejo’s GitLab migrator reads issues, merge requests, reviews, comments, labels, milestones and releases. You need a GitLab access token to bring metadata or private repositories.

Does Forgejo have CI like GitLab CI?

Yes. Forgejo Actions runs YAML workflows on a separate Forgejo Runner. The format is modelled on GitHub Actions, not on .gitlab-ci.yml, so GitLab pipelines need rewriting.

Does Forgejo have a long-term support release?

Yes. The first Forgejo release each year is LTS, with about 15 months of support; v15.0.11 is supported to 15 July 2027. GitLab’s maintenance policy describes no LTS: security fixes go to the current and two previous monthly releases.

Sources

Checked on 15 November 2026. Prices and limits change without notice. Each link goes to the page the figure came from.

  1. GitLab installation requirementsdocs.gitlab.com
  2. GitLab maintenance policydocs.gitlab.com
  3. GitLab licence filegitlab.com
  4. GitLab Community Editionabout.gitlab.com
  5. GitLab pricingabout.gitlab.com
  6. GitLab SASTdocs.gitlab.com
  7. GitLab Pagesdocs.gitlab.com
  8. GitLab SAML for self-manageddocs.gitlab.com
  9. GitLab: migrate from Giteadocs.gitlab.com
  10. Forgejo FAQforgejo.org
  11. Forgejo releasesforgejo.org
  12. Forgejo release scheduleforgejo.org
  13. Forgejo database preparationforgejo.org
  14. Forgejo installation from binaryforgejo.org
  15. Forgejo Actions overviewforgejo.org
  16. Forgejo Actions administrator guideforgejo.org
  17. Forgejo authenticationforgejo.org
  18. Forgejo documentation indexforgejo.org
  19. Forgejo GitLab migrator sourcecodeberg.org
  20. Codeberg: migrating repositoriesdocs.codeberg.org

All 45 GitHub alternatives, compared