Lua.sh is a self-hosted alternative to Bitly and TinyURL that combines branded short links with permanent, unmetered click analytics and an MCP server.
Lua.sh is an open-source URL shortener and link analytics platform built with Laravel and Vue 3. It turns short links into telemetry endpoints that record geographic, device, and referrer data without expiring historic events. All capabilities are exposed via a REST API and a Model Context Protocol server, enabling automated link generation across developer toolchains.
Bitly structures programmatic access around monthly tiers, enforcing strict rate limits on entry plans and charging for volume API usage. Lua.sh exposes its entire operational surface over a bearer-token REST API with no volume fees. Alongside standard HTTP endpoints, an integrated Model Context Protocol (MCP) server allows AI assistants to shorten links, assign campaign tags, and inspect click data directly from chat-driven workflows.
Data ownership and domain setup mark another key distinction. Bitly retains click records on third-party servers under rolling retention windows that drop older analytics. Lua.sh routes branded domains through standard CNAME records into isolated workspaces, letting teams add custom domains without per-seat fees. Self-hosting on MySQL or PostgreSQL keeps telemetry inside private infrastructure. In return, operators manage their own PHP runtime and SSL certificates rather than relying on managed edge routing.
Can Lua.sh be self-hosted on private servers? Yes. It runs on Linux using Docker or standard PHP with MySQL or PostgreSQL, keeping all click records within private network boundaries.
Lua.sh vs Bitly — which should a team pick? Bitly suits teams needing turnkey global edge delivery, recognized bit.ly vanity links, or built-in social bio pages. Lua.sh fits teams needing unmetered custom domains, complete data ownership, permanent analytics history, and direct REST or MCP access without tier limits.
Is Lua.sh free for commercial use? Yes. The self-hosted version has no per-link fees or feature paywalls; costs are limited to the servers and domains you maintain.
For agencies and small teams seeking full custody of their short links and campaign metrics, Lua.sh delivers a practical self-hosted alternative to metered commercial platforms. The software remains actively maintained with commits pushed through September 2026 under the AGPL-3.0 copyleft terms, meaning any distributed modifications must remain open source. If you require turnkey link-in-bio pages or managed global edge routing, Bitly is simpler to operate, but teams comfortable managing a standard PHP stack gain unmetered domains and complete data ownership.
Lint, codegen, breaking-change checks and dependency management in one Git-native CLI. Open source, no registry lock-in.
Show that Lua.sh is listed as an open-source alternative. Paste into your README: