---
title: "從 Stash 轉換"
description: "如何把 Stash 的 Clash 訂閱、伺服器、代理群組與規則轉移到 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.

# 從 Stash 轉換

Stash 使用 Clash 設定，Potatso 也能讀取。匯入同一個訂閱 URL 或設定檔，你的代理、代理群組、規則、規則集與 DNS 設定都會一併帶過來。

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

1. 複製你在 Stash 中使用的訂閱 URL。
2. 在 Potatso 的**首頁**，點一下 **+** 按鈕，再點一下**透過連結/檔案匯入**。
3. 貼上 URL，然後點一下**繼續**。
4. 檢查預覽。在**匯入到**下選擇放置位置，再點一下底部的按鈕。

從 URL 匯入的訂閱會持續更新，預設每天一次。你在 Potatso 中做的變更會在更新後保留。請見[匯入訂閱與設定](/docs/zh-hant/guides/import-subscriptions/)。

## 帶入設定檔 {#file}

如果你在 Stash 中編輯過設定，或設定不是來自 URL，請改為匯入 YAML 檔案：

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

檔案只會匯入一次：沒有可供更新的來源。

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

| Stash 設定中的內容 | 在 Potatso 中 |
| --- | --- |
| 使用支援協定的代理 | ✅ 請見[協定](/docs/zh-hant/protocols/)。 |
| 代理集 | ✅ |
| 代理群組：`select`、`url-test`、`fallback`、`load-balance`、`relay` | ✅ |
| 規則與規則集 | ✅ Potatso 無法表示的規則會被略過。 |
| DNS 設定 | ✅ |
| `mode`（rule、global、direct） | ✅ 會成為設定檔的出站模式。 |
| 其他類型的代理，例如 WireGuard 或 TUIC | ❌ 略過 |
| HTTPS 解密（MitM）、重寫、腳本 | ❌ Potatso 沒有這些功能。 |

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

## 匯入之後 {#next}

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

連線 Potatso 之前，請先中斷 Stash 的連線。

若要在匯入後更改規則與群組，請見[規則與規則集](/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-stash/index.mdx
