Hostinger Black Friday deal: VPS hosting up to 70% off
Ad

Try describing what you need:

ByteStash logo

ByteStash

★ 2.6k
GNU General Public License v3.0Open Source — No PaywallSingle Container — single container — minimal hosting footprintDockerNo external DB15 active committers (12mo)

About

ByteStash is a self-hosted web application for managing code snippets in a single secure place. It is aimed at users who want a simple personal or team snippet repository with the ability to create,...

Community Ratings

No ratings yet
ByteStash App

Features

  • create snippets
  • edit snippets
  • filter by language
  • filter by content
  • secure snippet storage
  • MCP endpoint for AI assistants
  • API documentation via Swagger UI

Details

Last Updated
Nov 28, 2026
Created
Oct 16, 2024
Install Methods
docker
Requirements
sqlite databaseNode.jsExpressReactTailwind CSS
Default Port
5000web UI and API
Authentication
oidc-ssolocal
API
REST
Runtime / Stack
Docker
Privacy & Independence
Cloud: OptionalOffline Capable
User Model
Multi-User
Deployment

Deployment: Docker Compose ✓Single Container — minimal hosting footprintsingle container

Run ByteStash yourself

Pick how much you want to manage.

4 more ways to host

Some links earn us a commission. netcup pays us one and is our preferred VPS host. Hostinger is a paid sponsor and is listed first.

Is this your project? Sponsor a listing

Run ByteStash with Docker Compose

Compose file from the ByteStash project repository.

1 service

no resource limits declared

needs persistent storage (1 volume)

docker-compose.yaml · @ 0f70994 · scanned Nov 3, 2026

services:
  server:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "5000:5000"
    environment:
      # e.g. write /bytestash for a domain such as my.domain/bytestash, leave blank in every other case
      - BASE_PATH=
      # optionally include additional allowed hosts for reverse proxies
      # e.g. localhost,my.domain.com,my.domain.net
      - ALLOWED_HOSTS=
      # Either provide JWT_SECRET directly or use JWT_SECRET_FILE for Docker secrets
      #- JWT_SECRET_FILE=/run/secrets/jwt
      - JWT_SECRET=your-secret
      # how long the token lasts, examples: "2 days", "10h", "7d", "1m", "60s"
      - TOKEN_EXPIRY=24h
      # is this bytestash instance open to new accounts being created?
      - ALLOW_NEW_ACCOUNTS=true
      # Should debug mode be enabled? Essentially enables logging, in most cases leave this as false
      - DEBUG=false
      # Should we use accounts at all? When enabled, it will be like starting a fresh account so export your snippets, no login required
      - DISABLE_ACCOUNTS=false
      # Should internal accounts be disabled?
      - DISABLE_INTERNAL_ACCOUNTS=false
      # Allow password changes (false by default)
      - ALLOW_PASSWORD_CHANGES=true

      # Optional: Enable OIDC for Single Sign On
      - OIDC_ENABLED=true
      # Optional: Display name for users signing in with SSO, will default to Single Sign-on
      - OIDC_DISPLAY_NAME=
      # Your OIDC issuer url, e.g. https://authentik.mydomain.com/application/o/bytestash/ for authentik
      - OIDC_ISSUER_URL=
      # Your OIDC client ID, you can find it in your app provider
      - OIDC_CLIENT_ID=
      # Your OIDC client secret, again, found in the app provider
      - OIDC_CLIENT_SECRET=
      # The OIDC scopes to request, e.g. "openid profile email groups"
      - OIDC_SCOPES=
      # Optional: Comma-separated list of usernames that should have admin privileges
      # e.g. "admin,jordan" - these users will have access to the admin panel
      - ADMIN_USERNAMES=admin
    volumes:
      - ./data:/data/snippets
# Uncomment to use docker secrets
#    secrets:
#      - jwt

#secrets:
#  jwt:
#    file: ./secrets/jwt.txt

This file may be out of date. Check the ByteStash documentation for current setup steps.

Track your self-hosted stack

Bookmark software to try, rate tools you've used, and keep your collection in one place.

Metadata extracted from README on Jun 25, 2026

Alternatives to ByteStash

Snipo logo

Snipo

76
Snipo is a self-hosted snippet manager for a single user, with web, terminal, IDE, and browser clients.
PastebinsNote Taking AppsSelf Hosting Solutions
Single Container
Details
Opengist logo

Opengist

3.4k
Opengist is a self-hosted Git-powered pastebin for storing, browsing, and managing code snippets through a web interface or standard Git commands.
PastebinsCopyleft LicenseSelf Hosting Solutions
Details
SnyPy logo

SnyPy

On-prem code snippet manager.
PastebinsSelf Hosting SolutionsKnowledge Management+1
Details
Pastefy logo

Pastefy

464
Pastefy is an open source paste-sharing service and alternative to Gists or Pastebin.
PastebinsPermissive LicenseSelf Hosting Solutions
Details
Chiyogami logo

Chiyogami

81
Chiyogami is a self-hostable pastebin with encryption, configurable expiration, private pastes, user accounts, and an API.
PastebinsPermissive LicenseSelf Hosting Solutions
Single Container
Details
Wastebin logo

Wastebin

893
Wastebin is a minimal pastebin for sharing text snippets, with syntax highlighting, encryption, and paste expiration controls.
PastebinsSelf Hosting SolutionsPermissive License
Details
PrivateBin logo

PrivateBin

8.8k
PrivateBin is a minimalist open source online pastebin that encrypts data in the browser so the server has zero knowledge of stored content.
PastebinsPermissive LicenseSelf Hosting Solutions
Details
snowshare logo

snowshare

113
SnowShare is a self-hosted file, link, and paste sharing app with user accounts, sharing controls, and a REST API.
Self Hosting SolutionsSimple File UploadsPastebins+1
2 ContainersTelemetry: Opt-Out
Details
bin logo

bin

708
A minimalist paste bin for quickly sending text snippets to others.
PastebinsPermissive LicenseSelf Hosting Solutions
Details
dpaste logo

dpaste

641
dpaste is a pastebin application built with Python and Django.
PastebinsSelf Hosting SolutionsPermissive License
Details
pacebin logo

pacebin

Super-minimal pastebin and file upload service focusing on small executable size, portability, and ease of configuration.
PastebinsSimple File UploadsCopyleft License+2
Details
paaster logo

paaster

570
Paaster.io is a privacy-focused pastebin application with end-to-end encryption, paste history, and sharing features.
PastebinsFile & Object StorageSelf Hosting Solutions+1
Cloud Required
Details

Related Software

Aider logo

Aider

50.3k
AI pair programming tool for working with large language models directly in the terminal.
Artificial IntelligenceAI Coding AssistantPermissive License+2
Details
machtiani logo

machtiani

192
Machtiani (mct) is a terminal-based local code chat service for working with large real codebases and syncing project history for context-aware answers.
Artificial IntelligenceAI Coding AssistantPermissive License+4
Details
Wiznote logo

Wiznote

Manage your knowledge in documents with folders, markdown, full text search and webpage collection support.
Knowledge ManagementNote Taking AppsDocument Management+1
Details
CloudCLI logo

CloudCLI

14.8k
CloudCLI is a desktop- and mobile-friendly interface for managing and interacting with Claude Code, Cursor CLI, and Codex sessions locally or remotely.
AI Coding AssistantAI InterfacesMobile terminals
Open Core
Details
Ziit logo

Ziit

262
Ziit is a self-hostable, open-source alternative to WakaTime for tracking coding activity and viewing developer productivity statistics.
Time TrackingCopyleft LicenseAnalytics Tools+2
Details
Outline logo

Outline

41.4k
Outline is a fast, collaborative knowledge base for teams built with React and Node.js.
WikisFOSS with IssuesOpen-Washing Risk+3
2 ContainersSource AvailableFOSS with Issues
Details
Shhh logo

Shhh

420
A tiny Flask app for creating encrypted secrets and sharing them securely via temporary links.
Custom CommunicationsPermissive LicenseSecret Management+2
Details