linko
● v0.3.0 · tested on 12 clean systems الإصدار 0.3.0 · مُختبَر على ١٢ نظامًا نظيفًا

Your localhost,
on the internet.
مشروعك المحلي،
على الإنترنت.

A public HTTPS URL for any local port — on a domain you own. رابط HTTPS عام لأي منفذ محلي — على دومين تملكه أنت.

No port forwarding. No reverse proxy. No SSL certificates. No manual DNS. بدون فتح بورت، بدون Port Forwarding، بدون شهادات SSL، بدون سجلات DNS يدوية.

$ curl -fsSL https://raw.githubusercontent.com/Devehab/linko/main/install.sh | bash
zsh — linko
$ linko 3000

✓ DNS record created (x92ka.example.com)
✓ Route published (x92ka.example.com -> http://localhost:3000)
✓ Tunnel connected

  Public URL  https://x92ka.example.com
  Forwards    http://localhost:3000
  Tunnel      example-linko-tunnel

  Press Ctrl+C to stop
The problemالمشكلة

Sharing localhost should not be this hard مشاركة مشروعك المحلي لا يجب أن تكون بهذه الصعوبة

Every tunnel tool solves the first ten minutes and then gets in your way: random URLs that change on every restart, session limits, an interstitial warning page between your client and your work, and a domain that is never yours. كل أدوات الأنفاق تحلّ أول عشر دقائق ثم تقف في طريقك: روابط عشوائية تتغيّر مع كل إعادة تشغيل، وحدود جلسات، وصفحة تحذير وسيطة بين عميلك وعملك، ودومين ليس لك أبدًا.

Typical tunnel toolأدوات الأنفاق المعتادة linko
The domainالدومين Theirsدومينهم Yoursدومينك أنت
URL after a restartالرابط بعد إعادة التشغيل A new random oneرابط عشوائي جديد The same oneالرابط نفسه
Warning page for visitorsصفحة تحذير للزوار Oftenغالبًا Neverأبدًا
Session limitsحدود الجلسات On the free tierفي الخطة المجانية Noneلا يوجد
Survives a rebootيصمد بعد إعادة التشغيل Manualيدويًا linko service install
Runs onيعمل عبر Their infrastructureبنيتهم التحتية Cloudflare's network, your account شبكة Cloudflare، بحسابك أنت
Home serversالخوادم المنزلية

No public IP? That is exactly the case linko was built for. ما عندك IP عام؟ هذه بالضبط الحالة التي بُني لها linko.

A home server sits behind CGNAT or a dynamic address. Port forwarding is either blocked by the ISP or breaks the next time the lease renews, so the Raspberry Pi in the corner, the old laptop, the NAS — none of them can be reached from outside, no matter that you own a perfectly good domain. الخادم المنزلي خلف CGNAT أو عنوان متغيّر. وفتح المنافذ إمّا يمنعه مزوّد الخدمة أو ينكسر مع أول تجديد للعنوان، فيبقى الـ Raspberry Pi في الزاوية، واللابتوب القديم، والـ NAS — لا يصل إليها أحد من الخارج، مهما كان لديك دومين ممتاز.

linko never asks for an inbound port. cloudflared dials out from your machine, so the only address the world ever sees is Cloudflare's. Your IP stays private and your router stays untouched. ‏linko لا يطلب أي منفذ وارد. يتصل cloudflared من جهازك إلى الخارج، فالعنوان الوحيد الذي يراه العالم هو عنوان Cloudflare. عنوانك يبقى خاصًا، وراوترك لا يُمسّ.

By hand, per project يدويًا، لكل مشروع
  • Create a Zero Trust tunnel and connect it إنشاء نفق Zero Trust وربطه
  • Write the ingress rules, keep the catch-all last كتابة قواعد التوجيه مع إبقاء القاعدة الأخيرة في مكانها
  • Add a proxied CNAME to the right zone إضافة سجل CNAME مُوكَّل في الـ zone الصحيحة
  • Sort out the certificate, then find out a two-level name is not covered ضبط الشهادة، ثم اكتشاف أن الاسم بمستويين غير مغطّى
  • Write a unit file so it survives the next reboot كتابة ملف خدمة ليصمد بعد إعادة التشغيل
With linkoمع linko
linko 8096 --name media

Tunnel, route, DNS record and certificate — all of it, in about two seconds. linko service install makes it come back after every boot, and every other project on the box joins the same tunnel. النفق والمسار وسجل الـ DNS والشهادة — كلها في ثانيتين تقريبًا. وlinko service install يعيده بعد كل إقلاع، وكل مشروع آخر على الجهاز ينضم إلى النفق نفسه.

What you getما تحصل عليه

Built to disappear into your workflow مصمّم ليذوب داخل سير عملك

A port keeps its URLالمنفذ يحتفظ برابطه

Run linko 3000 again tomorrow and you get the same address back. The link you shared keeps working; your DNS never fills with dead records. شغّل linko 3000 غدًا فيعيد لك العنوان نفسه. الرابط الذي أرسلته يبقى يعمل، ولا تتراكم سجلات ميتة في حسابك.

HTTPS, handledHTTPS جاهز

Cloudflare issues and renews the certificate. You never see a certbot command or a renewal cron job. ‏Cloudflare تصدر الشهادة وتجدّدها. لن ترى أمر certbot ولا مهمة تجديد مجدولة.

Nothing to installلا شيء تثبّته

One static binary. No Node, no Python, no Docker, no Go. cloudflared downloads itself on first use. ملف تنفيذي واحد ثابت الربط. لا Node ولا Python ولا Docker ولا Go. وcloudflared ينزّل نفسه عند أول استخدام.

One tunnel, many projectsنفق واحد لكل مشاريعك

web on 3000, api on 8080, docs on 5173 — each a hostname inside the same tunnel. ‏web على 3000 وapi على 8080 وdocs على 5173 — كل واحد اسم داخل النفق نفسه.

Background and bootالخلفية والإقلاع

-d detaches and returns your prompt. linko service install brings it back after a reboot. ‏-d يفصله ويعيد لك السطر، وlinko service install يعيده بعد كل إقلاع.

Repairs itselfيصلح نفسه

Token expired? Tunnel deleted from the dashboard? linko says so in plain words and fixes it — linko doctor --fix. انتهت صلاحية التوكن؟ حُذف النفق من اللوحة؟ يقول لك ما حدث بوضوح ويصلحه — linko doctor --fix.

Under the hoodتحت الغطاء

How it actually worksكيف يعمل فعلًا

linko creates one Cloudflare Zero Trust tunnel in your account. Each project becomes a hostname inside it, routed to a different local port. ينشئ linko نفقًا واحدًا في حسابك على Cloudflare، وكل مشروع يصبح اسمًا داخله موجّهًا إلى منفذ محلي مختلف.

Three hostnames enter one Cloudflare tunnel and return from three local ports crm.example.comlocalhost:3000api.example.comlocalhost:8080test.example.comlocalhost:5173 Cloudflare Edge one tunnel نفق واحد cloudflared outbound connection only اتصال صادر فقط Three hostnames enter one Cloudflare tunnel and return from three local ports crm:3000api:8080test:5173 *.example.com localhost Cloudflare Edge one tunnel نفق واحد cloudflared outbound connection only اتصال صادر فقط
1

A DNS recordسجل DNS

A proxied CNAME is created, pointing at <tunnel-id>.cfargotunnel.com. يُنشأ سجل CNAME مُوكَّل يشير إلى <tunnel-id>.cfargotunnel.com.

2

A routeقاعدة توجيه

An ingress rule maps that hostname to http://localhost:3000, stored on Cloudflare, not on disk. تُضاف قاعدة تربط الاسم بـ http://localhost:3000، محفوظة عند Cloudflare لا على قرصك.

3

An outbound connectionاتصال صادر

cloudflared dials out to Cloudflare. Nothing on your machine ever listens for inbound traffic. يتصل cloudflared بـ Cloudflare من الداخل للخارج. لا شيء على جهازك ينتظر اتصالات واردة.

Why that mattersلماذا هذا مهم

Because the connection is outbound, no firewall rule, router change or open port is ever needed — and your home IP address is never exposed. لأن الاتصال صادر، لا تحتاج أي قاعدة جدار حماية ولا تعديل راوتر ولا فتح منفذ — ولا يظهر عنوان IP الخاص بك للزوار إطلاقًا.

The whole surfaceكل الواجهة

Thirteen commands, and you know them all ثلاثة عشر أمرًا، وتكون قد عرفتها كلها

linko initOne-time setup: token, domain, tunnel الإعداد لمرة واحدة: التوكن والدومين والنفق
linko 3000Publish the port — same URL every time نشر المنفذ — نفس الرابط في كل مرة
linko 3000 --name crmPublish it at a name you choose نشره باسم تختاره أنت
linko 3000 --newRotate to a fresh random URL تدوير الرابط إلى عشوائي جديد
linko 3000 -dRun in the background تشغيل في الخلفية
linko ps · linko stopSee and stop background tunnels عرض وإيقاف الأنفاق العاملة بالخلفية
linko list · linko statusWhat is published, and is it connected ما المنشور، وهل هو متصل
linko remove crmDelete a URL and its DNS record حذف رابط وسجل الـ DNS الخاص به
linko service installStart automatically at every boot يبدأ تلقائيًا مع كل إقلاع
linko doctor --fixDiagnose and repair the whole setup تشخيص وإصلاح الإعداد بالكامل
linko domainSwitch domains — pick from a numbered list تبديل الدومين — اختر من قائمة مرقّمة
linko tokenReplace the API token, checked before it is saved استبدال التوكن، ويُفحص قبل حفظه
linko uninstallRemove linko and its Cloudflare traces إزالة linko وآثاره من Cloudflare
For AI agentsلوكلاء الذكاء الاصطناعي

Your agent can drive it too وكيلك يستطيع تشغيلها أيضًا

Ask Claude Code, Codex or Cursor to "put this on a public URL so I can check it from my phone" — and it will, correctly, if it has the skill. اطلب من Claude Code أو Codex أو Cursor أن «يضع هذا على رابط عام لأشوفه من تلفوني» — وسيفعلها بشكل صحيح، إن كان لديه الـ skill.

Why a skill and not just the README لماذا skill وليس README فقط

Agents fail here in predictable ways: linko 3000 blocks forever without -d, ~/.linko/config.json holds live credentials beside the data they want, and a command exiting 0 is no proof the URL answers. The skill states each of those before it can happen. يفشل الوكلاء هنا بطرق متوقعة: linko 3000 يتوقف إلى الأبد بلا -d، و~/.linko/config.json يحمل توكنات حيّة بجانب البيانات المطلوبة، وخروج الأمر بصفر ليس دليلًا على أن الرابط يستجيب. الـ skill يقول كل واحدة منها قبل أن تحدث.

It asks before it exposes anything يسأل قبل أن ينشر أي شيء

A published URL is reachable by anyone holding it. The skill requires the agent to confirm what it is about to expose, refuses databases and admin panels outright, and cleans up when the task ends. الرابط المنشور يصل إليه أي شخص يملكه. يفرض الـ skill على الوكيل أن يؤكّد ما سينشره، ويرفض قواعد البيانات ولوحات الإدارة رفضًا صريحًا، وينظّف بعد انتهاء المهمة.

$ mkdir -p ~/.claude/skills && cp -r skills/linko ~/.claude/skills/

Read the skillاقرأ الـ skill · Other agentsوكلاء آخرون

Reliabilityالموثوقية

Verified, not promisedمُتحقَّق منه، لا موعود به

Every push runs the test suite on Linux, macOS and Windows. Every week, the published install command is run end to end on twelve clean systems that have never had anything installed on them. كل دفعة تشغّل مجموعة الاختبارات على لينكس وmacOS وويندوز. وكل أسبوع يُنفَّذ أمر التثبيت المنشور كاملًا على اثني عشر نظامًا نظيفًا لم يُثبَّت عليها أي شيء من قبل.

Hostsأجهزة حقيقية

✓ ubuntu-latest
✓ macos-latest
✓ windows-latest (Git Bash)

Bare distro imagesصور توزيعات فارغة

✓ debian 11 · 12   ✓ ubuntu 22.04 · 24.04
✓ alpine   ✓ fedora   ✓ rocky 9
✓ arch   ✓ opensuse leap

Ready in about two minutesجاهز في دقيقتين تقريبًا

A free Cloudflare account, a domain you own, and one command. حساب Cloudflare مجاني، ودومين تملكه، وأمر واحد.

$ curl -fsSL https://raw.githubusercontent.com/Devehab/linko/main/install.sh | bash