Skip to content

Gogs

Single-binary self-hosted Git service for small teams that want a light GitHub alternative

Permissive (OSI) · MIT
  • Self-hosted
  • macOS

Listed by , founder & editor

59

Health

Active

Overview

Stars

47,990

Last commit

today

Nov 2026

Repository age

12 years

since Feb 2014

Latest version

v0.14.4

Nov 2026

Contributors

–

3 active in 90 days

Releases

6

last 12 months

Docker pulls

94M

gogs/gogs

Language

Go

Gogs is a self-hosted Git service written in Go. It ships as one binary that runs on Linux, macOS, Windows and ARM systems, and it is also available as a Docker image. It stores data in PostgreSQL, MySQL or SQLite3.

You get Git over SSH and HTTP(S) with a built-in SSH server, forks, mirrors, LFS, deploy keys and migration from other code hosts. In the browser you can browse and edit code, search across repositories and view rendered Markdown, Jupyter Notebooks, PDFs and Mermaid diagrams. Collaboration covers issues with templates, pull requests with merge, rebase and squash options, protected branches, wikis, releases, organizations and teams.

Sign-in options include LDAP, SMTP, PAM and reverse proxy authentication, plus passkeys and multi-factor authentication. Webhooks reach Slack, Discord and DingTalk. Hardware needs are small: 2 CPU cores and 512 MB RAM suit a team, and a Raspberry Pi can run it. It is MIT licensed and works as a self-hosted alternative to GitHub. Several features, such as Actions and packages, are still in development.

Who it's for

Small teams running their own Git server

It runs from one binary with modest memory needs and covers issues, pull requests and wikis.

Skip if: You need built-in CI/CD or a package registry today.

Hobbyists hosting on a Raspberry Pi or cheap VPS

The footprint is small enough for low-end hardware.

Skip if: You want a large plugin ecosystem or a hosted service managed for you.

Teams moving repositories off GitHub

It can migrate from other code hosts and offers a GitHub-compatible API in development.

Skip if: You rely on GitHub code scanning or AI coding assistants.

The problem it solves

Hosting code on a third-party platform means depending on its pricing and policies. Many self-hosted Git platforms are heavy to install and run. Gogs gives small teams private repositories, issues and reviews on modest hardware.

Strengths

  • Single Go binary for Linux, macOS, Windows and ARM
  • Runs on PostgreSQL, MySQL or SQLite3
  • Baseline of 2 CPU cores and 512 MB RAM for a team
  • LDAP, SMTP, PAM, passkeys and multi-factor authentication
  • MIT license

Trade-offs

  • Actions, packages and Kubernetes support are still in development
  • Only one contributor was active in the last 90 days
  • No AI coding assistant or confirmed code scanning
  • REST API support is experimental

Gogs replaces

Self-host Gogs

Self-hostable
Yes
Minimum RAM
512 MB
Docker image
gogs/gogs

Frequently asked questions

Is Gogs free?

Yes. It is open source under the MIT license.

Can I run it with Docker?

Yes. A Docker image is available, and you can also run the single binary directly.

Which databases does it support?

PostgreSQL, MySQL and SQLite3.

Can I migrate from GitHub?

Yes. It supports migration from other code hosts. Two-way GitHub sync is still in development.

How much RAM does it need?

2 CPU cores and 512 MB RAM are the baseline for a team. Smaller setups can run on much less.

Other GitHub alternatives

Compare all 7 GitHub alternatives →

Similar tools in Git hosting and version control

lazygit

Git hosting and version control

Terminal UI that makes staging, rebasing and cherry-picking in git faster for CLI users

84k 3.2k yesterday Thriving MIT

Gitea

Git hosting and version control

Self-hosted Git forge with code review, packages and GitHub Actions-compatible CI

59k 7.4k today Thriving MIT

Replaces GitHubJFrog Artifactory

Harness

Git hosting and version control

Self-hosted platform combining Git hosting, CI pipelines, dev environments and registries

39k 3.5k today Active Apache-2.0

Replaces GitHub

GitButler

Git hosting and version control

22k 1.1k today Thriving Unknown

gitbucket

Git hosting and version control

Self-hosted Git platform in Scala with GitHub API compatibility, run from one WAR file

9.4k 1.3k today Active Apache-2.0

Replaces GitHub

GitLab

Git hosting and version control

Self-hosted or SaaS DevOps platform with Git hosting and built-in CI/CD

6.2k 13k 3 days ago Active MIT

Replaces GitHub