A self-hosted URL shortener written in PHP that serves short links under your own domain, with a CLI and REST API.
yourselfhosted/slash
A self-hosted platform for creating, organizing and sharing human-readable short links like s/shortcut.
Open-source alternative to:Bitly
- Stars
- 3,184
- Forks
- 148
- Open issues
- 44
- Last commit
- 2 months ago
What is it?
Slash is an open source, self-hosted platform for managing the links you use most often. Instead of digging through emails and chat history for a URL, you create short, readable shortcuts such as s/shortcut that point to the full address. Links can be tagged to categorize them and shared with teammates or publicly.
The project ships as a Docker image that you run on your own server, storing data in a local directory. A browser extension for Chromium-based browsers and Firefox lets you type a shortcut in the address or search bar to jump straight to its target URL. Collections let you publish a set of shortcuts to anyone, regardless of browser.
Slash also records traffic and source analytics for each link, so you can see how shortcuts are being used.
Key features
- 01Create custom s/ short links for any URL.
- 02Share links publicly or only with teammates.
- 03View traffic and source analytics for each link.
- 04Jump to shortcuts from the browser search bar via a browser extension.
- 05Publish shortcut collections to anyone on any browser.
- 06Deploy self-hosted with a single Docker command.
Use cases
- Giving a team one memorable short name for internal wikis, dashboards and docs.
- Replacing scattered bookmarks with shared, tagged shortcuts.
- Publishing a public list of useful links through a Collection.
- Tracking which shortcuts get used most and from where.
Quick start
- 1
Run Slash with Docker
docker run -d --name slash -p 5231:5231 -v ~/.slash/:/var/opt/slash yourselfhosted/slash:latest - 2
Open the web interface and create your first shortcut
Things to know
- Requires self-hosting, so you must run and maintain your own server.
- Licensed under AGPL-3.0, a copyleft license that requires sharing modified source code when offered as a network service.
In collections
Topics
FAQ
- What is slash?
- A self-hosted platform for creating, organizing and sharing human-readable short links like s/shortcut. Slash is an open source, self-hosted platform for managing the links you use most often. Instead of digging through emails and chat history for a URL, you create short, readable shortcuts such as s/shortcut that point to the full address. Links can be tagged to categorize them and shared with teammates or publicly.
- Is slash free to use? What license does it have?
- slash is open source under the AGPL-3.0 license. Check the license terms before using it in commercial products.
- Is slash still maintained?
- Updated within 6 months. The last commit to slash was on Aug 24, 2026.
- What can I use slash for?
- Giving a team one memorable short name for internal wikis, dashboards and docs. Replacing scattered bookmarks with shared, tagged shortcuts. Publishing a public list of useful links through a Collection. Tracking which shortcuts get used most and from where.
- How do I install slash?
- Run Slash with Docker: docker run -d --name slash -p 5231:5231 -v ~/.slash/:/var/opt/slash yourselfhosted/slash:latest Open the web interface and create your first shortcut
- Where can I get slash?
- The source code and installation instructions are on GitHub: https://github.com/yourselfhosted/slash
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A self-hosted URL shortener written in PHP, letting you run your own short-link service with control over your data and stats.
Self-hostable URL shortener built with Laravel, Vue 3 and Inertia.js, with click analytics, custom domains and custom slugs.
A personal, single-user, self-hosted bookmarking and link-sharing service written in PHP that stores data without a database.
Kutt is a self-hostable URL shortener with custom domains, link statistics, an admin panel and a RESTful API.
A self-hosted file upload server built for ShareX, with sharing, galleries and short links.