Why the name is structural
In a Clash-style configuration, a proxy has a name and everything else refers to it by that name. A proxy group lists member names. A rule targets a group or a proxy by name. The controller API addresses a proxy by name. There is no numeric id, so the name is the primary key.
A primary key cannot repeat. When two entries share one, the core cannot answer "which proxy does this rule mean", so it rejects the configuration instead of picking one. The error names the duplicated string, which is the only piece of information you need.
Where duplicates come from
Almost none are hand-written. They arrive through merging, and the merges are routine:
- Two providers with overlapping node names. Providers are frequently generated from the same upstream, so both can contain a node called
HK-01or named after the same city. Each provider is valid alone; together they collide. - A provider plus a manual entry. You added a node by hand with a name that a provider also supplies.
- Two subscriptions imported into one profile. Same mechanism as providers, and the most common report, because importing a second subscription is exactly what people do when the first is slow.
- Re-importing the same subscription twice. The second import duplicates every name at once, so the error appears immediately and the whole profile fails.
That last case has a distinctive signature: the error fires on the first reload after an import and the profile worked minutes earlier. If that matches, you do not have a naming problem, you have a duplicate source — remove the second copy rather than renaming anything.
Three fixes, in order of preference
Remove the duplicate source
If the collision is the same subscription imported twice, deleting the extra copy is the correct fix and the only one that leaves the profile clean. Renaming in this situation hides the mistake and doubles the node list, which then doubles the health checks and the confusion when a node appears twice with different latency.
Prefix by provider
When the sources are genuinely different and both are wanted, make the namespace explicit. Prefixing every node from a provider with a short tag — the provider name, a region code — makes collisions structurally impossible and has a second benefit: the node list becomes readable, because you can tell which source a node came from.
Do it at the provider level rather than node by node, or the next provider update reintroduces the collision.
Rename individual entries
Appropriate only for a small number of hand-maintained nodes. It is the weakest option because it must be repeated on every update, and a rename that is forgotten produces the same error again with no memory of the earlier fix.
The trap: the error names a name, not a location
The message gives you the duplicated string and nothing else. With two providers of forty nodes each, searching that string in the profile finds nothing, because provider nodes are not in the profile — they are downloaded at runtime.
So resolve the location this way: if the name is absent from your configuration file, it is a provider collision, and the fix belongs in the provider definitions. If it is present in the file, it is a local entry colliding with something, and the file search will show both occurrences.
This distinction saves the most time in this topic, because people search the file, find one occurrence, and conclude the message is wrong.
What renaming breaks
Renaming a proxy is not free, and the cost is invisible at the moment you do it.
- Groups that list the old name now reference something that does not exist, which produces a different error — a group with a missing member — after you fix the duplicate.
- Rules that target the old name stop matching. A rule naming a specific node silently stops applying, so traffic takes a different path with no error at all.
- Saved selections in the interface record the chosen node by name, so a rename resets the selection to the default.
This is why prefixing at the provider level is preferable: it changes every name in a source consistently, and the references are usually written against groups rather than individual nodes, so fewer of them break. Where references do exist, update them in the same edit rather than in a second pass — a profile reloaded between the two edits will fail and tell you less than the combined edit would.
Frequently asked
I only imported one subscription. Why a duplicate?
Check for a provider that also supplies the same nodes, or a hand-added entry. A single subscription import into an existing profile that already had those nodes produces the same error as importing twice.
Does the duplicate check apply to groups too?
Yes, group names share the same namespace in the sense that rules address both proxies and groups by name. A group and a proxy with the same name create the same ambiguity, so the same rule applies.
Can I ignore it and let the core pick one?
No. The configuration is rejected rather than resolved, so there is no partial load to work with. The choice is made at parse time and the parse fails.
Will renaming fix it permanently?
Only if the name cannot come back. A rename applied to one node is undone by the next provider update that restores the original name. Prefix at the provider level, or remove the duplicate source, to make it stable.
The name in the error does not exist in my file at all.
Then it came from a provider, which is downloaded at runtime. The fix is in the provider definition — a prefix, a filter, or removing the overlapping provider — not in the profile body.
Duplicate names are one route to a group that resolves to nothing — the empty-group case is diagnosed separately.