A self-hostable, end-to-end encrypted pastebin with paste history, one-time deletion, and cross-device transfer.
thomiceli/opengist
Self-hosted pastebin that stores every snippet as a Git repository, an open-source alternative to GitHub Gist.
Open-source alternative to:GitHub Gist
- Stars
- 3,409
- Forks
- 206
- Open issues
- 68
- Last commit
- 11 days ago
What is it?
Opengist is a self-hosted pastebin where each snippet is stored in a Git repository. Snippets can be cloned, pulled, and pushed with standard Git commands over HTTP or SSH, or edited through the web interface, so the revision history comes from Git itself.
Snippets can be public, unlisted, or private, and the web UI supports syntax highlighting, Markdown and CSV rendering, code search, topics, likes, forks, and embedding in other sites. Raw files and ZIP archives can be downloaded. Login can be handled locally or through OAuth2 with GitHub, GitLab, Gitea, or OpenID Connect.
Opengist ships as a Docker image with a Compose example, a standalone binary for major platforms, and a build-from-source path that requires Go, Node.js, and Git.
Key features
- 01Public, unlisted, or private snippets with Git access over HTTP or SSH
- 02Syntax highlighting, Markdown and CSV rendering
- 03Code search, topics, likes, and forks across snippets
- 04Revision history backed by Git commits
- 05OAuth2 login with GitHub, GitLab, Gitea, and OpenID Connect
- 06Docker image, Helm chart, and standalone binaries
Use cases
- Hosting a private team snippet library that developers manage with Git
- Replacing GitHub Gist for internal code sharing without sending code to a third party
- Keeping snippets under version control and editing them from a local clone
Quick start
- 1
Pull the Docker image for the release
docker pull ghcr.io/thomiceli/opengist:1.15.3 - 2
Create a docker-compose.yml file with the content from the README
- 3
Start Opengist in the background
docker compose up -d - 4
Open http://localhost:6157 in your browser
Things to know
- Licensed under AGPL-3.0, a copyleft license that requires sharing modified source code when offered as a network service.
In collections
Topics
FAQ
- What is opengist?
- Self-hosted pastebin that stores every snippet as a Git repository, an open-source alternative to GitHub Gist. Opengist is a self-hosted pastebin where each snippet is stored in a Git repository. Snippets can be cloned, pulled, and pushed with standard Git commands over HTTP or SSH, or edited through the web interface, so the revision history comes from Git itself.
- Is opengist free to use? What license does it have?
- opengist is open source under the AGPL-3.0 license. Check the license terms before using it in commercial products.
- Is opengist still maintained?
- Actively maintained. The last commit to opengist was on Oct 27, 2026.
- What can I use opengist for?
- Hosting a private team snippet library that developers manage with Git Replacing GitHub Gist for internal code sharing without sending code to a third party Keeping snippets under version control and editing them from a local clone
- How do I install opengist?
- Pull the Docker image for the release: docker pull ghcr.io/thomiceli/opengist:1.15.3 Create a docker-compose.yml file with the content from the README Start Opengist in the background: docker compose up -d Open http://localhost:6157 in your browser
- Where can I get opengist?
- The source code and installation instructions are on GitHub: https://github.com/thomiceli/opengist
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Self-hosted file sharing, pastebin and URL shortener with per-item passwords, expiring share links and a web admin panel.
A collection of short, self-contained JavaScript articles and code snippets for learning everyday programming patterns in 30 seconds or less.
A Django-based pastebin for sharing code snippets, runnable standalone or as an embeddable Django app.
A self-hosted, single-binary pastebin and file-sharing web app written in Rust, with optional encryption and URL shortening.
A minimal, self-hosted file upload and pastebin service written in Rust, storing files on the local filesystem with no database.