About lokei
lokei is a workflow skill for using the lokei CLI to serve local projects over named HTTPS domains, create public tunnels, manage local environments, and diagnose networking issues. It emphasizes checking installation and setup health and getting approval before one-time setup or uninstall actions.
Key features
- 01Check CLI availability and setup health
- 02Run apps on named HTTPS domains
- 03Create public tunnels when requested
- 04Orchestrate Docker and multi-service projects
- 05Diagnose proxy and networking issues
Use cases
- 01Expose a local app over HTTPS for development
- 02Share a local service through a public tunnel
- 03Start a Docker Compose or multi-service environment
- 04Investigate local proxy or DNS setup failures
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ ulpi-io/ skills --skill lokeiAfter installing, type/lokeiin Claude Code to confirm it loaded.
Bundled filesreferences/command-reference.md
Details
From the project READMENon-negotiable rules:
- Verify
lokeiavailability before relying on it. - Do not auto-run one-time setup or uninstall flows without approval.
- Resolve whether the user wants local-only HTTPS, a public tunnel, or multi-service orchestration.
- Prefer the simplest command that matches the job.
- Report the resulting URLs and diagnostic blockers clearly.
lokei
Inputs
$request: The local HTTPS, share, Docker, service, or diagnostics task
Goal
Use lokei to:
- run a local project behind a named HTTPS
.testdomain - expose a local service through a tunnel when requested
- orchestrate Docker or multi-service local environments
- diagnose and explain local proxy/setup problems
Step 0: Verify installation and setup health
Check:
lokei --versionlokei doctor
If lokei is missing, tell the user:
lokeiis not installed. Install with:npm i -g lokei && lokei setup
lokei setupruns once -- generates a local CA, trusts it in the OS keychain, configures DNS for.test, and sets up port forwarding.
Do not install or run setup automatically. Wait for user confirmation.
If setup is unhealthy:
- explain the failing component
- common fixes: CA not trusted or DNS resolver missing -> re-run
lokei setup - ask before suggesting or running one-time setup actions
Success criteria: lokei is available and its setup state is understood.
Step 1: Resolve the requested mode
Determine whether the user wants:
lokei runfor one local applokei shareorlokei run --exposefor public accesslokei docker upfor Docker Composelokei upfor.test.yamlorchestrationlokei routes ls,inspect, orlogsfor diagnosis
Also resolve whether the project name, command, or port needs to be overridden.
Success criteria: The correct lokei mode is chosen before execution.
Step 2: Run the smallest correct command
Prefer:
lokei runfor normal local developmentlokei share --port <port>for ad-hoc sharinglokei run --exposewhen the same session needs local HTTPS and a public tunnellokei docker uporlokei uponly when the project structure actually calls for them
Avoid service-install and uninstall flows unless the user explicitly asked for those operations.
Success criteria: The executed command matches the requested workflow without overreaching.
Step 3: Report URLs and health clearly
After execution, report:
- local
.testURL - public tunnel URL if one was created
- project name and route details if relevant
- any doctor/setup blockers if the command failed
Success criteria: The user knows exactly where the app is reachable and what failed if it is not.
Guardrails
- Do not auto-run
lokei setup,service install, oruninstallwithout approval. - Do not guess that the user wants a public tunnel when local-only HTTPS is enough.
- Do not hide diagnostics behind generic "setup failed" summaries.
- Do not add
disable-model-invocation; this is a normal environment workflow skill.
When To Load References
references/command-reference.mdUse for the full command catalog, framework detection table, architecture details,.test.yamlexamples, git worktree behavior, and scenario quick reference.
Output Contract
Report:
- mode chosen
- command run
- resulting local or public URLs
- any detected setup or networking blocker
- next action if user approval is required