ByteStash
Create your ByteStash account on Cottage, save and share code snippets, let teammates sign up and move your snippets in or out.
Updated November 24, 2026
On this page
ByteStash is a place to keep code snippets with syntax highlighting, tags and categories, so you can find them again by searching. It suits developers who want their own searchable collection instead of scattered notes and gists.
Getting started
Until you've created the first account, only you can open the app. Whoever visits first creates that account.
- Create your account. Open the app from its page in Cottage, choose Create account, and pick a username and password. Write the password down somewhere safe.
- Make the app reachable. Back on the app's page in Cottage, choose Open it to everyone so people you share the address with can reach it. After your account exists, nobody else can sign up unless you allow it (step 5).
- Add your first snippet. Choose New snippet, give it a title, pick the language and paste your code. Add tags and categories so search can find it later. A snippet can hold several files.
- Adjust how it looks. Open Settings in ByteStash to change the theme, compact view, code previews, line numbers and word wrap. You can also turn on Include Code in Search so search looks inside the code and not just titles.
- Let teammates sign up (optional). In App settings on the app's page in Cottage, turn on Allow anyone to sign up, ask people to choose Create account, then turn it off again. While it's on, anyone who finds your address can register.
- Share a snippet. Open a snippet, choose the share button and then Create Share Link. You can set an expiry such as
1h,2dor30m, and turn on Require authentication if only signed-in users should see it. Copy the link from Active Share Links. - Use the API (optional). In ByteStash, create an API key under Settings → API Keys. The app's API documentation is at
/api-docson your app's address, and its MCP endpoint for AI assistants is/mcp, using the same key. See the ByteStash README.
ByteStash has no email settings on Cottage, so it doesn't send mail.
Frequently asked questions
How do I bring snippets in or take them out?
Open Settings in ByteStash. Import Snippets loads snippets from a file, and Export Snippets downloads everything you've saved as a JSON file. You can also export as Markdown.
Can I share a snippet with someone who has no account?
Yes. Create a share link and leave Require authentication off, so the link opens for anyone who has it. With it on, the viewer must be signed in. Delete a link from Active Share Links to stop sharing.
Can anyone create an account?
Only the first account is always allowed. After that, Allow anyone to sign up in App settings on the app's page in Cottage controls it, and it's off by default.
Where are my snippets kept?
On your app's own disk, which Cottage backs up every night. It keeps 14 days of backups and lets you download one from Backups on the app's page in Cottage (how).
How long do I stay signed in?
Sign-ins last 7 days, then you sign in again.
Is ByteStash updated automatically?
Yes. Cottage installs new versions for you, and Updates on the app's page in Cottage shows what changed.
Can I use my own domain?
Yes. See Custom domains. If you change address, sign in again on the new one.
Troubleshooting
I can't create an account
If someone already created the first account, sign-ups are closed. Turn on Allow anyone to sign up in App settings on the app's page in Cottage, create the account, then turn it off.
I forgot my password
ByteStash on Cottage has no email reset. If you're still signed in, change your password from within the app. If you're locked out, contact support at support@cottage.host.
A share link says it has expired or can't be found
Links made with an expiry stop working when it passes, and a deleted link is gone. Create a new link from the snippet's share menu. A link set to Require authentication shows only to signed-in users, so recipients without an account should get a link without it.
Import fails for some snippets
ByteStash reports how many snippets imported and how many failed. Add the failed ones by hand with New snippet, or check the file is a snippet export in JSON format.
The app is slow or keeps restarting
Large collections need more room. Use Change size on the app's page in Cottage to add memory or disk, and look at the Technical log for errors.
I can't find the admin panel
ByteStash's admin panel is only available to an account that has been granted admin rights, and that can't be done from the app's own pages. If you need it, contact support.
Still stuck?
Email support@cottage.host. A person reads every message. If something seems down, check Cottage's status page.