---
title: "ByteStash code snippet manager on a VPS · CloudSat"
description: "Self-host ByteStash on a CloudSat VPS: save, search and share code snippets in a clean web UI, with SQLite or PostgreSQL, OIDC login and an MCP endpoint."
url: https://cloudsat.io/apps/deploy-bytestash
updated: 2026-11-18T15:52:34Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

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

# ByteStash on a VPS

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.

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

## About ByteStash

ByteStash is a GPL-3.0 snippet store written in React and Node.js. Save code, filter it by language or content, share links, and keep everything in SQLite or PostgreSQL.

On a CloudSat VPS your snippets live in one place reachable from every machine, and an MCP endpoint lets AI assistants search and manage them.

After deploy ByteStash answers on port 5000. New accounts are never admins: you sign up, then grant yourself admin rights with a script on the server.

## What you get with ByteStash

- Create, edit and filter snippets by language or content
- Share links for individual snippets
- SQLite by default, PostgreSQL optional
- OpenID Connect single sign-on
- MCP endpoint for AI assistants

## ByteStash use cases

- Keep shell one-liners and configs in one searchable place
- Pass snippets to teammates through links
- Let an AI assistant pull your saved snippets

## After you deploy ByteStash

1. Sign up at `http://<server IP>:5000` as soon as the console shows **Running**.
2. Over SSH as root, make yourself admin by running `node src/scripts/admin.js grant <username>` inside the ByteStash container.
3. Set `ALLOW_NEW_ACCOUNTS` to `false` once your accounts exist.
4. Serve ByteStash on a domain with HTTPS before sharing links publicly.

## ByteStash ports

Open these in your firewall if you use one: `5000/tcp ByteStash web app`.

## ByteStash FAQ

### How do I become a ByteStash admin?

New accounts are never admins. Sign up first, then run `node src/scripts/admin.js grant <username>` inside the container.

### Can I close registrations?

Yes. Set `ALLOW_NEW_ACCOUNTS` to `false` once everyone who needs an account has one.

**Disclaimer.** The ByteStash 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 ByteStash

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

- [Opengist](https://cloudsat.io/apps/deploy-opengist): Self-hosted 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.
- [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.
- [IT-Tools](https://cloudsat.io/apps/deploy-it-tools): Self-hosted IT-Tools bundles dozens of handy developer utilities, from UUID and hash generators to JWT parsing, subnet math and QR codes, in one fast web app you host.
- [linkding](https://cloudsat.io/apps/deploy-linkding): Self-hosted linkding is a minimal self-hosted bookmark manager with tags, Markdown notes, page archiving, browser extensions and a REST API.
- [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.
