Introduction
lokl is a CLI/TUI tool that allows developers to define their entire local development environment in a single configuration file.
The Problem
Section titled “The Problem”Setting up a local development environment is painful:
- Time-consuming — New developers spend hours/days configuring their setup
- Inconsistent — “Works on my machine” syndrome
- Complex HTTPS — OAuth, cookies, CORS often require HTTPS with custom domains
- Scattered config — Docker Compose, npm scripts, env files, nginx configs everywhere
The Solution
Section titled “The Solution”lokl provides:
- Single config file — All services defined in
lokl.yaml - Automatic HTTPS — Certificates generated and trusted for custom domains
- Process orchestration — Health checks, dependencies, restart policies
- Interactive TUI — Visual management of all services
Example
Section titled “Example”name: my-project
proxy: domain: myproject.dev
services: frontend: command: pnpm dev port: 5173 subdomain: app
api: command: pnpm dev port: 3000 subdomain: apiThen run:
lokl upAccess your services at:
https://app.myproject.dev→ frontendhttps://api.myproject.dev→ api