oauth
Skill13k starsChanged 2 months agoApache-2.0View on GitHub
Configure OAuth providers (Google, Apple, Microsoft, Facebook, GitHub, etc.) to work with portless local dev URLs. Use when setting up OAuth redirect URIs, fixing "redirect_uri_mismatch" or "invalid redirect" errors, configuring sign-in providers for local development, or when a provider rejects .localhost subdomains. Triggers include "OAuth not working with portless", "redirect URI mismatch", "Google/Apple/Microsoft sign-in fails locally", "configure OAuth for local dev", or any task involving OAuth callback URLs with portless domains.
- Reads credentials
9 other projects use a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- ScaleDockHQ/scaledock-skillstheir own version, first seen Oct 2, 2026
- lamxy/agent-skill-webtheir own version, first seen Aug 31, 2026
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- sunilgentyala/OmniRedtheir own version, first seen Jun 4, 2026
- prizmad/agent-skillstheir own version, first seen Apr 30, 2026
- Harmeet10000/skillstheir own version, first seen Mar 15, 2026
Who's talking about vercel-labs/portless
- @camilleroux.com“Portless remplace tes `localhost:3000` par des URLs stables et nommées : `https://myapp.localhost`. Gère …”Bluesky · Mar 20, 2026 · 10 likes
- @skaldebane.dev“portless is awesome! got fancy `.test` domains set up on all my web/server projects during local …”Bluesky · Mar 15, 2026 · 7 likes
- @nearestnabors.com“If you're running more than one coding agent, you're running into localhost conflicts. Portless will fix …”Bluesky · Mar 20, 2026 · 6 likes
- @christianminich.com“Used portless today and I never want to see “localhost:3000” and friends ever again. …”Bluesky · Aug 19, 2026 · 5 likes
- @fpl9000.bsky.social“github.com/vercel-labs/...”Bluesky · Feb 16, 2026 · 4 likes
The biggest 5 of 72 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 72
Talked about on GitHub, Bluesky and Hacker News (72 times).
On GitHub · 47
- Sep 21, 2026chore(deps): bump the development-minor-patch group across 1 directory with 8 updates — MarcosCamara01/ecommerce-template1 reaction · 2 comments
- Sep 14, 2026chore(deps): bump the development-minor-patch group with 7 updates — MarcosCamara01/ecommerce-template1 reaction · 2 comments
- Sep 8, 2026chore(deps): bump the development-minor-patch group with 9 updates — MarcosCamara01/ecommerce-template1 reaction · 3 comments
- Aug 30, 2026chore(deps): modernize dependencies and tooling — minpeter/minpeter.v21 reaction · 2 comments
- Jun 4, 2026build(deps-dev): bump portless from 0.12.0 to 0.13.0 — phantompane/phantom1 reaction
42 more on GitHub
- May 16, 2026build(deps-dev): bump portless from 0.11.1 to 0.12.0 — phantompane/phantom1 reaction
- May 13, 2026build(deps-dev): bump portless from 0.10.3 to 0.11.1 — phantompane/phantom1 reaction
- Apr 13, 2026feat(portless): add Portless plugin to marketplace — pleaseai/claude-code-plugins1 reaction · 1 comment
- Mar 14, 2026Use ‘portless’ for human-friendly url’s? — techie2000/axiom1 reaction
- Mar 7, 2026registry: add portless (npm:portless) — jdx/mise1 reaction · 2 comments
- Mar 2, 2026Support custom hostname for portless / .localhost URL compatibility — vercel-labs/dev30001 reaction · 4 comments
- Oct 5, 2026chore(deps): bump the npm-minor-and-patch group across 1 directory with 12 updates — tmustier/pi-for-excel0 reactions · 1 comment
- Oct 5, 2026chore(deps): bump the npm group across 1 directory with 5 updates — Miragon/slidev-deck-template0 reactions · 2 comments
- Oct 5, 2026build(deps): bump the all-others group across 1 directory with 10 updates — anyulled/devbcn-nextjs0 reactions · 1 comment
- Oct 5, 2026chore(deps): bump the production-dependencies group with 10 updates — aquariolabs/blockbase0 reactions · 1 comment
- Oct 5, 2026chore(deps-dev): bump the development-dependencies group with 5 updates — LayishSieger/registry0 reactions · 2 comments
- Oct 5, 2026chore(deps)(deps-dev): bump portless from 0.15.6 to 0.15.7 — xabierlameiro/env-typegen0 reactions · 2 comments
- Oct 5, 2026build(deps): bump the minor-and-patch group across 1 directory with 22 updates — raveltan/nuxvel0 reactions
- Oct 4, 2026claude-code-plugins.github.vercel-labs.portless: init at 0.15.7 — sudosubin/agents.nix0 reactions
- Oct 4, 2026chore(deps-dev): bump the development-dependencies group across 1 directory with 12 updates — Umah-Creative/baithani-winner-picker0 reactions
- Oct 4, 2026Bump the minor-and-patch group across 1 directory with 31 updates — mblode/icons0 reactions · 1 comment
- Oct 4, 2026agent-skills.github.vercel-labs.portless: 0.15.6 → 0.15.7 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.vercel-labs.portless: init at 0.15.6 — sudosubin/agents.nix0 reactions
- Sep 28, 2026chore(deps): bump the development-minor-patch group with 10 updates — demo-nexoar/ecommerce0 reactions
- Sep 28, 2026chore(deps): bump the development-minor-patch group across 1 directory with 9 updates — MarcosCamara01/ecommerce-template0 reactions · 1 comment
- Sep 23, 2026deps(deps-dev): bump portless from 0.15.5 to 0.15.6 — psg2/feed-reader0 reactions · 4 comments
- Sep 14, 2026chore(deps): bump the npm-minor-and-patch group across 1 directory with 11 updates — netzbegruenung/gruenerator-excel0 reactions
- Sep 14, 2026chore(deps): bump the npm-minor-and-patch group across 1 directory with 11 updates — Jayanth-Ace/ev-excel0 reactions
- Sep 13, 2026chore(deps-dev): Bump portless from 0.15.5 to 0.15.6 in /frontend — frankieramirez/comicarr0 reactions · 3 comments
- Sep 4, 2026chore(deps): bump the minor group across 1 directory with 13 updates — milis92/nestjs-boilerplate0 reactions
- Sep 3, 2026chore(dev): add named portless URLs to dev.sh — Parra-Inc/feedback-mcp0 reactions
- Sep 1, 2026build(deps-dev): bump the npm group across 1 directory with 2 updates — baronunread/sproutboat0 reactions · 1 comment
- Sep 1, 2026chore(deps-dev): bump portless from 0.15.5 to 0.15.6 — rifandani/be-monorepo0 reactions · 2 comments
- Aug 31, 2026chore(deps-dev): bump portless from 0.15.5 to 0.15.6 — drakkr-team/epartim-v20 reactions · 1 comment
- Aug 31, 2026chore(deps-dev): bump portless from 0.14.0 to 0.15.6 — TinyCloudLabs/openkey0 reactions · 2 comments
- Aug 30, 2026chore(deps): bump portless from 0.15.5 to 0.15.6 — nickytonline/nickytdotco0 reactions · 3 comments
- Aug 20, 2026fix: avoid turbo duplicate route registration when root dev is portless (#332) — sohelshekhIn/portless0 reactions
- Aug 14, 2026chore(deps): bump the npm-minor-and-patch group across 1 directory with 11 updates — e1wayt1cket/pi4office0 reactions · 1 comment
- Aug 13, 2026Bump portless from 0.15.1 to 0.15.5 — superloglabs/responder-oss0 reactions · 1 comment
- Aug 6, 2026build(deps): bump portless from 0.13.0 to 0.15.5 — WayneGoosen/portless-dashboard0 reactions
- Jul 9, 2026npm(deps-dev): bump portless from 0.10.3 to 0.15.1 in the dev-dependencies group across 1 directory — fsegurai/scrollspy0 reactions · 3 comments
- Jul 6, 2026chore(deps-dev): bump portless from 0.14.0 to 0.15.1 — rikisamurai/guoba-ai0 reactions · 2 comments
- Jun 5, 2026add portless to start frontend apps — AmanVarshney01/create-better-t-stack0 reactions
- May 5, 2026vercel portless — radum/dotfiles0 reactions
- May 1, 2026build(deps-dev): bump the tooling group across 1 directory with 2 updates — anyulled/FaceLocator0 reactions · 1 comment
- Mar 15, 2026feat: portless integration for human-friendly local dev URLs — techie2000/axiom0 reactions
- Feb 20, 2026Agent: GitHub Mining Agent — first real AgentOS workload (daily repo analysis) — aryayt/flow0 reactions
On Bluesky · 24
- Mar 20, 2026Portless remplace tes `localhost:3000` par des URLs stables et nommées : `https://myapp.localhost`. Gère les sous-domaines, détecte les git… — @camilleroux.com10 likes and reposts
- Mar 15, 2026portless is awesome! got fancy `.test` domains set up on all my web/server projects during local development no more messy browser history!… — @skaldebane.dev7 likes and reposts · 1 reply
- Mar 20, 2026If you're running more than one coding agent, you're running into localhost conflicts. Portless will fix that for you AND it works with git… — @nearestnabors.com6 likes and reposts · 2 replies
- Aug 19, 2026Used portless today and I never want to see “localhost:3000” and friends ever again. github.com/vercel-labs/... — @christianminich.com5 likes and reposts
- Feb 16, 2026github.com/vercel-labs/... — @fpl9000.bsky.social4 likes and reposts · 1 reply
19 more on Bluesky
- May 3, 2026Un outil pour exposer une app locale en HTTPS avec un nom de domaine (local également). 🔗 https://github.com/vercel-labs/portless #https… — @kalvn.net3 likes and reposts
- Feb 26, 2026ポート番号の代わりに`myapp.localhost`のような名前付き`.localhost` URLを使えるようにする開発用プロキシツール。 `portless proxy start`でデーモンを起動し、`portless myapp next… — @azu.bsky.social3 likes and reposts
- Sep 2, 2026📦 vercel-labs / portless ⭐ 11,500 (+69) 🗒 TypeScript Replace port numbers with stable, named local URLs. For humans and agents. — @github-trending.bsky.social2 likes and reposts
- Aug 21, 2026https://github.com/vercel-labs/portless — @sigmanor.net2 likes and reposts
- Jun 3, 2026vercel-labs/portless Replace port numbers with stable, named .localhost URLs for local development. No more localhost:3000 — get… — @reposcout.bsky.social2 likes and reposts
- Apr 24, 2026vercel-labs/portless: Replace port numbers with stable, named local URLs. For humans and agents. #devopsish — @chrisshort.net2 likes and reposts
- Apr 20, 2026📦 vercel-labs / portless ⭐ 7,169 (+45) 🗒 TypeScript Replace port numbers with stable, named local URLs. For humans and agents. — @github-trending-js.bsky.social2 likes and reposts
- Mar 3, 2026portless 진짜 내가 에이전틱 코딩 하면서 정확히 완전히 딱 가려운 곳이었는데 이걸 긁어주네.. 역시 vercel이 참 잘하고 무섭다. 제발 내 법인을 인수해 줘... github.com/vercel-labs/... — @kivol.net2 likes and reposts
- Feb 27, 2026Why does every project now need to be "for agents"? Opening a port? Better make it for agents! github.com/vercel-labs/... If your agent can… — @theorangeone.net2 likes and reposts
- Sep 2, 2026📦 vercel-labs / portless ⭐ 11,500 (+69) 🗒 TypeScript Replace port numbers with stable, named local URLs. For humans and agents. — @github-trending-js.bsky.social1 likes and repost
- Aug 21, 2026github.com/vercel-labs... — @anotherbug.com1 likes and repost
- Apr 30, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 vercel-labs / portless ⭐ 8,312 (+393) 🗒 TypeScript Replace port numbers with stable, named local… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Mar 20, 2026Love that the tagline is "for humans and agents." The same abstraction that hides port conflicts from developers hides port-based IOCs from… — @4n68r.com1 likes and repost
- Mar 19, 2026Portless : remplacer les ports par des URLs nommées en développement local — @news.humancoders.com1 likes and repost
- Mar 2, 2026https://github.com/vercel-labs/portless — @tom-doerr.bsky.social1 likes and repost
- Feb 20, 2026github.com/vercel-labs/por... GitHub - vercel-labs/portless: Replace port numbers with stable, named .localhost URLs. For huma... — @technews4869.bsky.social1 likes and repost
- Feb 20, 2026GitHub - vercel-labs/portless: Replace port numbers with stable, named .localhost URLs. For humans and agents.… — @tech-trending.bsky.social1 likes and repost
- Feb 19, 2026ポート番号の代わりに安定した名前付きの`.localhost` URLを使えるようにするVercel Labsのツールらしい ローカル開発でポート競合に悩む開発者には便利そうかな yug1224 starred vercel-labs/portless… — @yug1224.com1 likes and repost
- Feb 17, 2026github.com/vercel-labs/... — @thani.sh1 likes and repost
On Hacker News · 1
- Feb 16, 2026Vercel-labs/portless: Replace port numbers with stable, named .localhost URLs3 points
Used with
Projects with it also use documentation.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AnthropicSkilldocumentation
Write and maintain technical documentation. Trigger with "write docs for", "document this", "create a README", "write a runbook", "onboarding guide", or when the user needs help with any form of technical writing — API docs, architecture docs, or operational runbooks.
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- mcollina/skills★ 1.9ksame name
- ThePrimeagen/skills★ 234same name
- Harmeet10000/skills★ 7same name
- sunilgentyala/OmniRed★ 5same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- prizmad/agent-skills★ 2same name
- ScaleDockHQ/scaledock-skills★ 1same name
- conjure-3301/skills★ 0same name
- lamxy/agent-skill-web★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
When portless uses the default .localhost TLD, OAuth providers reject redirect URIs like http://myapp.localhost:1355/callback:
- Distinctive: line 26
Use a valid TLD so the redirect URI passes provider validation:
- Distinctive: line 53
Create or edit an OAuth 2.0 Client ID (Web application)
- Very specific: line 54
Add the portless domain to Authorized JavaScript origins: https://myapp.dev
- Very specific: line 55
Add the callback to Authorized redirect URIs: https://myapp.dev/api/auth/callback/google
- Distinctive: line 74
Create or edit an app registration
- Very specific: line 121
Read the PORTLESS_URL environment variable that portless injects into the child process:
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OAuth with Portless
OAuth providers validate redirect URIs against domain rules. .localhost subdomains fail on most providers because they are not in the Public Suffix List or are explicitly blocked. Portless fixes this with --tld to serve apps on real, valid domains.
The Problem
When portless uses the default .localhost TLD, OAuth providers reject redirect URIs like http://myapp.localhost:1355/callback:
| Provider | localhost | .localhost subdomains | Reason |
| Allowed | Rejected | Not in their bundled PSL | |
| Apple | Rejected | Rejected | No localhost at all |
| Microsoft | Allowed | Allowed | Permissive localhost handling |
| Allowed | Varies | Must register each URI exactly | |
| GitHub | Allowed | Allowed | Permissive |
Google and Apple are the strictest. Microsoft and GitHub are more lenient with localhost.
The Fix
Use a valid TLD so the redirect URI passes provider validation:
portless proxy start --tld dev
portless myapp next dev
# -> https://myapp.devAny TLD in the Public Suffix List works: .dev, .app, .com, .io, etc.
Use a domain you own
Bare TLDs like .dev mean myapp.dev could collide with a real domain. Use a multi-segment TLD under a domain you control, so the app name stays clean and the domain structure lives in the TLD:
portless proxy start --tld local.yourcompany.dev
portless myapp next dev
# -> https://myapp.local.yourcompany.devThis ensures no outbound traffic reaches something you don't own. For teams, set a wildcard DNS record (*.local.yourcompany.dev -> 127.0.0.1) so every developer gets resolution without /etc/hosts, and every developer shares the same redirect URIs in the provider console.
Provider Setup
- Go to Google Cloud Console > Credentials
- Create or edit an OAuth 2.0 Client ID (Web application)
- Add the portless domain to Authorized JavaScript origins:
https://myapp.dev - Add the callback to Authorized redirect URIs:
https://myapp.dev/api/auth/callback/google
Google validates domains against the Public Suffix List. The domain must end with a recognized TLD. .localhost subdomains fail this check; .dev, .app, .com, etc. all pass.
HTTPS is required for .dev and .app (HSTS-preloaded). Portless handles this automatically with --https.
Apple
Apple Sign In does not allow localhost or IP addresses at all.
- Go to Apple Developer > Certificates, Identifiers & Profiles
- Register a Services ID
- Configure Sign In with Apple, adding the portless domain as a Return URL:
https://myapp.dev/api/auth/callback/apple
The domain must be a real, publicly-resolvable domain name. Since portless maps the domain to 127.0.0.1 locally, the browser resolves it but Apple's server-side validation may require the domain to resolve publicly too. If Apple rejects the domain, add a public DNS A record pointing to 127.0.0.1 for your dev subdomain.
Microsoft (Entra / Azure AD)
- Go to Azure Portal > App registrations
- Create or edit an app registration
- Under Authentication, add a Web redirect URI:
https://myapp.dev/api/auth/callback/azure-ad
Microsoft allows http://localhost with any port for development. It also accepts .localhost subdomains in most cases. Using a custom TLD with portless is still recommended for consistency across providers.
Facebook (Meta)
- Go to Meta for Developers > App Dashboard
- Under Facebook Login > Settings, add the portless URL to Valid OAuth Redirect URIs:
https://myapp.dev/api/auth/callback/facebook
Facebook requires each redirect URI to be registered exactly (no wildcards). Strict Mode (enabled by default) enforces exact matching.
GitHub
- Go to GitHub Developer Settings > OAuth Apps
- Set Authorization callback URL:
https://myapp.dev/api/auth/callback/github
GitHub is permissive with localhost and subdomains. A custom TLD is not strictly required but keeps the setup consistent.
Auth Library Configuration
NextAuth / Auth.js
Set NEXTAUTH_URL to match the portless domain:
NEXTAUTH_URL=https://myapp.devNextAuth uses this to construct callback URLs. Without it, callbacks may use localhost and cause a mismatch.
Passport.js
Set the callbackURL in each strategy to use the portless domain:
new GoogleStrategy({
clientID: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
callbackURL: process.env.BASE_URL + "/auth/google/callback",
});Set BASE_URL=https://myapp.dev in your environment.
Generic / Manual
Read the PORTLESS_URL environment variable that portless injects into the child process:
const baseUrl = process.env.PORTLESS_URL || "http://localhost:3000";
const callbackUrl = `${baseUrl}/auth/callback`;Troubleshooting
"redirect_uri_mismatch" or "invalid redirect URI"
The redirect URI sent during the OAuth flow doesn't match what's registered with the provider. Check:
- The provider's registered redirect URI matches the portless domain exactly (protocol, host, path)
NEXTAUTH_URLor equivalent is set to the portless URL (notlocalhost)- The proxy is running with the correct TLD (
portless listto verify)
Provider requires HTTPS
.dev and .app TLDs are HSTS-preloaded, so browsers force HTTPS. Start the proxy:
portless proxy start --tld devPortless defaults to HTTPS on port 443 (auto-elevates with sudo). Run portless trust to add the local CA to your system trust store and eliminate browser warnings.
Apple rejects the domain
Apple may require the domain to resolve publicly. Add a DNS A record for your dev subdomain pointing to 127.0.0.1:
myapp.local.yourcompany.dev A 127.0.0.1Or use a wildcard: *.local.yourcompany.dev A 127.0.0.1.
Callback goes to wrong URL after sign-in
The auth library is constructing the callback URL from localhost instead of the portless domain. Set the appropriate environment variable:
- NextAuth:
NEXTAUTH_URL=https://myapp.dev - Auth.js v5:
AUTH_URL=https://myapp.dev - Manual:
PORTLESS_URLis injected automatically; use it as the base URL
Example
See examples/google-oauth for a complete working example with Next.js + NextAuth + Google OAuth using --tld dev.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

