Build a free, serverless subscription conversion tool on Cloudflare Workers. Supports SingBox, Clash, V2Ray, and Xray with custom rules. No server required, deploy in 5 minutes!
⚡ Sublink Worker: Deploy Your Own Subscription Converter in 1 Click — No Server Needed!
July 19, 2025 · Knight Galloping Wild · 1907 views
Deploy your own subscription conversion tool in the cloud, supporting SingBox / Clash / V2Ray / Xray with custom rules — completely free forever!
🔥 Why Choose Sublink Worker + Cloudflare Worker?
Traditional subscription conversion tools usually require you to provide your own server, which comes with high maintenance costs and unstable network issues. Sublink Worker innovatively leverages Cloudflare Worker, a global serverless platform, to deliver:
- ✅ Zero server cost: Runs entirely on the Cloudflare edge network
- ⚡ Global lightning-fast access: Accelerated by Cloudflare's CDN nodes
- 🔒 Secure & reliable: Built-in DDoS protection and HTTPS
- 🚀 One-click deployment: No complex environment setup — ready in 5 minutes
- 💡 Fully customizable: Configure rulesets and proxy groups however you like
Below is the step-by-step deployment tutorial.
📥 Step 1: Fork the Project to Your GitHub
Visit the project repository: https://github.com/7Sageer/sublink-worker
Click the Fork button in the top-right corner.
🚀 Step 2: Deploy to Cloudflare Worker
After forking, click the blue "Deploy to Cloudflare" button at the top of your forked repository.
Note: Make sure you are logged into Cloudflare and have linked your GitHub account beforehand. New bindings need to refresh permissions — follow the prompts accordingly.
On the deployment configuration page:
- Import repository → Select your forked repo
- Configure your application → Project name:
sublink-worker(do not modify unless deployment fails) - Modify the deploy command to:
npm run deploy - Click Deploy
🌐 Step 3: Access Your Subscription Conversion Service
n
Once deployed successfully:
- Default access URL:
https://your-worker-name.your-cloudflare-account.workers.dev - Use a custom domain: Go to Worker → Triggers → Add → Custom Domain → bind your own domain.
🎨 Using the Sublink Web Interface
Open your Worker URL, and you will see the following:
Core Operations
Import subscription:
- Supports Base64-encoded HTTP/HTTPS subscription links
- Or directly paste single node links such as SS / Vmess / VLESS / Trojan
- Select client: Sing-Box / Clash / Xray / V2Ray, etc.
Customize rules:
- Use preset rulesets (e.g., GFWList split-routing)
- Or define your own
geo-site,geo-ip, anddomain-suffixpolicies
Generate subscription:
- Get the converted subscription link
- Optionally generate a short link
⚡ Advanced Usage Examples
Generate a subscription directly via API
curl -X POST "https://your-worker.dev/convert" \
-H "Content-Type: application/json" \
-d '{
"url": "https://original-sub.com/link",
"target": "clash",
"config": {
"ruleset": ["geosite:geolocation-!cn", "ip-cidr:8.8.8.8/32"]
}
}'Supported Protocol List
| Protocol Type | Encryption Method | Supported |
|---|---|---|
| ShadowSocks | aes-256-gcm / chacha20, etc. | ✅ |
| VMess | auto / aes-128-gcm, etc. | ✅ |
| VLESS | none / reality, etc. | ✅ |
| Trojan | TLS + password auth | ✅ |
| Hysteria2 | QUIC acceleration protocol | ✅ |
| TUIC | UDP acceleration protocol | ✅ |
❓ Troubleshooting
- Short link feature not working?
→ Check whether you have created a KV namespace and bound it to the Worker. - Deployment error:
npm not found?
→ Make sure the deploy command is set to:npm run deploy - How to update to a new version?
# Enter your forked local repository
git remote add upstream https://github.com/7Sageer/sublink-worker
git pull upstream main
# Push updates to your GitHub repo — Cloudflare will auto-redeploy💡 Best Practices
- Enable an access password: Set the
ACCESS_TOKENenvironment variable to prevent abuse. - Bind a custom domain: Avoid the risk of
workers.devdomains being blocked. - Update rulesets regularly: Subscribe to the GitHub repo for the latest security updates.
- Pair with a client: Clash configuration example below.
# Clash configuration example
proxies:
- name: "My_Server"
type: vmess
server: your-server.com
port: 443
uuid: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
alterId: 0
cipher: auto
tls: true
skip-cert-verify: true
network: ws
ws-path: /your-path
ws-headers:
Host: your-server.com🌟 Conclusion
With Cloudflare Worker + Sublink Worker, you now have:
- A forever-free subscription conversion service
- Full control over custom rules
- A zero-maintenance serverless architecture
Whether for personal use or small-scale sharing, this is currently the most elegant subscription conversion solution. Deploy your dedicated node conversion hub right now!
Project address: https://github.com/7Sageer/sublink-worker
Categories: Tech Articles · Tech Articles · Cloudflare · VPN · Internet Freedom
Note: This is the English translation of the original Chinese version.