Slim alternative

lokei vs Slim

Slim and lokei both combine named local HTTPS with public sharing. The practical difference is the starting point: Slim maps a name to a port, while lokei begins with the project directory and owns the process lifecycle around that route.

Last verified: July 16, 2026

npm install -g @ulpi/lokei && lokei setup
See the feature comparison

At a glance

These are the differences that change the daily command you run.

Scroll horizontally to see every column.

At a glance
CapabilitylokeiSlimOfficial evidence
Primary inputThe current project directory and its detected or declared development lifecycleA route name and local port, or services declared in .slim.yaml
Default local URLhttps://project.test with trusted TLS and local DNShttps://name.test with trusted TLS and a hosts-file mapping
Starting the applicationDetects and starts the framework, script, Compose stack, Sail project, or configured servicesWaits for the explicitly mapped upstream port; --wait can wait for that upstream to become ready
Project configurationlokei.yaml models commands, HTTP services, dependencies, workers, routes, health checks, and sharing context.slim.yaml models domains, ports, path routes, custom TLDs, and logging
Public sharinglokei share resolves and starts the active project, can select services, and supports requested subdomains, passwords, access tokens, TTLs, and custom domains by planslim share maps one explicit port and supports requested subdomains, passwords, TTL expiry, and custom domains
Request debuggingCaptures request and response bodies with filtering, editable replay, retention, and HAR exportProvides live access logs with full, minimal, or disabled log modes

Feature-by-feature comparison

Both products solve local HTTPS and sharing. This table separates explicit port routing from project-aware lifecycle management.

01

Local HTTPS and routing

Scroll horizontally to see every column.

Local HTTPS and routing
CapabilitylokeiSlimOfficial evidence
Certificate setupOne-time setup installs a local CA; certificates are issued for active routesFirst run creates a local CA, trusts it, and issues per-domain certificates
Custom local TLDsSupports a configurable machine-wide local TLD, with .test as the defaultAccepts .test, .loc, .dev, or another TLD per mapped domain
Path routing and service domainsCan route services by subdomain and declare path routes inside a project modelMaps a domain to a main port and can route paths such as /api to other ports
02

Application lifecycle

Scroll horizontally to see every column.

Application lifecycle
CapabilitylokeiSlimOfficial evidence
Framework awarenessDetects 30+ stacks and injects the host, port, and common application URL variablesDocuments HMR compatibility for tools such as Next.js and Vite but routes the supplied port
Monorepos and dependenciesModels several public services, private processes, dependencies, and health checks as one projectRegisters every service mapping listed in .slim.yaml and tears those mappings down together; upstream commands remain external
Docker Compose and Laravel SailDiscovers and starts Compose or Sail, assigns ports, and exposes only shareable HTTP servicesCan route any reachable container port, but Compose and Sail discovery are not documented as built-in lifecycle features
03

Sharing and operations

Scroll horizontally to see every column.

Sharing and operations
CapabilitylokeiSlimOfficial evidence
Zero-argument sharingRun lokei share inside the configured project; no route or port is required for a single-service appThe documented share command requires --port and optionally accepts a subdomain, password, or TTL
Share lifecycleTracks a project share session with status, service additions, targeted or all-service stop commands, password or token protection, and TTL controlCreates a public mapping for the selected port with subdomain, password, TTL, and custom-domain controls
Diagnostics and healthProvides machine diagnostics plus project and service health informationProvides slim doctor, upstream health status in slim list, and optional readiness waiting

Where each product has a real edge

This is the closest overall comparison. The real differences are distribution, per-route control, project lifecycle, and inspection—not share controls both products already provide.

01

Where Slim has a real edge

A source-available, self-contained Go tool for direct network mappings.

  • Install one compiled Go binary without requiring Node.js on the machine.
  • Choose a different local TLD for each route instead of one active machine-wide TLD.
  • Add ad-hoc path-to-port mappings directly on slim start without first declaring a project service model.
  • Inspect and build the public Go source under Slim's published PolyForm Shield license.
02

Where lokei has a real edge

A project-aware workflow before and after the reverse proxy.

  • Run from a project folder without first finding its command, route name, or port.
  • Start mixed host, Compose, Sail, worker, and monorepo service lifecycles.
  • Inspect bodies, filter traffic, replay modified requests, and export HAR files.
  • Share one service or a dependency-aware project session using the same project identity.

Which one fits your workflow?

Choose the smallest ownership model that removes the work you actually repeat.

01

Choose Slim if you...

  • Know the upstream ports and want explicit domain mappings.
  • Need a different custom TLD per route or ad-hoc path-to-port routing.
  • Want a compiled binary without a Node.js runtime dependency.
  • Prefer public source and a concise port-centric project file over application lifecycle automation.
02

Choose lokei if you...

  • Want the project directory to be the only required input.
  • Need the tool to start frameworks, Compose, Sail, or dependent services.
  • Need a full local request inspector rather than access logs alone.
  • Want public sharing to preserve project and service context.

Try lokei beside an existing Slim project

You can keep .slim.yaml while evaluating lokei, but both default proxies expect to own ports 80 and 443.

  1. 01Run slim down and stop the Slim daemon so the standard HTTP and HTTPS ports are free.
  2. 02Install @ulpi/lokei globally, run lokei setup once, and verify the machine with lokei doctor.
  3. 03From the application directory, run lokei run and confirm the assigned .test URL.
  4. 04Exercise lokei inspect and lokei share before deciding which project configuration to keep.

Do not run both products on their default proxy ports at the same time. The project source itself does not need to be rewritten for this evaluation.

lokei vs Slim FAQ

Direct answers about two products with unusually broad feature overlap.

Is Slim the closest alternative to lokei?

It is the closest CLI alternative in overall feature shape because it combines named local HTTPS, project configuration, HMR support, diagnostics, logs, and public sharing. lokei goes further into application discovery and lifecycle; Slim stays closer to explicit domain and port mappings.

Do both tools provide trusted .test domains?

Yes. Both install a local certificate authority and serve named .test domains over HTTPS. Slim maps names through the hosts file and also accepts other TLDs per route; lokei uses local DNS and one active machine-wide development TLD.

Which tool starts my Next.js or Vite application?

lokei detects and starts the project command. Slim documents HMR compatibility and can wait for the upstream, but its route command maps the name to a port rather than discovering and launching the application command.

Can both products share a local app publicly?

Yes. Both support requested public subdomains, password protection, TTL controls, and custom-domain options. The difference is context: Slim shares an explicit port, while lokei resolves the active project or selected services, starts a stopped project, and manages them as one share session.

Which product has the stronger request inspector?

lokei. Slim documents live access logs and log modes. lokei captures request and response bodies and adds filtering, editable replay, retention controls, and HAR export.

Can Slim handle a monorepo?

Yes, when services and ports are declared in .slim.yaml. lokei additionally models commands, dependencies, private workers, health checks, Docker Compose, Laravel Sail, and selective multi-service sharing.

Can I install both tools?

Yes, but do not run both default HTTPS proxies simultaneously because both need port 443. Stop one daemon before starting the other.

Sources and methodology

Slim claims use its public product reference and official source repository. lokei claims use the public website and published npm package documentation.

Verified July 16, 2026. Product behavior can change. Slim is a trademark of its respective owner. lokei is not affiliated with or endorsed by Slim. Where Slim's public reference does not document a lifecycle feature, this page says so instead of claiming the feature cannot exist.

$ lokei run

Run the project, not the port mapping

Install lokei, complete the one-time machine setup, then run it from the project directory.

npm install -g @ulpi/lokei && lokei setup