The right proxy type for Clash
Residential proxies with a sticky session are the usual choice for browsing, because the IP address looks like a home connection and stays the same while you work. For heavy use such as video, a time-based Unlimited Datacenter plan avoids paying by the gigabyte.
The values to enter in Clash
Every PiratProxies plan comes down to four values: host, port, username and password. Here they are for Residential; your own username and password are on your plan page.
| Host | resi.piratproxies.com |
|---|---|
| HTTP port | 8080 |
| SOCKS5 port | 1080 |
| Username | USERNAME |
| Password | shown on your plan page |
There is no separate country or session field: both are part of the username. Your plan page has a generator that writes it, and Targeting and sessions describes each piece.
Setting it up in Clash
- Add the proxy to the
proxieslist in the configuration. - Put it in a proxy group and point your rules at that group.
- Reload the configuration and check the address with an IP-check page.
Code: Clash through a proxy
config.yaml
proxies:
- name: pirat
type: socks5
server: resi.piratproxies.com
port: 1080
username: USERNAME-country-us-time-600-session-a1b2c3d4
password: PASSWORD
proxy-groups:
- name: PROXY
type: select
proxies: [pirat]
rules:
- MATCH,PROXYPut your own login from the plan page in place of USERNAME and PASSWORD. The example calls an IP-check service, so what it prints is the address your request came from.
Should Clash rotate IPs or keep one?
A device or browser that sends all of its traffic through the proxy behaves like a single visitor, so a sticky session usually fits best: your IP address stays put while you work. Keep in mind that gigabyte plans count everything, so video and big downloads use up a plan fast.
Here is what a sticky username looks like:
USERNAME-country-us-time-600-session-a1b2c3d4When Clash will not connect
- For the HTTP port, set
type: httpandport: 8080. - Rules decide what uses your plan. Send only the sites you need through
PROXYand the restDIRECT. - Error
407means the login was refused. Copy the username and password from your plan page once more, and make sure no space crept in and the username was not cut short. - An IP in the wrong country nearly always comes from the username, since the country code lives there. Other fixes.
Clash and proxies: questions
Can Clash use a SOCKS5 proxy?
Yes. Point it at port 1080 with the same username and password.
Which PiratProxies plan suits Clash best?
Residential proxies with a sticky session are the usual choice for browsing, because the IP address looks like a home connection and stays the same while you work. For heavy use such as video, a time-based Unlimited Datacenter plan avoids paying by the gigabyte.
Words used in this guide: proxy port, proxy format, HTTP proxy, SOCKS5 proxy, proxy checker.
Clash belongs to its own developers, and PiratProxies has no connection with them; we name it only to say what this guide covers. Follow the rules of the sites you visit and our acceptable use policy.