Opengist is a self-hosted Pastebin tool powered by Git, positioned as an open-source alternative to GitHub Gist. Its core feature is that all code snippets are stored in Git repositories, and users can read and modify them both using standard Git commands and through the web interface.
Main capabilities include: creating public, unlisted, or private snippets; performing Git init, clone, pull, and push on snippets over HTTP or SSH; providing syntax highlighting, with support for Markdown and CSV; supporting code search within snippets, browsing user snippets, likes, and forks; adding topic tags to snippets; supporting embedding snippets in other websites; providing revision history; supporting liking and forking snippets; supporting downloading raw files or ZIP archives.
In terms of usage, the project provides a Docker image, docker-compose configuration, and a Helm Chart. When using docker-compose, after creating docker-compose.yml, run docker compose up -d; the service runs on port 6157 by default and can be accessed via http://localhost:6157 ; you can also set the UID and GID environment variables to specify the user/group running the container and the file owner. You can also download the archive for your system from the releases page, extract it, and run it. The development environment requires Git (2.28+), Go (1.23+), Node.js (16+), and Make (optional).
In terms of login and permissions, it supports OAuth2 login with GitHub, GitLab, Gitea, and OpenID Connect, and can restrict or allow anonymous users' permission to view snippets. Documentation is located at https://opengist.io/ or the repository's /docs directory. The project is licensed under AGPL-3.0.