---
title: "從 Clash Verge、ClashX 或 Mihomo 轉換"
description: "如何把電腦上 Clash Verge、ClashX 或 Mihomo 的 Clash / Mihomo 訂閱與設定帶到 iPhone 與 iPad 上的 Potatso。"
---

> Documentation Index
> Fetch the complete documentation index at: https://potatso.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 從 Clash Verge、ClashX 或 Mihomo 轉換

Potatso 可讀取 Clash 與 Mihomo 設定，也就是 Clash Verge、ClashX 與其他以 Mihomo 為基礎的 App 使用的格式。在 iPhone 或 iPad 上匯入同一個訂閱 URL 或設定檔，你的代理、代理群組、規則、規則集與 DNS 設定都會一併帶過來。

## 帶入你的訂閱 {#subscription}

1. 從服務商或 Clash App 中的設定檔複製訂閱 URL，並傳送到你的 iPhone 或 iPad。
2. 在 Potatso 的**首頁**，點一下 **+** 按鈕，再點一下**透過連結/檔案匯入**。
3. 貼上 URL，然後點一下**繼續**。
4. 檢查預覽。在**匯入到**下選擇放置位置，再點一下底部的按鈕。

Potatso 向訂閱伺服器表明自己是 `clash.meta`，因此依 App 決定格式的伺服器，會傳送與你電腦上相同的 Clash / Mihomo 設定。

從 URL 匯入的訂閱會持續更新，預設每天一次。你在 Potatso 中做的變更會在更新後保留。Potatso 會依伺服器傳送的內容下載訂閱：你在 Clash App 中對設定檔做的修改不屬於其中。請見[匯入訂閱與設定](/docs/zh-hant/guides/import-subscriptions/)。

## 帶入設定檔 {#file}

如果你的設定不是來自 URL，或你想使用在電腦上編輯過的版本，請匯入 YAML 檔案：

1. 把檔案移到 iPhone 或 iPad，讓它出現在「檔案」App 中。
2. 在 Potatso 中，點一下 **+**，再點一下**透過連結/檔案匯入**。
3. 在**來源**下選擇**檔案**，然後點一下<strong>選擇檔案…</strong>並選取該檔案。檔案必須是 UTF-8 文字，且不超過 5 MB。
4. 點一下**繼續**，檢查預覽，然後匯入。

你也可以不選擇檔案，而是把整份設定貼到**連結**下的欄位。無論哪種方式，設定都只會匯入一次：沒有可供更新的來源。

## 會帶過來的內容 {#carries-over}

| Clash 或 Mihomo 設定中的內容 | 在 Potatso 中 |
| --- | --- |
| 使用支援協定的 `proxies` | ✅ 請見[協定](/docs/zh-hant/protocols/)。 |
| `proxy-providers` | ✅ |
| `proxy-groups`：`select`、`url-test`、`fallback`、`load-balance`、`relay` | ✅ |
| `rules`，包含 `AND`、`OR`、`NOT`、`GEOIP`、`GEOSITE` 與 `RULE-SET` | ✅ Potatso 無法表示的規則會被略過。 |
| `rule-providers` | ✅ |
| `dns` | ✅ |
| `mode` | ✅ 會成為設定檔的出站模式。 |
| `sub-rules` | ❌ 不匯入 |
| 其他類型的代理，例如 WireGuard、TUIC 或 SSH | ❌ 略過 |

預覽會在**相容性問題**下列出所有被略過的內容及原因。被略過的規則會連同其規則編號一併列出，方便你在設定中找到它們。

Potatso 沒有 HTTPS 解密（MitM）、重寫或腳本功能。

## 匯入之後 {#next}

1. 在**首頁**，檢查出站模式。含有規則的設定會以規則模式匯入，除非其 `mode` 另有指定。請見[出站模式](/docs/zh-hant/guides/outbound-modes/)。
2. 打開狀態卡片上的開關即可連線。第一次連線時，iOS 會詢問是否加入 Potatso 的 VPN 設定：請點一下**允許**。

若要在匯入後更改規則與群組，請見[規則與規則集](/docs/zh-hant/guides/rules-and-rule-sets/)和[代理群組與測速](/docs/zh-hant/guides/proxy-groups-and-speed-tests/)。

Source: https://potatso.com/docs/zh-hant/guides/migrate-from-clash/index.mdx
