Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
Self-host Chhoto URL
updated Nov 2026deployed by usprices checked · Jul 2026Install verified on Ubuntu 26.04 · Nov 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →
A very small URL shortener in Rust with SQLite storage: random or custom short links that redirect straight away, optional expiry, edit and disable, QR codes, notes and a hit counter that records nothing but the hit. One admin password (or OIDC sign-in), an API key for scripting and a public mode where anyone may add links. The scratch image is under 6 MB compressed and the README says it uses under 15 MB of RAM.
Pick Chhoto URL when you want a personal short-link service with as little to run as possible: it is a Rust server on an SQLite database whose scratch image is under 6 MB compressed, and the README says it uses under 15 MB of RAM. Links redirect immediately with no interstitial page; you can set custom slugs, expiry, notes, QR codes, and edit or disable a link later. Hits are counted without recording anything else. Sign-in is one admin password or OIDC, with an API key for the command line, and a public mode lets anyone add links. It is MIT-licensed. Our snippet follows the repository's `deploy/compose.yaml` using the scratch image pinned to 7.10.8 (released 2026-11-06) instead of its `alpine` tag, a generated password and the database on a named volume with WAL mode on, as the README recommends. In the catalog, Kutt and Shlink are the fuller services with statistics and APIs, Shlink with a separate web client, and YOURLS has a plugin system; the Chhoto README lists user management among the features it will not implement.
What you need
Any VPS with at least 32 MB of RAM
A domain you control — most self-hosted setups need HTTPS in front of them
Chhoto URL's README and installation page flag these before you rely on it:
non-negotiableAuthentication is a single shared password, which the README says is not encrypted in transport. Put a TLS reverse proxy such as Caddy in front. With CHHOTO_EXIT_ON_NO_AUTH set to True, as in our snippet, the server exits if neither a password nor OIDC is configured instead of running open.
non-negotiableThe README recommends hashing the password and API key with Argon2 (CHHOTO_HASH_ALGORITHM); our snippet keeps the plain password for simplicity. In a Compose file, escape $ in a hash as $$.
non-negotiableEverything is one SQLite file in /data, which our chhoto_data volume holds. The README warns that a database can be mangled by an update, so keep your own backups and a minor-version tag. The app also writes init backups and daily backups at 3-4 am into a backups folder beside the database, keeping up to 3 and 7.
non-negotiableWith the default adjective-name slugs, the README says generating new links starts to fail once you have more than a few thousand. For larger use, set CHHOTO_SLUG_STYLE to UID with a CHHOTO_SLUG_LENGTH of 16 or more.
non-negotiableBy default only https, http, ftp and magnet long links are accepted; add others with CHHOTO_EXTRA_PROTOCOLS. Set CHHOTO_SITE_URL to your public address so copied links and QR codes use it. The README calls the project complete rather than dead: few new features, bug and security fixes.
Chhoto URL used 3 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.9.3 (first boot, measured Nov 2026). We list a minimum of 32 MB.
Is the Chhoto URL install snippet verified?
The Chhoto URL install snippet is marked verified on Ubuntu 26.04 (Nov 2026).