Self-host your code snippets with a private Git-powered pastebin
S

Self-host your code snippets with a private Git-powered pastebin

Self-host your code snippets with a private Git-powered pastebin

3,238 stars
N/A forks
N/A contributors

README

Project documentation from GitHub

Self-Host Your Code Snippets with a Private Git-Powered Pastebin

Ever find yourself copying code snippets into random online pastebins, only to worry about privacy, longevity, or just wanting a cleaner way to organize them? Maybe you’ve wished for something like GitHub Gists, but with full control over where your data lives and who can see it. That’s exactly the itch that Opengist scratches.

It’s a self-hosted, Git-powered pastebin that lets you own your snippets entirely. Think of it as a personal, private Gist server that you can run on your own infrastructure. No more sending sensitive code through third-party services or losing track of that useful config block you saved months ago.

What It Does

Opengist is a web application that allows you to create, manage, and share code snippets. Under the hood, it uses Git repositories to store each snippet, giving you the full power of version history, forking, and cloning—just like you’re used to with regular Git projects. You get a clean web interface to create and view snippets, with syntax highlighting and optional markdown rendering for documentation. You can set snippets to be public, private, or secret (accessible via a direct link).

Why It’s Cool

The Git foundation is the killer feature. Because each snippet is a real Git repo, you can interact with it using all the standard Git commands. Need to update a snippet? Just push a new commit. Want to clone your entire collection of snippets locally? You can do that. It brings the workflow and robustness of version control to the simple act of saving a code block.

Beyond that, it’s fully self-contained. It’s written in Go, so it ships as a single binary, making deployment trivial. It has built-in user accounts (or you can disable them and run it as a single-user instance), and it supports SQLite for dead-simple setup or PostgreSQL for more demanding setups. It’s the kind of tool that does one thing well and gets out of your way.

How to Try It

Getting Opengist running is straightforward. The easiest way is with Docker:

docker run -p 6157:6157 -v opengist-data:/opengist thomiceli/opengist:latest

Then open http://localhost:6157. You’ll have a working instance right away.

For a non-Docker setup, you can grab the latest binary for your platform from the GitHub Releases page, run it, and follow the first-time setup. The documentation on the repo covers configuration options, like setting up a reverse proxy with HTTPS.

Final Thoughts

Opengist is a perfect example of a focused, useful tool that solves a specific problem elegantly. It’s not trying to be a full-blown Git server or a project management platform. It’s for those moments when a note-taking app feels too unstructured and a private GitHub repo feels like overkill for a 20-line script.

If you’re a developer who frequently j

Did you like this issue?

Join our weekly newsletter

Love discovering amazing projects?

Help us continue bringing you the best open-source discoveries every week.

Back to Projects
Last updated: Jan 23, 2026