Smart NAS system

Copyright © Quectel Wireless Solutions Co., Ltd. 2026. All rights reserved.


Built around CasaOS services and the OpenClaw agent, the Smart NAS system lets you issue commands by voice or text. The system plans automatically and invokes tools to handle file management, photo album organization, media downloading, knowledge Q&A and image processing, delivering a "get it done in one sentence" intelligent experience.

../../../_images/image_JhIIb2rYQoEqdHxMkY4cTtUsnlh.webp

Development resources

Development accessory list

Note

The development accessories are for reference only. Setups may vary depending on the development environment. For example, if you develop over an SSH remote connection, a display is not required.

Accessory

Quantity

Specifications

Quectel Pi H1 smart single-board computer

1

-

USB-C power adapter

1

Official 45W USB Type-C Power Supply for Raspberry Pi 5, White Color, US Plug

Micro HDMI cable

1

Specification: Micro HDMI 2.0; cable length: 1 m; connectors: HDMI-A (male) to HDMI-D (male)

Ethernet cable

1

Cable length: 1 m; transfer rate: gigabit

CPU cooling fan (optional)

1

Raspberry Pi 5 Official Active Cooler with Thermal Pad

Speaker with 2-pin PH1.25 connector

1

2030 cavity speaker, 8 Ω 2 W, square, high sound quality, compact size, 2-pin PH1.25 connector

USB microphone (optional)

1

-

Display

1

24-inch HDMI monitor

Accessory reference images

../../../_images/image_CYWSbKWefogNYxxtSLRcaj9wnxf.webp

Quick start

Development preparation

The Quectel Pi H1 smart single-board computer ships with the Debian 13 system image pre-installed by default, so there is no need to flash an image again. Simply follow the steps below.

Hardware connections

../../../_images/image_HV9BbrzXCoFUAoxIePKceYXcnLh.webp
  1. Display connection: Connect one end of the Micro HDMI cable to the Micro HDMI port on the smart single-board computer, and the other end to the HDMI port of the monitor.

  2. Network connection: Connect one end of the Ethernet cable to the gigabit Ethernet port on the smart single-board computer, and the other end to a LAN port on the router (make sure the router is connected to the internet).

  3. Input device connection: Plug the USB keyboard, mouse and other input devices into the USB ports on the smart single-board computer. If you use wireless input devices, plug the receiver into a USB port on the board.

  4. Power connection: Connect the USB-A end of the power cable to the power adapter, and the USB-C end to the power port on the smart single-board computer (usually labeled POWER IN).

  5. Cooling fan connection (optional): First insert the ribbon cable of the cooling fan into the FAN socket on the smart single-board computer, then secure both ends of the cooler into the mounting holes reserved on the board.

  6. Speaker connection: Connect the speaker with the 2-pin PH1.25 connector to the SPK socket on the smart single-board computer.

Note

Microphone note: The speaker is used for TTS voice output, and the microphone is used for wake-up and voice commands. By default, the system prefers the USB microphone and automatically falls back to the onboard microphone of the main control board when USB is unavailable. When neither is available, the web text mode is not affected. Priority and device names are all controlled by .env.

Project implementation

  1. Open a terminal on the smart single-board computer and use git to clone the project code.

sudo apt update && sudo apt install -y git
git clone https://github.com/Quectel-Pi/demo-smart-nas-system.git ~/NAS-Demo

After the command completes, a NAS-Demo folder should be created under the user home directory.

  1. Run the following commands one by one in the terminal of the smart single-board computer. When the terminal indicates that the installation is complete, the deployment is done.

cd ~/NAS-Demo
bash install.sh 

Note

install.sh is idempotent and can be run repeatedly. It updates the model configuration while preserving existing services.

Interactive installation is recommended (by default you only need to enter the API Key):

  • For the Base URL, just press Enter (defaults to * https://api.deepseek.com/v1*) .

  • Paste the API Key (input is not echoed).

  • The Model ID defaults to deepseek-flash.

Common provider parameters:

DeepSeek: base-url=https://api.deepseek.com/v1                         model-id=deepseek-v4-flash
Qwen: base-url=https://dashscope.aliyuncs.com/compatible-mode/v1       model-id=qwen-plus
OpenAI:   base-url=https://api.openai.com/v1                           model-id=gpt-4.1-mini

If you later modify the model configuration in ~/NAS-Demo/.env (for example MODEL_BASE_URL, MODEL_API_KEY or MODEL_ID), run the following command to apply it immediately:

./oc.sh model-apply

If you changed the environment variables related to the voice bridge, save the file and then run:

sudo systemctl restart voice-bridge
  1. Open the CasaOS console.

Run the following command in the terminal, then copy the printed link into a browser to open it and register a user:

bash ./oc.sh casaos-url

First check/configure the other apps (such as OpenClaw, Immich, Jellyfin, Files and the web chat assistant) on the CasaOS app page.

  1. Open the OpenClaw console and pair.

On CasaOS, click to open the OpenClaw console.

../../../_images/image_Ir1MbnUxYo6JI1xdzcHcZqgQnse.webp

On first access you may see a self-signed certificate risk warning; just click "Continue anyway". Then run the following commands in the terminal to approve device pairing.

./oc.sh pair-list
./oc.sh pair-approve <request_id>
../../../_images/image_NeXUbjvh0oPcmyxZk3QczeNLnxb.webp ../../../_images/image_G6MKb4AQJos9G7x9CcJcprofnNd.webp
  1. Log in to the Immich album.

On CasaOS, click to open the Immich console.

../../../_images/image_RvRmbzyyBoXpGGx4LLBcOZZNnwd.webp
  • On first open, click Getting Started and follow the page to create the administrator account and password (use admin@immich.app for the email).

  • If you are taken directly to the login page, use the administrator account and password you already created.

  • Select the language, then continue with the default settings.

  • In Immich: Account Settings → API Keys → New API Key (select all) → Create.

  • Write the key into the IMMICH_API_KEY field of the ~/NAS-Demo/.env file.

Run the following command in the terminal to register the Immich tool. On success, it displays "Completed: Immich Finished".

cd ~/NAS-Demo
./oc.sh tools-immich-setup
  1. First-time Jellyfin setup.

On CasaOS, click to open the Jellyfin console.

../../../_images/image_FGkcbQX6oolnlOxrMFtciId3nAb.webp

First-time wizard steps:

  • Select the language and continue.

  • Create the administrator account and password.

  • Add media libraries:

    • Type "Movies" → enter /media/Movies as the folder path.

    • Type "Shows" → enter /media/TV Shows as the folder path.

    • If the picker only shows /media and its subdirectories cannot be opened, go back to the terminal and run ./oc.sh tools-media-setup, then click "Refresh" above the folder list to browse and select again.

  • Keep the default metadata language and finish the wizard.

After the wizard, create an API key:

  • In Jellyfin: Dashboard → Advanced → API Keys → New API Key.

  • Write the generated key into the JELLYFIN_API_KEY field of the ~/NAS-Demo/.env file.

  • Run the following command to verify that the configuration took effect.

cd ~/NAS-Demo
./oc.sh jellyfin-apply  # One-click check of whether .env matches the runtime state and whether the API returns 401

Going forward, videos downloaded by media_downloader are placed in ~/nas_share/downloads/Movies (inside the Jellyfin container this directory is mounted as /media), and Jellyfin automatically scans and imports them into the library.

  1. Enable the voice entry.

Voice/web chat is the default interaction entry and must be enabled on first use.

Verify the two entries:

systemctl is-active voice-bridge          # Output "active" means normal
curl -sS http://127.0.0.1:28082/healthz   # Output "OK" means normal
journalctl -u voice-bridge -f             # Real-time logs (wake it up by saying "Xiaoyuan Tongxue" to the microphone)
  1. Try saying something.

Enter text/voice in Voice Assistant to chat (or wake it up with the wake word "Xiaoyuan Tongxue"):

Command examples:
Download the test video and play it
Organize the photos in the family album into categories, preview first
Add a retro filter to the photos in the family album, preview first
Where is the housing contract

Note

The voice command examples above have been verified on the current voice bridge. If a directory name itself is in Chinese, it is normal for the English reply to keep the original directory name; This does not indicate a speech recognition failure.

Routine maintenance

All maintenance commands go through oc.sh, which is generated automatically during the one-click installation using install.sh. Run ./oc.sh or ./oc.sh help at any time to view the full command list.

./oc.sh status                # Check the OpenClaw container status
./oc.sh logs                  # View OpenClaw logs (last 120 lines by default)
./oc.sh logs all 60 --level=error   # Aggregate error logs of all services for the last 60 lines
./oc.sh health                # Gateway health check
./oc.sh url                   # Print the console access URL (with token)
./oc.sh casaos-url            # Print the CasaOS home page address
./oc.sh model                 # View the current model configuration
./oc.sh model-apply           # Apply the .env model configuration immediately after editing
./oc.sh deploy                # Redeploy the core services
./oc.sh reset                 # Reset the OpenClaw configuration to the factory template and restart
./oc.sh ui-fix                # Re-apply the CasaOS Legacy card filter
./oc.sh pair-list             # List devices pending pairing
./oc.sh pair-approve <id>     # Approve device pairing
./oc.sh mic-mode status       # View the current microphone mode (.env + runtime state)
./oc.sh mic-mode usb          # Switch to USB priority (falls back to onboard when unavailable)
./oc.sh mic-mode onboard      # Use the onboard microphone only
./oc.sh docker-mirror         # Configure Docker mirror acceleration
./oc.sh jellyfin-apply        # Apply the Jellyfin .env configuration to the voice bridge and verify (restart + authentication)

Note

The voice bridge is a systemd service and does not go through ./oc.sh logs. Use journalctl -u voice-bridge -f to view real-time logs.

Application demo

smart-nas-en

FAQ

Symptom

Solution

OpenClaw/Immich/Jellyfin does not appear on the CasaOS page, or clicking an app does not open it

Run ./oc.sh openclaw-app-deploy, ./oc.sh immich-apply and ./oc.sh jellyfin-deploy to re-register the app entries

bash ./oc.sh casaos-url does not open

If it prompts "CasaOS Web service not detected", run curl -fsSL https://get.casaos.io | sudo bash to install CasaOS

Sending messages in Voice Assistant (28083) returns 502 / connection refused

The voice bridge (28082) is not running. Rerun bash install.sh to install it automatically, or manually run cd ~/NAS-Demo/local_voice_chat && ./install_voice_bridge_service.sh

Speech recognition outputs only single characters / no response

systemd is missing the PulseAudio environment. Confirm that voice-bridge.service contains LD_PRELOAD + PULSE_SERVER, then run sudo systemctl restart voice-bridge

Installing the voice bridge reports "python3 with numpy/sherpa_onnx not found"

Dependencies are not installed: run python3 -m pip install --user sherpa-onnx numpy and retry

Voice Assistant playback is blocked (Chrome/Edge shows Block Audio)

This is caused by the browser autoplay policy, not a service failure. Click the lock/permissions icon on the left of the address bar → Permissions → change Autoplay to Audio and Video

Immich photo search returns nothing

The background CLIP task has not finished: trigger Smart Search in the admin UI, or run ./oc.sh immich-sync-jobs

Photo classification gets stuck

immich-machine-learning may have exited: run sudo docker start immich-machine-learning

Changes to the model configuration in .env do not take effect

Run ./oc.sh model-apply (reads .env, applies immediately and restarts)

Changes to JELLYFIN_API_KEY in .env do not take effect / Jellyfin 401 appears in the logs

Run ./oc.sh jellyfin-apply (restarts the voice bridge and verifies that .env matches the runtime state)

After installation only "NAS Files" succeeded, other apps are missing or repeatedly fail to install

Usually caused by the connection being reset while pulling large images (the log /var/log/casaos/app-management.log shows connection reset by peer). Run ./oc.sh docker-mirror to configure mirror acceleration, then reinstall

Technical support and contributions

If you encounter any issues during use, you are welcome to submit technical inquiries on the Quectel official forum. Our technical support team will answer promptly.

Project open-source address: https://github.com/Quectel-Pi/demo-smart-nas-system

You are welcome to submit Issues to report problems or Pull Requests to contribute code improvements!