About Opengist
Opengist, by Thomas Miceli, is an AGPL-3.0 alternative to GitHub Gist written in Go. Snippets get syntax highlighting, Markdown rendering, revisions, likes, forks and search, with public, unlisted or private visibility.
Each gist is a Git repository, so you can clone it, push changes or create new gists with git push over HTTP or SSH. It runs on SQLite by default, which keeps even the smallest CloudSat plans comfortable.
The web interface listens on port 6157 and the built-in SSH server on 2222. The first account you register becomes the administrator.
What you get with Opengist
- Gists as Git repositories, cloneable over HTTP and SSH
- Syntax highlighting and Markdown rendering
- Public, unlisted and private gists
- Revisions, forks, likes and topics
- Embeddable gists for blogs and docs
- OAuth login with GitHub, GitLab, Gitea or OpenID Connect
Opengist use cases
- Share config snippets inside a team
- Embed code samples in a blog or docs site
- Keep private scripts versioned without a full Git forge
After you deploy Opengist
- Open
http://<server IP>:6157after the server reaches Running and register the first account, which becomes admin. - In the admin panel, disable signup or require login if the instance is private.
- Add your SSH key in settings, then clone gists over port 2222 or create one with
git push. - Put Opengist behind HTTPS on a domain and set its external URL so clone links come out right.
Opengist ports
Open these in your firewall if you use one: 6157/tcp web interface, 2222/tcp Git over SSH.
Opengist FAQ
How do I create a gist from the command line?
Add Opengist's init address as a remote, for example git remote add origin http://<server IP>:6157/init, then git push -u origin master; the push creates a new gist.
Does it need a separate database?
No. SQLite is the default, and PostgreSQL or MySQL are options for larger instances.
Disclaimer. The Opengist project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.