---
title: "Opengist Git-powered pastebin on a VPS · CloudSat"
description: "Self-host Opengist on a CloudSat VPS: a Git-powered pastebin with syntax highlighting, private and unlisted gists, embeds, and clone and push over SSH."
url: https://cloudsat.io/apps/deploy-opengist
updated: 2026-11-18T15:52:35Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Self-hosted](https://cloudsat.io/apps/category/self-hosted-essentials)

# Opengist on a VPS

Opengist is an open-source pastebin where every snippet is a Git repository: share code in the browser, or clone, edit and push gists from the command line.

[Deploy Opengist](https://dash.cloudsat.io/console/deploy?image=app%3Aopengist&plan=cloud-1g) [All apps](https://cloudsat.io/apps)

## 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

1. Open `http://<server IP>:6157` after the server reaches **Running** and register the first account, which becomes admin.
2. In the admin panel, disable signup or require login if the instance is private.
3. Add your SSH key in settings, then clone gists over port 2222 or create one with `git push`.
4. 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.

## Apps like Opengist

[All apps in Self-hosted](https://cloudsat.io/apps/category/self-hosted-essentials)

- [MicroBin](https://cloudsat.io/apps/deploy-microbin): Self-hosted MicroBin is a small, self-contained pastebin written in Rust: share text, files and redirect links, with expiry, burn-after-reading and encryption.
- [ByteStash](https://cloudsat.io/apps/deploy-bytestash): Self-hosted ByteStash is a self-hosted code snippet manager: save, filter and share snippets in a clean web UI, with single sign-on and an MCP endpoint for AI assistants.
- [Gitea](https://cloudsat.io/apps/deploy-gitea): Self-hosted Gitea is a painless self-hosted Git service: code review, issue tracking, a package registry and Actions CI, packed into one Go binary that suits small servers.
- [Forgejo](https://cloudsat.io/apps/deploy-forgejo): Development Forgejo is a lightweight, community-governed Git forge with repositories, pull requests, issues, packages and built-in CI. Host your code on a server you run.
- [9Router](https://cloudsat.io/apps/deploy-9router): Self-hosted 9Router is a self-hosted AI request router: coding tools talk to one endpoint and it translates formats, tracks quotas and falls back across providers.
- [AFFiNE](https://cloudsat.io/apps/deploy-affine): Self-hosted AFFiNE is an open-source workspace that merges docs, an edgeless whiteboard and databases, with real-time collaboration on a server you run.
