# How do I bring a NAS or cloud drive into chats?

> Cube Agent 2.4.1 Release (Build 2004105) User Guide.
> Category: Home & Content. Content baseline: 2026-12-05.
> Web page: https://cubeagent.app/en/docs/webdav_mounts/

## Three supported protocols (Pro)

- **WebDAV storage**: Works with Jianguoyun, Nextcloud, Synology WebDAV Server, AList / OpenList, and similar services, including remote access over the internet.
- **SMB network shares**: Works with LAN shares on Synology, fnOS, QNAP, and UGREEN NAS devices, Huawei Home Storage, and Windows or macOS shared folders—no extra WebDAV server required. Supports SMB2/SMB3 with signing authentication; SMB1 is not supported.
- **FTP / FTPS network storage**: Works with NAS devices, router USB drives, LAN servers, and web hosting accounts. Supports explicit FTPS (AUTH TLS, default port 21), implicit FTPS (default port 990), plain FTP on trusted local networks, anonymous sign-in, and Auto / UTF-8 / GBK filename encoding.

## How to add

Go to **Settings → Folder Mounts → Add** and choose **WebDAV storage**, **SMB network share**, or **FTP / FTPS network storage**. You can also open **Remote connections → Network storage**, or tap **+ WebDAV** / **+ SMB** / **+ FTP** directly from a chat's folder panel (mounts added from a chat are enabled for that chat automatically).

- **WebDAV**: Enter the server URL, username, and password. Quick templates are provided for Jianguoyun, Nextcloud, Synology, and AList, and you can also **Import** credentials in one tap from your Data Backup WebDAV account.
  - **Jianguoyun**: Use your registered email as the username, and generate an app-specific password under **Account Info → Security Options → Third-Party App Management**.
  - **Synology**: Install **WebDAV Server** from Package Center (default ports: HTTP 5005 / HTTPS 5006).
  - **AList / OpenList**: Use a URL ending in `/dav` (default port 5244) and enable WebDAV read and manage permissions for the user.
- **SMB**: Enter the server IP or hostname, share name, username, and password (default port is 445; domain and starting folder can be set under **More options**). Pasting `smb://IP/share-name` splits the fields automatically, and you can also **Import** credentials in one tap from your Data Backup SMB account. Tapping **Connect and save** tests connectivity and verifies the share directory at the same time.
- **FTP / FTPS**: Enter the server IP or hostname and select the security mode (explicit FTPS on port 21 by default). Pasting an `ftp://`, `ftps://`, or `ftpes://` URL splits the fields automatically. Turn on **Anonymous sign-in** if the server allows anonymous access. Port, starting folder, and filename encoding can be configured under **More options**.

## AI permissions

Set it once when adding the mount: **Read only**, **Ask before changes**, or **No confirmation** (default). With **No confirmation**, AI can read, write, edit, create folders, and rename files without confirmation pop-ups. **Deleting remote files always prompts for separate confirmation**, because most WebDAV, SMB, and FTP servers have no recycle bin.

## Security and certificates

- Self-hosted WebDAV and FTPS servers often use self-signed certificates: credentials are never sent until you verify the certificate SHA-256 fingerprint displayed in the form and save to trust it. If the certificate changes later, tap **Trust new certificate** on the management page. Use plaintext HTTP or plain FTP connections on trusted local networks only.
- SMB mounts use SMB2/SMB3 signed authentication and should be used on a LAN or trusted private network.

## Offline NAS or expired passwords

Even if you are away from home and your NAS is unreachable, you can still save the configuration and it will become available automatically once you return to its network. If your password changes or an app password is revoked, the management page shows **Password no longer works**—tap **Enter password again** to update it directly.

## Moving to another device

WebDAV, SMB, and FTP mount configurations and passwords are saved and restored with Data Backup (when credentials are included), Tap-to-Share exports, and Cloud Sync, so you do not need to reconfigure them on a new device. Temporary files downloaded locally are cache only and are not included in backups.

## Browsing, Markdown editing, and manual upload/download

Open any mounted local folder, WebDAV, SMB, or FTP storage under **Settings → Folder Mounts → Browse files** and tap folders to browse level by level:
- **Manual upload and download**: On writable mounts, tap the upload button in the toolbar to upload one or more local files (duplicate names prompt you to keep both, overwrite, or skip). Tap any regular file or open its action menu to **Save to device** or **Download and share** (up to 256 MB per file; downloads also work on read-only mounts).
- **Markdown documents**: Tap any `.md` / `.markdown` / `.mdx` file to preview its rendered output. With write permission enabled, open the top-bar create menu and choose **New Markdown document**, or switch to edit mode on a document page to edit, rename, and sync changes straight back (supports UTF-8 text up to 4 MB; read-only mounts support viewing and copying).

## Usage limits

Network storage is slower than local folders and providers may enforce request rate limits—ask AI to inspect specific subfolders rather than scanning an entire drive. Lossless cross-folder moving of files and folders within the same mount is supported (without overwriting existing same-name items); copy first when transferring across different mounts. On Jianguoyun, directories with more than 750 items may only display a partial listing.
