Deploying AI Agents on a Home NAS at Low Cost: A Six-Week Practice Summary
Over six weeks, I deployed an AI agent on a decade-old home NAS to handle daily tasks, process media, and run scheduled jobs. This article details the hardware setup, Docker-based architecture, cost analysis comparing pay-as-you-go and subscription models, and the methodology for effectively managing and "training" the agent through rule accumulation and precise requirements.
1. Background: Why Deploy an Agent at Home?
In the past year, the capability boundary of large language models has rapidly expanded from “chat Q&A” to “task execution.” Agents that understand requirements, call tools, and run continuously are moving from cloud demos to personal daily use. For ordinary users, the real question is not “Can AI do this?” but “How can I get it to work reliably for me at an affordable cost?”
My answer: Deploy it on an old computer, control costs with a subscription-based model service, and spend six weeks tuning a set of rules. Here is the full review.
2. Conclusion First: Six-Week Output List
Here are the quantified results of these six weeks: 76 conversations, about 16,000 messages, and approximately 800 million tokens. Specific outputs include:
- 4 complete short films (scripts, material editing, final output)
- A 39-page presentation deck
- A 3.5-minute family commemorative video
- Classification, deduplication, and organization of 339 photos
- 6 scheduled tasks, pushed to my phone at 7:30 AM every day
My own work consisted of only two things: clearly stating the requirements; adding a rule after it made a mistake. The former is input quality; the latter is experience accumulation. The value of an agent lies not in a single stunning answer, but in its ability to continuously handle those backlog tasks “you want to do but keep putting off.”
Two examples:
- Printer issues: Driver adaptation, log troubleshooting, and code debugging have a very high threshold for non-core developers. I tried several times and gave up. The characteristics of such tasks—many steps, complex errors, messy docs—are exactly the agent’s strengths. It can read logs segment by segment, gradually narrow down the scope, and finally get it running.
- 40,000 existing photos: Accumulated over years, from multiple devices, with lots of duplicates. The agent helped me complete deduplication and merging, and generated a local webpage sorted by year, where each photo can be checked for printing. Data I hadn’t wanted to touch for years is now archived with a few clicks on a webpage.
3. Hardware: Old Devices are Completely Sufficient
The hardware for this solution is very “unimpressive,” but it proves one thing: the agent itself is not heavy; the heavy part is the model service, and the model service is in the cloud.
- A decade-old NAS with a low-end quad-core CPU
- 7.8GB RAM
- Three mechanical hard drives in RAID 1 for data redundancy
The local machine does not perform inference; it only receives instructions, orchestrates tasks, accesses files, and executes scripts. Therefore, the computing power requirement is extremely low; the performance of a phased-out office all-in-one machine is sufficient. This is a key realization for budget-conscious users: You don’t need to buy a GPU; you need a stable, always-on environment.
4. Architecture: Design Principles of Containerized Deployment
The agent runs via Docker Compose, split into two containers:
services:webui:# Chat interface, session storageapi:# Model calls, scheduled task dispatchvolumes:- ./data:/app/data
There are two design decisions worth emphasizing here:
1. Separation of Concerns. Separating the interface layer from the execution layer means upgrades, restarts, and troubleshooting do not interfere with each other. Session data is managed by the frontend container, while model calls and scheduled dispatch are handled by the backend container. If either crashes, it does not affect the data integrity of the other.
2. Externalized State. Configurations, session databases, skill definitions, and logs are all placed in the shared data volume. The core philosophy is: Data is in the volume; containers can die at any time. If a container crashes, rebuild it; if the host machine breaks, swap in a new one and recover the full context via the data volume. This is the most overlooked yet critical disaster recovery design in personal deployments.
Scheduled tasks (the 7:30 AM push) are driven by a scheduler inside the backend container, independent of whether the interface is open—ensuring the semantics of an “always-on service”: tasks don’t stop just because you close your browser.
5. Cost: Pay-as-You-Go vs. Subscription
This is the most practical experience I want to convey in this article.
First Month (Tuning Phase): I used pay-as-you-go and spent a total of 66 RMB. But every time before letting the agent batch-process hundreds of photos, I had to mentally calculate “how much will this round cost?” This psychological burden directly suppresses usage intensity—you don’t dare throw all the dirty work at it, and its value is discounted.
Second Month (Production Phase): Switched to a subscription plan. With my usage (heavy, about one-fifth of the plan’s quota), the actual leverage was nearly 2x—I got computing power worth double the subscription fee, without “per-call pricing anxiety.”
The conclusion is straightforward: use pay-as-you-go for light experimentation; use a subscription for heavy daily use. The bulk of an agent’s cost lies in model token consumption, especially for tasks involving image and video understanding, where a single session can consume dozens of times more tokens than a standard Q&A. When your goal is “continuous output” rather than “occasional experience,” capped billing is the only rational choice. Furthermore, “finding the right model” is equally important—different models vary greatly in unit cost and areas of expertise. During the tuning phase, it’s best to test in parallel before settling on one.
6. Methodology: Three Habits Beyond the Two Tasks
Over six weeks, beyond “stating requirements clearly” and “adding rules,” I developed three habits:
1. Write requirements as acceptance criteria, not adjectives. Don’t say “help me organize photos”; instead say “sort into folders by shooting year, deduplicate keeping the highest resolution, generate an index webpage, and the webpage supports checking items one by one.” With verifiable requirements, the agent can self-check.
2. Solidify every failure into a rule. Once, the agent deleted thumbnails thinking they were original images. I added a rule: “Resolution must be verified before deletion.” The thicker the rulebook, the less rework. “Training” a personal agent is essentially the accumulation of rules.
3. Have it produce hand-offable interfaces. The result of organizing 40,000 photos wasn’t a pile of folders, but a webpage I could continuously operate on. A good agent output should reduce the human’s subsequent operation costs, not create a new organizational mess.
7. Final Thoughts
The biggest impact of these six weeks wasn’t the completion of a specific task, but a cognitive shift: the significance of AI for ordinary people lies not in what it can chat about, but in it taking on those things “you want to do but never finish.”
The technical barrier is much lower than imagined: an old NAS, a Docker environment, a subscription-based model service, and six weeks of tuning. The real barrier is persistence—in the first week, it often messed up, and many people give up there. But as long as you add rules one by one, from the second month on, it becomes a tireless, on-call family technician costing a few dozen RMB a month.
For readers wanting to start, the recommended path is: first set up the environment on the oldest idle device, externalize all data; in the first month, only run low-risk tasks (file organization, scheduled reminders) to accumulate a rulebook; in the second month, move to high-consumption tasks. Following this rhythm, you’ll likely get your own output list too.
