The best European code hosting service overall is Codeberg (Germany), a free, non-profit Forgejo forge on its own hardware in Berlin. For free private repositories with CI, choose CodeFloe (Swiss operator, servers in Germany); for a company instance with managed runners, STACKIT Git (Germany).
This is the overview of every Git hosting option from Europe that I would recommend, with one line on who each one is for. If you are leaving GitHub, the deeper comparison is in Best European alternatives to GitHub. All prices and facts were checked on the providers’ own pages on 25 October 2026.
European code hosting services compared
| Tool | HQ | Data hosted in | From | Free plan | Open source | Best for |
|---|---|---|---|---|---|---|
| 1. Codeberg | Germany · EU | Germany · own hardware in Berlin | Free | Yes | Yes (Forgejo) | Open-source projects |
| 2. CodeFloe | Switzerland · EFTA | Germany · Hetzner | Free | Yes | Yes (Forgejo) | Free private repositories |
| 3. Forgejo | Germany · EU | Self-hosted – wherever you install it | Free | Yes | Yes (GPL v3+) | Full control, self-hosted |
| 4. STACKIT Git | Germany · EU | Germany · STACKIT data centres | €0.02083 / hour (about €15 / month) | No | Based on Forgejo (per reseller) | Companies needing managed CI |
| 5. Codey | Switzerland · EFTA | Switzerland · Cloudscale | CHF 39 / month | No | Yes (Forgejo) | Managed Forgejo for teams |
| 6. CodeTrunk | Netherlands · EU | Germany · netcup | €8 / month | Yes | Yes (Forgejo) | Cheap private repositories |
| 7. SourceHut | Netherlands · EU | Netherlands · own servers (backups in US) | €4 / month (excl. VAT) | No | Yes (AGPL, BSD et al.) | Email-based workflows |
Prices from public pricing pages. Affiliate links and sponsored placements are labelled.
How I chose the best European code hosting services
I compared ten code hosting services and tools with a European connection and kept seven. Each one was checked on the same five points: jurisdiction and ownership, feature match with GitHub (pull requests, Actions-style CI, packages, Pages, import), whether private code is allowed, price, and maturity. GitLab.com, Bitbucket, Gitea Cloud and RhodeCode are not listed because the companies behind them are not registered in Europe, and openCoDE serves only the German public sector.
The best European code hosting services
1. Codeberg – best for open source
German non-profit association with 449,000+ users, running Forgejo on its own hardware in Berlin. Free for open-source projects, with Pages, packages and CI on request, but no private commercial hosting. Full review →
2. CodeFloe – best free private hosting
Run by devXY GmbH in Switzerland on Hetzner in Germany. Private repositories, CI, Pages and package registries are free, within 5 GB per repository. Full review →
3. Forgejo – best for full control
The GPL-licensed forge software behind Codeberg, developed under Codeberg e.V. Install it on any European server and keep everything in your hands. Forgejo review →
4. STACKIT Git – best for companies
Dedicated Git instances in German data centres from the Schwarz Group cloud, with managed runners and about 90% GitHub Actions compatibility. From about €15 a month. Full review →
5. Codey – best managed Forgejo
Your own Forgejo instance run by VSHN AG on a Swiss cloud, with backups and updates included, from CHF 39 a month. Bring your own CI runner. Full review →
6. CodeTrunk – best cheap private repositories
Dutch operator, German servers, unlimited private repositories for €8 a month. No hosted CI described. Full review →
7. SourceHut – best for email workflows
Dutch, fully open source, strong CI and mailing-list code review from €4 a month. Still in alpha, with encrypted backups in the US. Full review →
European code hosting: FAQ
Which Git hosting services are based in the EU?
Codeberg and STACKIT Git (Germany), CodeTrunk and SourceHut (Netherlands). CodeFloe and Codey are run by Swiss companies, outside the EU but in EFTA; CodeFloe’s servers are in Germany.
Which European Git host is free?
Codeberg is free for open-source projects, and CodeFloe is free for private and public repositories, including CI. Forgejo itself is free software you can host yourself.
What is the best European Git host for companies?
STACKIT Git, if you want a dedicated instance with managed CI runners in German data centres. Codey is a smaller managed option on a Swiss cloud.
My verdict
Pick Codeberg for open-source projects, CodeFloe for free private repositories with CI, and STACKIT Git if your company needs a sovereign instance with managed runners. If you can run a server, Forgejo gives you all of it on your own terms.
