Integrations menu
Proxy app setup

Clash Proxy Setup: Step by Step

To use a proxy in Clash, add it to the proxies: list of your profile (YAML) with type: http, server: gate.proxyfield.io, port: 7000 and your username and password, put it in a proxy group, and select that group in your Clash client, such as Clash Verge Rev. ProxyField residential proxies for Clash cost from $1.95/GB ($2.95/GB for 1 GB), with a 99.6% success rate, according to our service data. Start with the Easy Trial: 1 GB for $2.95, no subscription, and the traffic never expires.

residential IPs
412M+
from, traffic never expires
$1.95/GB
Easy Trial
1 GB for $2.95
gate.proxyfield.io:7000
What goes into a Clash proxy entry
Clash keyProxyField value
typehttp (recommended) or socks5; HTTP, HTTPS and SOCKS5 all run on the same host and port
servergate.proxyfield.io
port7000
username<login>-country-us-city-new_york; the optional keys are -country-<cc>, -region-<region>, -city-<city>, -session-<id> and -ttl-<seconds> (30 to 129,600 s, 20 min when ttl is left out); add -mobile or -dc right after the login for mobile or rotating datacenter IPs (-dc takes the country only)
passwordyour ProxyField password
SOCKS5type: socks5 with the same server, port, username and password; udp: true works on residential entries; where a tool asks for a proxy URL, write socks5h:// so the gateway resolves the site's name
No passwordleave out username and password, add your device's IP to the allowlist (up to 100 IPv4 addresses) and set port to the port you set up in the dashboard
IP behavioura new IP on every request, or one IP for 30 s to 36 h with -session-<id>-ttl-<seconds>
mixed-port: 7890Clash's own local port for your apps; Clash connects on to the gateway port 7000
Headersthe gateway adds no Via, X-Forwarded-For or Forwarded header; the headers your apps send through Clash pass through; your Proxy-Authorization is removed before the request goes to the site

Set up Clash with ProxyField

  1. Create a text file proxyfield.yaml with the entry below under proxies:, a select group named ProxyField and the rule MATCH,ProxyField.
  2. Import the file as a new profile in your Clash client, such as Clash Verge Rev, and make it the active one.
  3. In the group ProxyField, select the entry.
  4. 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.

YAML
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):

ClientPlatformNotes
Clash Verge RevWindows, macOS, Linuxthe usual replacement for Clash for Windows
FlClashWindows, macOS, Linux, Androida simpler interface on the same core
Clash Meta for AndroidAndroidthe same core on a phone
OpenClashOpenWrt routerscovers every device behind the router

The profile format below works in all of them.

Set up a proxy in Clash, step by step

  1. Create a text file proxyfield.yaml with the profile below; replace <login> and <password> with your ProxyField username and password.
  2. 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
  3. Make that profile the active one.
  4. In the group ProxyField, select an entry, such as New York.
    Screenshot Clash Verge Rev with the ProxyField group and a US entry selected
  5. 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.
YAML
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,ProxyField

For 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:

CauseFix
You imported a link that returns a plain list, a web page or base64 text instead of a Clash YAML profileImport a YAML file like the one above
The proxies: key is misspelled or indented under another keyStart proxies: at the left margin; indent each entry with two spaces and a dash
Tabs instead of spacesYAML 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:

YAML
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,ProxyField

The 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:

YAML
rules:
  - DOMAIN-SUFFIX,example.com,ProxyField
  - DOMAIN-SUFFIX,ipinfo.io,ProxyField
  - MATCH,DIRECT

Switch 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

SymptomLikely causeFix
No proxies after importing the profileNo readable proxies: listSee the table above
The entry does not connectWrong server, port or logingate.proxyfield.io, 7000, credentials from your account
The browser still shows your IPThe client's system proxy is off, or a rule sends the site DIRECTTurn on the system proxy; check rules and mode
An account asks you to verify againThe IP changed between connectionsUse a sticky session
Some sites won't loadThe site blocks the IP, or a restricted categorySome 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 doProxyPrice
Location checks and browsing by country or cityResidential, rotating or stickyfrom $1.95/GB ($2.95 for 1 GB)
Apps and sites as phone users see themMobile 5G/4Gfrom $2.45/GB ($3.45 for 1 GB)
One fixed IP for daysDedicated ISPfrom $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.

Easy Trial: 1 GB for $2.95.

Try for the price of 1 GB, no subscription, traffic never expires.