Set up Clash with ProxyField
- Create a text file
proxyfield.yamlwith the entry below underproxies:, aselectgroup namedProxyFieldand the ruleMATCH,ProxyField. - Import the file as a new profile in your Clash client, such as Clash Verge Rev, and make it the active one.
- In the group
ProxyField, select the entry. - Turn on the client's system proxy setting and open
https://api.ipify.org: it shows the proxy's IP.
One ProxyField entry for the proxies: list of a Clash or Mihomo profile.
proxies:
- name: "New York"
type: http
server: gate.proxyfield.io
port: 7000
username: <login>-country-us-city-new_york
password: <password>Mihomo's own reference for these keys: HTTP (mihomo docs).
Mobile 5G/4G proxies cost $3.45/GB for 1 GB down to $2.45/GB from 1,000 GB, on the same gateway and the same balance.
Your credentials and the configurator, which generates as many proxy lines as you need, are in your ProxyField account once the payment is confirmed. The account gives you a gateway and a login; add them to a profile yourself.
On this page 12 sections
Which Clash to use
The original Clash core and Clash for Windows stopped being developed in 2023. Profiles written for them still load in the maintained forks, which run the Mihomo core (formerly Clash Meta):
| Client | Platform | Notes |
|---|---|---|
| Clash Verge Rev | Windows, macOS, Linux | the usual replacement for Clash for Windows |
| FlClash | Windows, macOS, Linux, Android | a simpler interface on the same core |
| Clash Meta for Android | Android | the same core on a phone |
| OpenClash | OpenWrt routers | covers every device behind the router |
The profile format below works in all of them.
Set up a proxy in Clash, step by step
- Create a text file
proxyfield.yamlwith the profile below; replace<login>and<password>with your ProxyField username and password. - Import the file as a new profile in your Clash client, such as Clash Verge Rev.
Screenshot Clash Verge Rev with a local proxyfield.yaml profile - Make that profile the active one.
- In the group
ProxyField, select an entry, such asNew York.Screenshot Clash Verge Rev with the ProxyField group and a US entry selected - Turn on the client's system proxy setting so your browser and other apps send traffic to Clash, then open
https://api.ipify.org: it shows the proxy's IP.
mixed-port: 7890
allow-lan: false
mode: rule
proxies:
- name: "New York"
type: http
server: gate.proxyfield.io
port: 7000
username: <login>-country-us-city-new_york
password: <password>
- name: "Second location"
type: http
server: gate.proxyfield.io
port: 7000
username: <login>
password: <password>
proxy-groups:
- name: "ProxyField"
type: select
proxies: ["New York", "Second location", "DIRECT"]
rules:
- MATCH,ProxyFieldFor the second entry, put the username for the other location in place of <login> (regions and sessions: see the rotation section below). Country keys outside the US: the two-letter country code in lowercase, as in -country-de.
mixed-port: 7890 is Clash's own local port, the one your apps connect to. Port 7000 is the ProxyField gateway that Clash connects to. They are different, and both are needed.
No proxies after importing a profile
A Clash client lists no proxies when the profile has no proxies: list and no proxy-providers: section that it can read. The usual causes:
| Cause | Fix |
|---|---|
| You imported a link that returns a plain list, a web page or base64 text instead of a Clash YAML profile | Import a YAML file like the one above |
The proxies: key is misspelled or indented under another key | Start proxies: at the left margin; indent each entry with two spaces and a dash |
| Tabs instead of spaces | YAML needs spaces; replace every tab |
Proxy providers: keep the list in a separate file
A proxy-providers entry loads proxies from a file (or a URL) so you can update the list without editing the profile:
proxy-providers:
proxyfield:
type: file
path: ./proxyfield-proxies.yaml
health-check:
enable: true
url: https://www.gstatic.com/generate_204
interval: 600
proxy-groups:
- name: "ProxyField"
type: select
use: ["proxyfield"]
rules:
- MATCH,ProxyFieldThe file proxyfield-proxies.yaml holds the same proxies: list as above. One entry per location or session keeps the group easy to pick from.
SOCKS5 in Clash
Clash can send a SOCKS5 username and password itself, so browsers behind Clash don't need to. With ProxyField, HTTP with username:password is the setup to use in Clash; a type: socks5 entry takes the same port, 7000, and the same login. SOCKS5 runs on the same gate.proxyfield.io:7000. SOCKS5 takes the same username and password. ProxyField residential SOCKS5 relays UDP, so you can set udp: true on a residential entry. HTTP is simpler for web traffic. More on the protocols: SOCKS5 proxies.
Send only some sites through the proxy
With mode: rule, rules decide what goes where. This profile sends two sites through ProxyField and everything else direct:
rules:
- DOMAIN-SUFFIX,example.com,ProxyField
- DOMAIN-SUFFIX,ipinfo.io,ProxyField
- MATCH,DIRECTSwitch mode to global to send everything through the selected proxy, or direct to stop using it.
Rotation and sticky sessions in Clash
Rotation happens at the ProxyField gateway, not in Clash. In rotating mode the gateway gives a new IP on every request; a sticky session keeps one IP from 30 s to 36 h, which suits sites where you stay signed in. Region, session and session time go in the same username: -region-<region>, -session-<id> and -ttl-<seconds> (30 to 129,600 seconds, 20 minutes by default), as in <login>-country-us-region-new_york-city-new_york-session-he9f2qga-ttl-600; every part after the login is optional. Residential is the default; add -mobile after the login for mobile IPs: <login>-mobile-country-us. Clash's own url-test and fallback groups choose between entries by health check; they don't change the IP behind an entry. Targeting covers country, region (state) and city, with all 50 US states.
System proxy, TUN mode and the whole device
The client's system proxy setting points the operating system's proxy at Clash, so apps that follow the system proxy use it. TUN mode captures traffic from apps that ignore the system proxy too. On a router, OpenClash covers every device on the network; on Windows, an app-by-app alternative is Proxifier.
Fix Clash proxy errors
| Symptom | Likely cause | Fix |
|---|---|---|
| No proxies after importing the profile | No readable proxies: list | See the table above |
| The entry does not connect | Wrong server, port or login | gate.proxyfield.io, 7000, credentials from your account |
| The browser still shows your IP | The client's system proxy is off, or a rule sends the site DIRECT | Turn on the system proxy; check rules and mode |
| An account asks you to verify again | The IP changed between connections | Use a sticky session |
| Some sites won't load | The site blocks the IP, or a restricted category | Some site categories are restricted to protect the network, including financial and government services |
Gateway error messages: 407 Proxy Authentication Required for a wrong login or password, an IP not on the allowlist or a malformed location, 402 Payment Required when no traffic is left and 502 Bad Gateway when no exit could be connected; a restricted site gets no separate response, and a 403 comes from the site itself. Codes are in proxy errors. Test a proxy line outside Clash in the proxy checker. Our 24/7 live chat helps with setup and integration.
Which proxies to use with Clash
| What you do | Proxy | Price |
|---|---|---|
| Location checks and browsing by country or city | Residential, rotating or sticky | from $1.95/GB ($2.95 for 1 GB) |
| Apps and sites as phone users see them | Mobile 5G/4G | from $2.45/GB ($3.45 for 1 GB) |
| One fixed IP for days | Dedicated ISP | from $2.29 per IP per 30 days |
Clash routes traffic; ProxyField supplies the IPs. Use them for lawful work within our acceptable use policy.
Get started
Start with the Easy Trial: 1 GB for $2.95, with no minimum purchase and no subscription. The traffic never expires and all purchases are final. See pricing per GB.
Clash Proxy Setup FAQ
How do I set up a proxy in Clash for Windows?
ProxyField proxies work in Clash from $1.95/GB ($2.95 for 1 GB): add an entry under proxies: with type: http, server: gate.proxyfield.io, port: 7000, your username and password, put it in a proxy group, and import the profile. Clash Verge Rev, the maintained replacement for Clash for Windows, loads the same profile; then pick the entry in the ProxyField group.
Why does Clash show no proxies after I import a profile?
The client found no readable proxies: list and no proxy-providers: section in the profile. Usually the imported subscription link returned a plain list, base64 text or a web page instead of YAML, or the proxies: key is misspelled or indented under another key. Import a YAML file with a proxies: list instead, with the ProxyField gateway and login written into it.
What is a Clash proxy?
An entry in a Clash profile's proxies: list: a name, a type (HTTP, SOCKS5 and others), a server, a port and a login. Clash sends traffic to it according to the profile's groups and rules.
What is a proxy provider in Clash?
A proxy-providers section loads proxies from a separate file or URL instead of listing them in the profile. Groups then pull them in with use:, so you update the list without touching the rules.
How do I add a SOCKS5 proxy to Clash?
Add an entry with type: socks5, server, port, username and password, and set udp: false unless your provider supports UDP. Clash passes the SOCKS5 login itself, so the apps behind it need none. With ProxyField, HTTP with username:password is the setup to use; SOCKS5 runs on the same gate.proxyfield.io:7000 with the same username and password.
Does OpenClash support SOCKS5 proxies?
Yes, OpenClash runs the same core on OpenWrt routers and reads the same profile format, so a type: socks5 entry with a login works there. Every device behind the router then uses the rules you set.
Is Clash for Windows still maintained?
No, its development stopped in 2023, and the original Clash core repository was removed the same year. Use a maintained client on the Mihomo core, such as Clash Verge Rev; your profiles keep working.
What is the difference between Clash, Clash Meta, and Clash Verge?
Clash was the original core; Clash Meta is its fork, now called Mihomo, which adds protocols and features; Clash Verge (today Clash Verge Rev) is a desktop app that runs the Mihomo core. The profile format is shared.
Which Clash client should you use?
On a computer, Clash Verge Rev or FlClash; on Android, Clash Meta for Android or FlClash; on a router, OpenClash. All run the Mihomo core and accept the same proxy entries.
Which proxy type should you use with Clash?
HTTP entries with a username and password are the simplest for web traffic; SOCKS5 suits apps that need TCP beyond the web. ProxyField residential IPs suit location checks, and mobile IPs suit apps built for phones.
Show 6 more questionsShow fewer questions
Is Clash a VPN?
No. Clash is a rule-based proxy client: it decides which traffic goes to which proxy, and in TUN mode it captures traffic the way a VPN app does. The IPs come from the proxies you add.
Does Clash work with rotating residential proxies?
Yes. Rotation happens at the ProxyField gateway, which gives a new IP on every request in rotating mode. For sites where you stay signed in, use a sticky session, which keeps one IP from 30 s to 36 h.
Can I use ProxyField proxies in Clash?
Yes: add one entry per location to the proxies: list with gate.proxyfield.io, port 7000 and your login, such as <login>-country-us-city-new_york for New York. Residential proxies cost from $1.95/GB, and the traffic never expires.
How do I send only some sites through the proxy in Clash?
Use mode: rule with lines such as DOMAIN-SUFFIX,example.com,ProxyField for the sites you want, and end with MATCH,DIRECT. Everything not listed then goes direct.
What is the difference between Clash's port 7890 and the proxy's port 7000?
Port 7890 (mixed-port) is the local port where your apps connect to Clash. Port 7000 is the ProxyField gateway that Clash connects to; you need both.
How do I check which IP Clash is using?
Select the entry in the ProxyField group, make sure the client's system proxy or TUN mode is on, and open https://api.ipify.org in a browser. https://ipinfo.io/json shows the country and city of that IP.