Your Links, Your Server.
Trelay is a developer-first, privacy-respecting URL shortener and link manager designed for self-hosting. All data stays on your server with no external dependencies or telemetry.
- Self-hosted: Your data never leaves your infrastructure
- Privacy-first: No tracking, no telemetry, IP anonymization by default
- Developer-friendly: Powerful CLI, REST API, and modern dashboard
- Single container: Deploy with one Docker command
- Open source: MIT licensed, free forever
- Custom slugs, password protection, expiration dates
- One-time links that self-destruct after first access
- Folder organization, trash with restore
- Click analytics with CSV/JSON export, IP anonymization
- Open Graph preview, QR code generation (download/clipboard)
- Cross-platform CLI with shell completion and table/JSON/CSV output
- REST API with JWT and API key auth; OpenAPI spec in
trelay/api/openapi.yaml
Content and copy are aligned with the trelay app. When updating the app (README, features, CLI, API), update this marketing site accordingly: Hero.svelte, Features.svelte, CliShowcase.svelte, Cta.svelte, and this README.
git clone https://github.com/trelay-dev/trelay.git && cd trelay
cp env.example .env # set API_KEY, JWT_SECRET
docker compose up -d
# Dashboard at http://localhost:8080- Repository: github.com/trelay-dev/trelay
- Documentation: github.com/trelay-dev/trelay#readme
MIT
