# PrivateBin / Opengist

Pastes you host. PrivateBin is Zlib/libpng (GitHub license Other); Opengist is AGPL-3.0 — Pastebin without the hosted paste seat.

**Replaces:** Pastebin / GitHub Gists

**Tier:** Easy

## Problem

Pastebin is a hosted paste dump. GitHub Gists is a hosted snippet next to a git host. You wanted a snippet and an expiry on a box you run. PrivateBin is Zlib/libpng (PrivateBin/PrivateBin; GitHub license field is Other; last push 24 Oct 2026) — the browser encrypts, the server stores ciphertext. Opengist is AGPL-3.0 (thomiceli/opengist; last push 21 Oct 2026) if the job is a GitHub Gist you host. Microbin is BSD-3-Clause (szabodanika/microbin; last push 8 Sep 2026) if you want that Rust dump. This is not Pastebin Pro's every syntax SKU. CryptPad is an encrypted office pad, not a paste link. A git host stays on /replace/github.

## Stack

- [PrivateBin](https://privatebin.info/) — Zlib/libpng zero-knowledge paste (GitHub license Other) — the published Pastebin path
- [Opengist](https://opengist.io) — AGPL-3.0 Git-backed gist if the job is Gist, not a paste
- [Microbin](https://microbin.eu) — BSD-3-Clause Rust paste dump if that shape is the job

## Estimated SaaS cost saved

| You stop paying | Typical / year | Self-host instead |
|---|---:|---|
| Pastebin / hosted paste (small team) | $1,200 | PrivateBin, Opengist, or Microbin |

**About $1,200 / year** on a small team, before you count lock-in.

## Deploy on Railway

Placeholder: PrivateBin (PHP + a data path) or Opengist plus a volume for gists. Bind HTTP to 0.0.0.0:$PORT. No one-click template in this repo yet — Start on Railway.

[Start on Railway](https://c17.io/go/railway/privatebin-paste?from=%2Fstacks%2Fprivatebin-paste.md)

[Forgejo if this is a git host, not a paste](https://c17.io/stacks/forgejo-git)

## AGENT_PROMPT

```
Replace Pastebin with PrivateBin (preferred zero-knowledge paste) or Opengist (Gist-shaped).

- Official image. Persist the data path. Create one paste. Do not claim Pastebin Pro syntax packs.
- Microbin if you want that Rust dump. A git host stays on /stacks/forgejo-git.
- Write AGENT_PROMPT.md.
```

## FAQ

### PrivateBin or Opengist?

PrivateBin if you want a zero-knowledge paste (the published Pastebin path). Opengist if you want a GitHub Gist you host — /replace/github-gists and /compare/privatebin-vs-opengist.

### Is the PrivateBin license OSI?

The project documents Zlib/libpng. GitHub's license field is Other. The published path is still that paste.

### Are these free?

PrivateBin is Zlib/libpng. Opengist is AGPL-3.0. Microbin is BSD-3-Clause. You pay hosting. Template users never pay c17.

Source: https://c17.io/stacks/privatebin-paste
