<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/iplbny8oe" -->

---
title: GitHub - vercel-labs/portless: Replace port numbers with...
description: Portless is an npm tool that replaces numeric localhost port numbers with stable, named `.localhost` URLs for local development. Instead of `localhost:3000`,...
canonical: https://daily.dev/posts/iplbny8oe
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GitHub - vercel-labs/portless: Replace port numbers with stable, named .localhost URLs. For humans and agents. | daily.dev
og:description: Portless is an npm tool that replaces numeric localhost port numbers with stable, named `.localhost` URLs for local development. Instead of `localhost:3000`,...
og:url: https://daily.dev/posts/iplbny8oe
og:image: https://api.daily.dev/og/posts/iplbny8Oe.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub - vercel-labs/portless: Replace port numbers with stable, named .localhost URLs. For humans and agents.

**[Amit yadav](https://daily.dev/sources/0oywkpxarz5zwwfifwguq)** · [@amityadav](https://daily.dev/amityadav) · 39 upvotes · 2 comments

## Summary

Portless is an npm tool that replaces numeric localhost port numbers with stable, named `.localhost` URLs for local development. Instead of `localhost:3000`, you get `myapp.localhost:1355`. It runs a local proxy daemon that routes named subdomains to randomly assigned ports, eliminating port conflicts, cookie/storage clashes, and hardcoded port issues. It supports HTTP/2 and HTTPS with auto-generated trusted certificates, works with most frameworks (Next.js, Vite, Express, Nuxt, etc.), and is designed to work reliably for both human developers and AI coding agents in monorepo setups.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/vercel-labs/portless>

## Community discussion

Top comments from developers on daily.dev.

**@amityadav** · 0 upvotes

> Found another project that I feel works better than portless
>
>
> [https://app.daily.dev/posts/g4IpNnonl](https://app.daily.dev/posts/g4IpNnonl)

**@azuzard** · 0 upvotes

> Wow, I’m against the clashes in port 3000 caused by service workers—it’s so confusing before unregistering the worker. The pain is universal, than someone need to solve it.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#nodejs](https://daily.dev/tags/nodejs), [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/iplbny8oe)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/iplbny8oe","headline":"GitHub - vercel-labs/portless: Replace port numbers with stable, named .localhost URLs. For humans and agents.","text":"Shared: GitHub - vercel-labs/portless: Replace port numbers with stable, named .localhost URLs. For humans and agents.","url":"https://daily.dev/posts/iplbny8oe","datePublished":"2026-03-04T02:15:37.908Z","dateModified":"2026-03-04T02:16:14.970Z","author":{"@type":"Person","name":"Amit yadav","url":"https://daily.dev/amityadav","image":"https://lh3.googleusercontent.com/a-/AOh14GilPWiFIAk0glhJ1vs8JUD3bqdVbuQ0qXEaaVaUMAY=s100","description":"Loves to build. 🧑🏻‍💻 Let's connect and build together.","worksFor":{"@type":"Organization","name":"The Tech Basket","logo":"https://res.cloudinary.com/daily-now/image/upload/s--1RHtiINu--/f_auto/v1731425147/companies/thetechbasket"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":3865}},"image":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":39},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/VkEHlNXmr"},"comment":[{"@type":"Comment","text":"Found another project that I feel works better than portless\nhttps://app.daily.dev/posts/g4IpNnonl","datePublished":"2026-03-11T14:21:09.609Z","dateModified":"2026-03-11T14:21:41.834Z","url":"https://daily.dev/posts/iplbny8Oe#c-NzGYu8jXK","author":{"@type":"Person","name":"Amit yadav","url":"https://daily.dev/amityadav","image":"https://lh3.googleusercontent.com/a-/AOh14GilPWiFIAk0glhJ1vs8JUD3bqdVbuQ0qXEaaVaUMAY=s100"}},{"@type":"Comment","text":"Wow, I’m against the clashes in port 3000 caused by service workers—it’s so confusing before unregistering the worker. The pain is universal, than someone need to solve it.","datePublished":"2026-03-06T14:23:02.289Z","url":"https://daily.dev/posts/iplbny8Oe#c-DgNs0jV90","author":{"@type":"Person","name":"Sema toghem","url":"https://daily.dev/azuzard","image":"https://avatars.githubusercontent.com/u/11573007?v=4"}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/0oywkpxarz5zwwfifwguq","name":"Amit yadav"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Amit yadav","item":"https://daily.dev/sources/0oywkpxarz5zwwfifwguq"},{"@type":"ListItem","position":3,"name":"GitHub - vercel-labs/portless: Replace port numbers with stable, named .localhost URLs. For humans and agents."}]}
```

