What features does Opengist offer for managing code snippets?
Updated
Opengist is a self-hosted pastebin where every snippet is a Git repository. That single design decision drives most of its snippet-management features: you get version history, diffs, and command-line access for free, alongside a web interface for creating, browsing, and sharing snippets. It is aimed at people who want GitHub Gist-style functionality on infrastructure they control.
Visibility and access control
Each snippet can be set to one of three visibility levels:
- Public — discoverable and viewable by anyone with access to the instance.
- Unlisted — reachable by link but not listed for browsing.
- Private — restricted to the owner.
On top of per-snippet settings, instance administrators can require login for a private instance or allow anonymous snippet creation, so the same software can run as an open public pastebin or a locked-down internal tool.
Git as the storage layer
Because each snippet is a Git repository, you manage it with the tools you already use:
- Clone and push over HTTP or SSH.
- Create a snippet with a plain
git push. - Work from the Git CLI or the API instead of the web UI.
The web interface exposes the same history: you can browse every revision of a snippet and see diffs between consecutive revisions. This is the main practical difference from a conventional pastebin, where an edit typically overwrites the previous version with no record.
Files, uploads, and downloads
A single snippet can hold multiple files, including binary files and images. You can download a snippet's contents as a ZIP archive. This makes Opengist usable for small multi-file projects or asset bundles, not just single text blobs.
Rendering and search
- Syntax highlighting for hundreds of languages.
- Markdown rendering, with support for Mermaid diagrams, LaTeX, and CSV.
- Media files displayed directly.
- Full-text and code search across snippets, by code content or metadata.
Collaboration and organization
- Likes and forks — star snippets you want to keep track of, fork ones you want to build on.
- Topics — tag snippets so they can be discovered and grouped.
- Embed widget — drop a snippet into any webpage.
- JSON access — fetch a snippet as JSON for use in other tools.
Authentication and administration
Login options include GitHub, GitLab, Gitea, or OIDC, plus LDAP. Accounts can be secured with TOTP or WebAuthn (passkeys). Administrators get user management and Prometheus metrics for monitoring the instance.
Deployment options
Opengist ships as a single binary, a Docker image, or a Kubernetes deployment, backed by SQLite, PostgreSQL, or MySQL. The project's own quick-start command is:
docker run -p 6157:6157 -v "$HOME/.opengist:/opengist" ghcr.io/thomiceli/opengist:1.15
A live demo is available if you want to try the interface before committing to a deployment.
Who this fits
Choose Opengist if you want Gist-like snippet sharing with real version control and you are willing to run the server yourself. If you only need to paste text and share a link once, with no history or self-hosting requirement, a conventional pastebin is simpler. If you need the snippets to stay on your own hardware, be searchable, and be reachable from the Git command line, Opengist's feature set maps directly onto that workflow.