Focused Tool · Single Binary · Self-Hosted

Self-hosted link shortener.
Shorten, track, own your data.

Shorten URLs, track clicks, manage redirects from your own domain. The Bitly alternative where your analytics data never leaves your server. No cloud dependency, no per-click pricing.

Running in under 60 seconds.

Install
curl -fsSL https://stockyard.dev/lasso/install.sh | sh
Run
DATA_DIR=./data lasso

  Redirects:  http://localhost:8890/{slug}
  Dashboard:  http://localhost:8890/ui
  API:        http://localhost:8890/api
Create your first short link
curl -s -X POST http://localhost:8890/api/links \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "https://example.com/very/long/page?utm_source=twitter",
    "slug": "demo"
  }'
# → Short link: http://localhost:8890/demo
# → Redirects to the original URL, click tracked

Three things people use this for.

Campaign link tracking
Create short links for each marketing channel. See which campaigns drive clicks without leaking your analytics to a third-party platform.
Internal link management
Share short, memorable links within your team. Track how often docs, dashboards, and resources are accessed.
Custom domain short links
Run Lasso on your own domain. go.yourcompany.com/demo looks professional and keeps all analytics on your infrastructure.

Teams outgrow spreadsheet-based captures tracking around the same time they realize SaaS alternatives want $15 to $50 per seat per month. Lasso is a single binary that handles the same job without the recurring bill.

Deploy Lasso as a systemd service, a Docker container, or a bare process. It reads PORT and DATA_DIR. The /api/health endpoint returns status for monitoring.

A consultant keeps Lasso running on a home server. Client captures stay on local disk, simplifying privacy in every contract.

Free to run. Pro when you need more.

Free
$0
forever, self-hosted
Best for: solo devs and small projects
  • 50 short links
  • Click tracking (count only)
  • Custom slugs
  • 301/302 redirect control
  • JSON API
  • Basic dashboard
  • 7-day click history
Get started →
Pro
$0.99
per month
Best for: teams and production use
  • Unlimited links
  • Full click analytics (referrer, geo, device)
  • Custom domain support
  • Bulk link creation
  • Link expiration and scheduling
  • QR code generation
  • UTM parameter builder
  • Click history (90 days)
  • CSV export

When Lasso is the right tool.

Lasso solves one problem: shortening URLs and tracking clicks on your own infrastructure. If you want Bitly-style link management without the analytics paywall, it does the job. Free covers 50 links with basic click counts. Pro ($0.99/mo) adds unlimited links, full analytics, custom domains, and QR codes.

Part of the Stockyard family.

Stockyard Platform
Lasso is a standalone tool from the Stockyard family. If you need the full LLM control plane with request tracing, cost control, prompt management, and model routing, or want all 150 tools in one bundle, check out Stockyard Complete or the Stockyard Platform.
Learn about Stockyard →

How Pro gets activated.

When your payment goes through, you'll receive an email at the address you used at checkout. The email contains your license key.

Set it as an environment variable before starting Lasso:

LASSO_LICENSE_KEY=stockyard_your_key_here lasso

  License:   Pro (your-email@example.com)
  Dashboard: http://localhost:8890/ui

That's it. Pro features unlock immediately on startup. No restart required, no account to log into, no phone-home check. The key is verified locally.

Didn't get the email?
Check your spam folder first. If it's not there after 5 minutes, email hello@stockyard.dev with your payment confirmation and we'll send the key manually.
What counts as a link?
Each shortened URL is one link. Clicks on that link are tracked separately and don't count toward the limit.
Does Lasso require Docker or a database?
No. Single Go binary with embedded SQLite. Run it anywhere you can run a binary.
Can I use my own domain?
Pro feature. Set CUSTOM_DOMAIN=go.example.com and point your DNS. Lasso handles the rest.
How does click tracking work?
Every redirect is logged with timestamp, referrer, user agent, and geo (IP-based). Free tier shows counts. Pro shows full analytics.
What's the license?
BSL 1.1. Free to self-host and use. Pro license removes limits and adds full analytics.

Try Lasso in 30 seconds.

Single binary. Free to start. $0.99/mo for unlimited.

Need the full stack? → Stockyard Complete