OpenSource-Hub
O

Opengist

SHA-256
3.1k stars·Developer Tools·SHA-256 checksum verified

Opengist is a self-hosted Pastebin powered by Git. All snippets are stored in a Git repository and can be read/modified via standard Git commands or the web interface.

Smart Download

Download Download Version

v1.12.2 · 29.5 MB

Self-hosted Pastebin backed by Git – clone, push, and manage snippets like code repos.

Core Features

  • Public, unlisted, or private snippets
  • Git push/pull/clone via HTTP or SSH
  • Syntax highlighting, Markdown & CSV support
  • Search code across all snippets
  • Add topics to snippets

What It Can't Do

  • SSH server listens on port 2222 by default – ensure no port conflict on your host,Git version 2.28+ is required, otherwise some Git operations may fail,All data resides in the Git repository – remember to back it up regularly,First run requires creating an admin account via the web UI

Use Cases

  • Share code snippets with colleagues while keeping full Git history
  • Build an internal code snippet library for your team
  • Self-host a version-controlled clipboard for syncing code across devices
  • Embed highlighted code snippets into blogs or documentation

Detailed Introduction

Opengist is a self-hosted pastebin service that uses Git as its storage backend. All snippets are stored in a Git repository, allowing you to read, modify, and manage them via standard Git commands (HTTP or SSH) or through a clean web interface. It supports public, unlisted, and private snippets, syntax highlighting, Markdown and CSV rendering, code search, snippet embedding, revision history, likes, forks, and OAuth2 login with GitHub, GitLab, Gitea, and OpenID Connect. It can be deployed via Docker or binary, and is designed to be a privacy-respecting alternative to GitHub Gist.

Troubleshooting & FAQ (1)

Troubleshooting
How to fix 'SSH: Could not setup host key' error in Opengist v1.11.1?

This is a known bug. As a temporary workaround, set ssh.git-enabled: false in your config file to disable the built-in SSH server and use HTTP for git operations. A fix is pending in an upcoming PR.

GitHub Issue #700

Tags

pastebingistgitself-hostedsnippetscode-sharing

Getting Started

1

Download installer

Click the button above to download the installer for your system

2

Install the software

Double-click the downloaded installer and follow the prompts

3

Docker: Create a docker-compose.yml with the example content, run 'docker compose up -d', open http://localhost:6157

4

Binary: Download the archive for your OS from Releases, extract it, and run './opengist', then visit http://localhost:6157

5

From source: Install Git (2.28+), Go (1.23+), Node.js (16+), Make, clone the repo, run 'make && ./opengist'

Install Guide
  1. Docker: Create a docker-compose.yml with the example content, run 'docker compose up -d', open http://localhost:6157
  2. Binary: Download the archive for your OS from Releases, extract it, and run './opengist', then visit http://localhost:6157
  3. From source: Install Git (2.28+), Go (1.23+), Node.js (16+), Make, clone the repo, run 'make && ./opengist'
File Integrity

SHA-256 checksum verified

Checksum extracted from GitHub official Release page

SHA256 Checksum

c1b6f1076e90122e1a8869334d5307de8e8fceb4b13ccde9f1ec7e59c25ab1c2

This checksum is extracted from the GitHub Release page. Verify file integrity after download.

All SHA-256 checksums on this platform are extracted from the project's official GitHub Release page, without any modification. You can independently verify them on the GitHub Releases page.

Open Source Transparency

View GitHub Source
Environment Guide

Uninstall Info

Stop the container/process and delete the data directory (~/.opengist or Docker volume) to fully remove.

No Extra Dependencies

Ready to use after download. No additional runtime required.

Project Info
LicenseAGPL-3.0
Last Updated2026-06-27 13:15:25
GitHub RepositoryOfficial Website

Having issues? Check the FAQ below

1 FAQ

Similar Projects