Configuration · 7 min read

Where the config file lives

A FlClash profile is a mihomo YAML. Where the config directory is, what each file does, why edits do not apply, and how to chain proxies with dialer-proxy.

FlClash does not invent a config format: a subscription downloads as one mihomo (Clash.Meta) YAML file. Understand that and most "where is it" and "why did my edit not apply" questions answer themselves.

How to find the config directory

Use the in-app entry rather than memorising a path: select the active profile on the config page; the menu usually offers "Edit" and "Open folder". The first edits in place, the second opens the real folder on your machine.

PlatformRoughlyNotes
WindowsAppData under your user folder (Roaming or Local)Installer and portable builds differ: the portable one keeps data next to the executable
macOSApplication Support in your LibraryLibrary is hidden by default; use Go to Folder instead of browsing
Linux~/.local/share or ~/.configDepends on the user it runs as; AppImage and deb may differ
AndroidThe app private directoryNot browsable without root — use in-app import and export instead
Why no hard-coded path here

App names, package ids and folders change between versions and distribution types. A hard-coded path goes stale within two releases and then misleads. Treat the table as orientation; take the real path from the in-app "Open folder".

What is in the folder

File or folderPurposeEditable by hand
Main config (config.yaml)Proxy groups, rules, DNS and runtime optionsYes, mind the indentation
Profile cacheThe last fetched copy, overwritten on refreshEdits are lost
Rule and provider cachesLocal copies of remote rule and node listsNo need to touch
LogsRuntime records, the place to look when debuggingRead only
Why an edit does not take effect

Two usual causes: you edited the cached subscription and the next refresh overwrote it, or you did not reload, so the client still runs the copy in memory. Order matters: edit the main config, reload, then check the log for errors.

Chaining proxies with dialer-proxy

Chaining means entry node then exit node: traffic reaches the entry first, and the entry dials the exit. A common pattern is a stable line as the entry and a well-placed node as the exit, getting both properties at once. mihomo expresses this with the dialer-proxy field.

Point the exit node at the entry group name; the name must match your own config
proxies:
  - name: exit-jp
    type: ss
    server: 203.0.113.10
    port: 8388
    cipher: aes-128-gcm
    password: "your-password"
    # 关键:这条节点通过 entry-hk 这个组出去
    dialer-proxy: entry-hk

proxy-groups:
  - name: entry-hk
    type: select
    proxies:
      - hk-01
      - hk-02
  • Chaining only makes sense when entry and exit live in the same profile; combining two subscriptions means merging their nodes into one config first.
  • Each extra hop costs handshakes and retransmits. Two hops usually suffice; beyond three the latency penalty is visible.
  • A subscription refresh can overwrite a hand-written dialer-proxy. Either preserve it with an override or re-add it after updating.

Bypassing the proxy for some traffic

  • At the rule level: route the target to DIRECT in rules. That is more precise than switching the proxy off globally and leaves everything else intact.
  • At the app level on Android: use per-app proxy to exclude apps that do not need the tunnel, saving both battery and data.
  • At the subnet level: list your LAN and printer ranges as direct so local devices do not get routed outward.
A useful order

Debug config in this order: did you edit the right file, did you reload, does the log complain, did the rule match as expected. Only after those four should you suspect the build or the subscription itself.

No subscription yet?

FlClash is only a client and ships without nodes. With a plan: pay, copy the link, paste it in — three minutes to online.

Buy a plan
Still stuck?

Attach logs and system info when you open a GitHub issue — far more likely to get reproduced than a chat message.

Open an issue