Skip to main content
50% off all plans, limited time. Starting at $2.48/mo
ByteStash

ByteStash

ByteStash is a self-hosted web app for storing and organizing code snippets. Create, edit, tag, and filter snippets in one place, with the first registered account becoming the administrator. GPL-3.0 licensed with 2,500+ GitHub stars.

At a glance

2.5k

GitHub stars

4

Page views

230

Active installs

License GPL-3.0 Version Latest OS Ubuntu Server 24.04 LTS Min RAM 1 GB IP IPV4,IPV6

Active installs is sample data (staging preview); real metric wires in before launch.

Access

  • Open ByteStash in your browser: http://<SERVER_IP>:5000
  • Register the first account.
  • Use username admin to create the administrator account.
  • Only the admin username will receive administrator privileges.
  • Using a different username will create a regular user.
  • New account registration is disabled after the first account is created.

User Registration

Registration is disabled after the first setup.

To enable registration or modify account settings, edit:

/root/bytestash/.env

Update the required values, for example:

ALLOW_NEW_ACCOUNTS=true

Restart the service:

cd /root/bytestash
docker compose up -d

Important Files and Directories

  • Install Path: /root/bytestash
  • Compose File: /root/bytestash/docker-compose.yml
  • Environment File: /root/bytestash/.env
  • Snippets Storage: /var/lib/docker/volumes/bytestash_snippets

Service Management

View running containers:

docker compose -f /root/bytestash/docker-compose.yml ps

Restart ByteStash:

docker compose -f /root/bytestash/docker-compose.yml restart

View logs:

cd /root/bytestash && docker compose logs -f

Stop ByteStash:

docker compose -f /root/bytestash/docker-compose.yml stop

Start ByteStash:

docker compose -f /root/bytestash/docker-compose.yml start

Recreate ByteStash:

docker compose -f /root/bytestash/docker-compose.yml up -d

More in Self Hosted

Related apps.

Deploy ByteStash now. From $2.48/mo.