stable .localhost URLs for
every dev service.
A local reverse proxy that gives your projects memorable hostnames.
No more port numbers, no more localhost:3847. Just myapp.localhost.
Why localias?
Everything you need for painless local development routing.
Stable URLs
Every project gets a memorable .localhost hostname that never changes, even across reboots.
myapp.localhost:1355Auto Port Allocation
Ports are assigned automatically. No collisions, no manual configuration needed.
localias runFramework Detection
Detects Vite, Next.js, Nuxt, Angular, SvelteKit, and Astro. Injects the right flags automatically.
framework: viteDocker Compose
Wrap docker compose to auto-discover services, allocate ports, inject env vars, and register .localhost routes for every service.
localias compose -- docker compose upTLS / HTTPS
Generate and trust local certificates. Access services over HTTPS with zero effort.
localias proxy start --httpsGit Worktree Support
Branch names become URL prefixes. Review branches side-by-side in the browser.
feat-auth.myapp.localhostHot Reload Aware
Proxied services maintain hot reload and WebSocket connections transparently.
watching...Stale Cleanup
Orphaned routes are detected and removed automatically. No manual housekeeping.
stale route prunedCustom Aliases
Map any .localhost hostname to any service. Create shortcuts for frequently used routes.
localias alias setHosts File Sync
Optionally sync routes to /etc/hosts for system-wide resolution beyond the browser.
/etc/hosts syncedPlugin SDK
Extend framework support with a typed plugin interface. Build custom integrations.
@localias/plugin-sdkClean Architecture
Hexagonal design with zero coupling. Core has no Node.js imports. Everything is testable.
clean architectureHow It Works
Four steps from install to stable URLs.
Start the proxy
The proxy listens on a single port and routes all *.localhost traffic.
Run your app
Wrap your dev command with localias. It spawns the process and registers a route.
Auto-detect & register
The framework is detected, a port is allocated, and a .localhost route is registered.
Access your app
Open the stable URL in your browser. It never changes, even if the port does.
Routing Table
Works with Docker too
Wrap your Docker Compose command — localias discovers services, allocates ports, and injects env vars automatically.
Install localias
Global install required — localias runs a background proxy, so npx won't work.
npm i -g localias pnpm add -g localias yarn global add localias bun add -g localias brew install hammadxcm/localias/localias See It In Action
Real commands, real output.
Run a Dev Server
List Routes
Named Mode
Docker Compose Up
Custom Compose File
Injected Env Vars
Multi-Port Service
Named Project + Force
Trust Certificates
HTTPS Mode
Custom Alias
Get Route Info
Hosts Sync
Before & After
Stop memorizing port numbers.