Opengist
Self-hosted and open-source pastebin powered by Git
docker run -p 6157:6157 -v "$HOME/.opengist:/opengist" ghcr.io/thomiceli/opengist:1.13Features
All you need to self-host, manage and share your snippets.
Public, unlisted & private
Set the visibility of every snippet - public, unlisted, or fully private.
Powered by Git
Each snippet is a Git repository. Clone and push over HTTP or SSH, or create one with a plain git push.
Git CLI & API
Manage your snippets straight from the git command line, or via the API.
Revisions & diffs
Browse the full history of a snippet with diffs between every revision.
Rich rendering
Syntax highlighting for hundreds of languages, plus Markdown with Mermaid, LaTeX, CSV and media files.
Files & uploads
Multiple files per snippet, including binary files and images, with a download as ZIP.
Likes, forks & topics
Star and fork snippets, and organize them with topics for easy discovery.
Embed & JSON
Drop a snippet into any webpage with the embed widget, or fetch it as JSON.
Full-text & code search
Search across snippets via code or metadata.
OAuth, LDAP & passkeys
Log in with GitHub, GitLab, Gitea or OIDC, LDAP, and secure accounts with TOTP or WebAuthn.
Admin & instance controls
Require login for a private instance, allow anonymous snippets, manage users, and expose Prometheus metrics.
Self-hosted your way
A single binary, Docker image or K8s deployment, backed by SQLite, PostgreSQL or MySQL.
A clean, familiar interface
Create, browse and share snippets with syntax highlighting, revisions and more.

