Codeberg is a nonprofit, community-driven git hosting service built exclusively for free and open source software (FOSS) projects.

Unlike commercial platforms like GitHub, GitLab, and Bitbucket, Codeberg positions itself as a more humane, privacy-respecting alternative. It doesn't track users, sell data, or use your code to train AI models. If you're looking for a GitHub alternative, it's well worth considering.

How Is It Different from GitHub?

Since Codeberg is hosted under EU law, it's not subject to the US DMCA — which provides a meaningful layer of protection against bad-faith copyright takedown requests.

But the bigger difference is privacy. No third-party tracking cookies, no using your code for AI training, no data sales. Everything runs on infrastructure Codeberg controls directly.

Key Features

Codeberg is more than just a place to host repos — it offers a full toolkit to support the needs of open source projects.

  • Git Hosting: Repositories, commits, pull requests, and issue tracking.
  • Codeberg Pages: Free static site hosting — similar to GitHub Pages — supporting Jekyll, Hugo, or plain HTML.
  • Codeberg CI: Automated testing and deployment pipelines powered by Woodpecker CI.
  • Codeberg Translate: Collaborative translation and localization via Weblate integration.

Why Codeberg Over GitHub?

  • No vendor lock-in: GitHub pulls you into its ecosystem. Codeberg is built on open standards — you can migrate your data to any other Forgejo/Gitea instance in minutes.
  • Privacy and freedom: Codeberg won't silently scan your code for AI training or track your browsing habits with third-party cookies. Platforms like GitHub have used hosted code to train their own AI tools (Copilot). After GitHub announced it was moving further under Microsoft's AI division, a number of open source developers began looking for more independent homes. The controversy around Copilot being trained on open source code without consent accelerated that migration.
  • Open source first: Private repos are supported, but the core mission is hosting open source code.
  • Interoperability: Codeberg and its underlying platform Forgejo are building toward a federated future — where different git servers can communicate with each other. A Codeberg user could collaborate directly with someone running their own Forgejo instance.
  • Fast, clean, focused UI: No heavyweight analytics suites, trackers, or ad scripts running in the background — just a snappy, no-nonsense interface that stays out of your way.
  • Community governance and transparency: Users can participate in decisions, vote on direction, and donate. The platform is owned by its community, not a corporate parent.

A lot of developers hesitate to leave GitHub because they don't want to lose visibility. There's a practical solution for that: Codeberg Mirroring. You can keep your repo on GitHub while automatically syncing every commit to Codeberg in real time — giving you both a backup and an ethical alternative, running side by side.

"Free software deserves to be hosted on free infrastructure."
Feature GitHub Codeberg
Owner Microsoft (Commercial) Codeberg e.V. (Nonprofit)
Infrastructure Closed source Forgejo (Open source)
Privacy Trackers present No trackers, full privacy
AI Code used for Copilot training Code never scanned without consent
Performance Heavy (JS-intensive) Lightweight and fast

Drawbacks and Limitations

  • Codeberg's open-source-only focus naturally limits its audience. Your project simply won't have the same visibility as it would on GitHub. That's why many FOSS projects still keep their primary repo on GitHub and only mirror to Codeberg.
  • Limited CI/CD capacity: Woodpecker CI is free and functional, but the shared infrastructure can lead to queue buildup during peak times. It doesn't scale to the same level as GitHub Actions for complex automation workflows.
  • Missing features: GitHub Codespaces, advanced security scanning, detailed project management dashboards, and a broad marketplace of integrations — none of that exists on Codeberg, or exists only in a basic form. That said, broader developments like ForgeFed are on the roadmap.
  • Learning curve: Developers who have been on GitHub for years may find Codeberg's simpler interface takes a little getting used to, even if the underlying concepts are identical.

Who Should Use Codeberg?

  • FOSS developers: If you build software in the open and want to grow it with a community, Codeberg is a natural fit.
  • Privacy and data sovereignty advocates: Anyone who doesn't want their code tracked, analyzed, or quietly folded into someone else's training dataset.
  • Nonprofits and civic tech projects: Organizations that don't want to depend on the terms of service or pricing decisions of corporate platforms — and prefer a like-minded nonprofit host.
  • People stepping away from Big Tech: Users who are actively de-Googling or de-Microsofting their digital life will find Codeberg fits naturally into that philosophy.
Use Case Recommended Platform
Closed source commercial project GitHub, GitLab, Bitbucket
Full control on your own server Forgejo or Gitea (self-hosted)
Open source but commercially licensed (GPL, etc.) Codeberg may work (case-by-case)
Open source, free Codeberg — this is exactly what it's built for

Does Codeberg Support Private Repos?

Yes, Codeberg does technically support private repositories. But it's not positioned as a private git hosting service the way GitHub is. Since Codeberg's core mission is supporting open source, private repos are really intended for things like pre-release work on an open source project, storing API keys, or light internal team coordination.

For example, using a private repo to prepare a project before going public, or to share credentials within a small team, is perfectly reasonable. But long-term closed source commercial software, proprietary internal tools, or client projects — Codeberg isn't the right platform for those.

There's also no paid private repo tier. Codeberg runs on donations, not subscriptions or per-seat licensing. There's no "pay to go private" model here like GitHub Pro.

  • Private repos: Yes
  • Paid private plan: No
  • Commercial closed source use: Not officially encouraged

Software and Server Infrastructure

On the server side, one of Codeberg's most deliberate choices is staying off major cloud providers entirely. Everything runs on physical servers under their direct control, with encrypted storage. As the team puts it: "We can actually keep the data in our own hands."

On the software side, because everything is built on open standards, anyone can download Forgejo and run their own Codeberg-equivalent instance. The full stack — Forgejo for git hosting, Woodpecker CI for pipelines, Weblate for translation, and a custom Codeberg Pages server for static sites — is open source, and their configuration is publicly shared.

Layer Technology
Git hosting Forgejo
Programming language Go (Golang)
CI/CD Woodpecker CI + Forgejo Actions
Static sites Codeberg Pages
Translations Weblate
Reverse proxy HAProxy
Containers LXC
Config management Ansible
Firewall nftables
Filesystem ext4 + MD RAID
Server location Germany (EU)

What is Forgejo? Forgejo is a self-hostable, open source code platform that works just like GitHub — repos, issue tracking, pull requests, wikis, kanban boards, and CI/CD, all in one place. Because it's written in Go, it's extremely lightweight and runs comfortably on minimal hardware like a Raspberry Pi. Think of it as the open source, self-hosted version of GitHub.

What is FOSS? FOSS stands for Free and Open Source Software — software that is both freely available and open to inspection, modification, and redistribution.

Who Is Behind Codeberg — and Where Is It Headed?

Codeberg e.V. was founded in Berlin, Germany in September 2018 as a registered nonprofit association with just seven members. The platform itself launched in January 2019, and by the end of the first month had already grown to 25 members and 333 repositories. Because the platform is owned by a nonprofit association rather than a corporation, there's no risk of it being acquired or sold — unlike what happened when GitHub was bought by Microsoft. Notably, Codeberg's about page opens by explaining exactly how to leave if you're ever unhappy with it. That kind of transparency is rare. For more, see the official documentation.

One of Forgejo's primary long-term goals is enabling federation between different forge instances through a protocol called ForgeFed — an extension of ActivityPub, currently in experimental stages. As of 2025, cross-instance repo starring is already working over federation, and platforms like GitLab have started implementing ForgeFed support as well. The vision: much like how Mastodon users on different servers can interact seamlessly, someone on their own Forgejo instance could one day open an issue directly on a Codeberg repo without needing a Codeberg account.

Conclusion

The short version: Codeberg isn't trying to be the best platform — it's trying to be the most ethical and most free one. If visibility, integrations, and enterprise features are your top priorities, GitHub is still the more practical choice. But if privacy, independence, and FOSS values matter more to you, Codeberg's tradeoffs are easy to accept.

For developers building open source software who want to stay in control of their data, Codeberg is a compelling alternative. It may not have GitHub's ecosystem, but its transparency, privacy stance, and community-driven model make it stand out in a space dominated by corporate platforms.