Unified Clash TUN fake-ip proxy detect & fix for Arch + Omarchy + Clash Verge.
# From repo
./proxyfix fix
# After install
proxyfix fix
proxyfix detect
proxyfix status- Clash merge profile
fake-ip-filterand DIRECTprepend-rules(Cursor, Steam, Discord, pacman, HuggingFace, etc.) - Clash localhost security (
allow-lan: false) - Shell proxy via
~/.config/omarchy/proxy.sh - Cursor
settings.jsonand~/.config/electron-flags.conf - Auto-runs after Clash config changes (systemd path + timer)
- Auto-runs on Clash Verge startup and
omarchy update
./install.shInstalls:
~/.local/bin/proxyfix→ this repo- systemd user units:
proxyfix.path,proxyfix.service,proxyfix.timer - Clash Verge
startup_scriptinverge.yaml
| Command | Purpose |
|---|---|
proxyfix fix |
Detect and repair all layers |
proxyfix detect |
Check only; exit 1 if broken |
proxyfix status |
Report + shell proxy status |
proxyfix test |
HTTPS smoke tests |
proxyfix download URL [out] |
Direct-first for large CDN files |
proxyfix fix --app steam |
Limit to one app group |
Domains in manifests/apps.yaml → direct_large_suffixes (Steam CDN, HuggingFace, LM Studio, etc.) try DIRECT first for files ≥ 50 MB. Falls back to Clash mixed port if direct fails.
Pacman always uses proxy (required for geo mirror routing).
- systemd path — watches Clash config/profile files
- systemd timer — every 10 minutes
- Clash Verge startup_script
- omarchy post-update hook
proxyfix detect && echo OK
getent ahosts api2.cursor.sh store.steampowered.com
systemctl --user status proxyfix.path proxyfix.timer
journalctl --user -t proxyfix -n 10After Cursor fixes: fully quit Cursor and reopen via cursor-launch.
Profile filenames in Clash Verge are per-install UIDs, so proxyfix resolves the
active subscription's enhancement chain from profiles.yaml at runtime — there
is nothing to edit to get started.
To pin a specific profile instead, set it in manifests/apps.yaml:
merge_profile: Merge.yaml # or `auto` (default)
rules_profile: autoEnvironment overrides take precedence over both, which is useful for testing:
| Variable | Purpose |
|---|---|
CLASH_DIR |
Clash Verge data directory |
PROXYFIX_MERGE_PROFILE |
Merge profile filename |
PROXYFIX_RULES_PROFILE |
Rules profile filename |
- Arch Linux (or derivative) with Clash Verge Rev
bash,python3,curl,iproute2,systemduser units
MIT — see LICENSE.