Skip to content
Code hosting · head-to-head

Forgejo vs OneDev

Updated Aug 2026prices checked · Aug 2026
The verdictOur pick: Forgejo

Pick Forgejo — one Go binary on a 512 MB floor, MIT top to bottom, a community hard fork of Gitea created after Gitea moved under a company and now stewarded by the Codeberg nonprofit. Pick OneDev when jumping to a symbol's definition at any commit is worth four times the memory: it indexes code per commit for language-aware navigation and regex search, and its CI/CD engine is configured through a GUI rather than hand-written YAML — accepting that its enterprise code lives in a separate server-ee submodule, so clustering, audit logging and cross-project search are paid.

Side by side

Forgejoour pick
OneDev
Category
Forgejo: Code hostingOneDev: Code hosting
Stack
Forgejo: Go (single binary)OneDev: Java (JVM)
License
Forgejo: MIT throughoutOneDev: MIT · enterprise code in a server-ee submodule
Code search
Forgejo: Full-text search across repositoriesOneDev: Language-aware symbol navigation · regex
CI/CD
Forgejo: Actions runner, YAML workflowsOneDev: Built-in engine, configured in a GUI
Min RAM
Forgejo: 512 MBOneDev: 2 GB

Forgejo and OneDev both give you repositories, pull requests, issues, CI/CD and package registries in a single container, and both are small enough to run on a server you are already renting. They are not competing on the feature checklist, which comes out close to even. They are competing on a much narrower question: do you want the lightest possible place to keep code, or do you want the forge to understand the code it is keeping?

Forgejo: the featherweight

Forgejo is a Go application that ships as one self-contained binary, or one container with one volume, and starts on 512 MB. It is a community hard fork of Gitea, created after Gitea's project and trademark moved under a company structure, and it is now stewarded by the Codeberg nonprofit — a fact worth stating plainly because it is the reason the project exists, not a marketing line. Licensing is MIT with nothing held back.

What you get is the familiar forge: repositories, pull requests, code review, branch protection, wikis, a package registry, and an Actions-style CI runner whose workflow syntax is close enough to GitHub's that existing pipelines mostly port. Code search is full-text across your repositories. Setup rates 2 out of 5, and SQLite keeps the simplest install to a single container until a team outgrows it.

OneDev: the forge that reads your code

OneDev is a Java application, one container, and upstream asks for at least 2 GB of physical memory — four times Forgejo's floor, and more again if you host large repositories, because it caches Git data in memory and builds a Lucene index per repository. It runs on the JVM, so expect the resident footprint to sit near whatever heap you give it. The container listens on 6610 for the web UI and 6611 for Git over SSH, which conveniently avoids the fight over port 22 that heavier forges start.

What the memory buys is code intelligence, and it is the genuine differentiator here. OneDev indexes symbols per commit, so from the file viewer you can jump to a definition or list every occurrence of a symbol at any point in history, and search a repository by regular expression. Nothing else at this weight does that. Its CI/CD engine is the second differentiator: you configure jobs through a GUI rather than hand-writing YAML, which is either a relief or an inconvenience depending on how you feel about YAML.

Its install snippet mounts the Docker socket, and you should know why before you copy it. That is how the built-in CI executor starts job containers on the same host — and anything that can reach that socket is effectively root on the machine. Leave the mount out if you will not run CI on this box, and move to remote agents or a Kubernetes executor once builds matter.

Licensing: MIT, with an asterisk on one side

Both records read MIT and both are accurate, but the structures differ. Forgejo is MIT throughout. OneDev's main repository server is MIT while the enterprise code lives in a separate server-ee submodule — open core, structurally. What sits behind the subscription: high-availability clustering, cross-project code search, security and compliance scanning, audit logging, time tracking, the CI/CD web terminal and Renovate integration. The everyday forge — repositories, pull requests with review policies, issues, CI/CD, package registries, SSO and LDAP — is in the free edition, and per-repository code search is too. It is a far softer split than the most gated projects in this catalogue, but it is a split, and it is the row the table scores against OneDev.

Which should you self-host?

Pick Forgejo if…

  • The box is small, or shared, and 512 MB versus 2 GB decides the plan you rent.
  • You want MIT with no enterprise submodule and no subscription page to read.
  • Community-first governance under a nonprofit is something you actively want to back, and a familiar GitHub-shaped forge is all you need from the software.

Pick OneDev if…

  • Jumping to a definition, listing usages at an old commit, or regex-searching a large codebase is something you would actually do weekly.
  • You would rather build a pipeline in a GUI than maintain workflow YAML.
  • You have the memory to spare and a codebase big enough that searching it is a real problem rather than a nice demo.

Running either on a VPS

The sizing gap is the practical one. Forgejo fits on the cheapest instance worth renting and leaves room for a reverse proxy and something else; give OneDev its documented 2 GB as a floor and more if repositories are large, since the index and the Git cache both live in memory. Neither terminates TLS in a way you want facing the internet, so put a reverse proxy in front of whichever you choose and let it handle certificates. Plan the SSH port early: Forgejo needs a mapped port for Git over SSH because the host's own sshd owns 22, while OneDev sidesteps that by listening on 6611. Back up the data volume and, if you moved off SQLite, the database with it. Setup steps and VPS options are linked below.

Other comparisons with these apps

We use analytics cookies (Google Analytics, PostHog) to see which guides are useful. No ad networks, no cross-site tracking. See our privacy policy.