
AgentZero can process sensitive data on your own computer without sending it to a cloud AI provider, provided it is configured with locally run models. The assistant runs inside a Docker container, while Ollama or LM Studio supplies the models it needs. Its developer, David Ondrej, demonstrates the setup and a demanding photo-analysis task using local models. Learn what the installation requires, where the models fit and what happened when the agent worked through a collection of personal photos.
Docker Separates the Agent From Your Computer
TL;DR Key Takeaways :
- AgentZero can keep processing on the computer when configured with local models.
- Docker provides isolation, while Ollama or LM Studio can supply the models.
- Chat, utility and embedding configurations need attention, including the local API address.
- A developer’s photo task produced a Markdown report but made the MacBook heat up and lag.
AgentZero runs inside a Docker container with Linux and a collection of tools included in its image. The image is a few gigabytes, so installing the assistant involves a substantial download before any models are added. The container isolates the agent from the rest of the computer, an important safeguard when an agent can run commands without asking for approval each time. An agent running directly on a computer could otherwise delete files or leak data.
Local processing can also work offline and keep sensitive material on the device rather than sending it to a cloud provider. The trade-off is that local models can be slower and demand more computer resources than cloud models. Both the model choice and the other work running on the machine affect how practical the setup is.
Installation Needs a Container and Local Models
The installation begins on the AgentZero website, where users should check the address carefully because other projects copy it. Its installation script is copied into a terminal to install AgentZero and its dependencies. The installer creates a new instance, offers a testing branch for features not yet publicly released or the latest stable release, and asks for a name and port. Pressing Enter accepts the default port of 5080, after which the Docker image is pulled.
Opening the instance in a browser initially brings up a red notification because no language model is connected. Ollama and LM Studio can run local models, although the developer recommends Ollama for its better AgentZero support. Ollama has its own installation script, and installing the app and command-line interface does not download a model. Connecting the two also requires a local Docker host address for the model API base URL, which must be obtained separately.
Choose Models Your Hardware Can Handle
Before downloading a model, check the memory available to it. On an Nvidia GPU, the relevant limit is GPU VRAM; Apple Silicon shares memory between the CPU and GPU. The developer suggests a model in the 20 to 35 billion parameter range for many users, depending on the machine, while an older PC can try 9 to 13 billion parameters. Qwen offers models in different size ranges.
Ollama’s Models page lists choices, and ollama list shows models already installed. Running ollama run followed by the chosen model name downloads it if necessary and starts it. In the developer’s test, a 122B model responded to a greeting on a MacBook at an estimated 40 tokens per second with reasoning. An earlier attempt to load it was stopped because the large model could slow the system while recording.
Downloads can take 10 minutes to 1 hour or longer, depending on model size and internet speed. The GLM 4.7 Flash utility model used for the test has 30 billion parameters, comes in different quantizations and occupied approximately 19 GB once downloaded. That storage and waiting time come on top of the Docker image.
Connect Chat, Utility and Embedding Models
AgentZero uses a chat model for the main conversation and a separate utility model for smaller background tasks, including memory operations. In Ollama Settings, the context length should be at least 16K, ideally 32K or above; the test used 256K. AgentZero’s Chat model settings need Ollama selected instead of the default OpenRouter provider, the exact installed model name, a matching context length and the local Docker host API base URL. Ollama must remain open or the model must keep running in a terminal.
After the chat model was configured, the agent displayed reasoning and answered a greeting, but later produced errors because the utility model was not yet connected. That model can be smaller and faster than the main one, but the developer advises against a 2 billion parameter model for the role. In AgentZero’s Utility model settings, select Ollama, enter the exact name shown by ollama list, leave the API key blank and use the same local base URL.
AgentZero’s long-term memory uses vector embeddings and Markdown files. Its default embedding configuration uses the Hugging Face provider and MiniLM L6 V2, which can cause problems for some Ollama users. If it does, Nomic Embed Text can be downloaded with ollama pull nomic-embed-text, then selected in Embedding model settings with the name nomic-embed-text and the same local base URL. Users without problems can leave the default alone, but should check that the chat, utility and embedding models have the local base URL.
Once the utility model was configured, a new chat successfully saved the developer’s name to memory. Its response was faster because the chat model was already loaded, avoiding a 20 to 30 second loading wait. That result shows why connecting the background model matters even when the first greeting works.
A Photo Task Tests Memory and Hardware
The developer’s photo test began with an error because the embedding model’s base URL had not been set. After correcting it, the same images and prompt were submitted again. Approximately 15 personal photos were supplied for analysis, with a request for GPS coordinates, dates, camera models and visual descriptions. The prompt also asked for food, people, landscape, documents, screenshots and other categories, plus a Markdown travel report with cities, a timeline and patterns.
The task took longer than a text-only request, and the context display reached 14,000 tokens as images used the available window faster than text. AgentZero ran Linux terminal commands, installed a metadata library and continued after an error. It returned a Markdown report with categories and a timeline, listing Japan, Thailand, Kazakhstan, UAE and Vietnam among the countries visited.
The workload also exposed the cost of running large models locally. The MacBook was recording 4K video while hosting three local models, including the 122B and 30B models, and it heated up and lagged. The developer values AgentZero’s persistence on tasks with enough context, compared with OpenClaw, Claude Code and OpenCode, which can stop early or repeatedly ask for feedback.
Keep Sensitive Work on the Device
The privacy case is strongest for information you do not want to upload to a cloud chatbot. The developer recommends local processing for medical and health information, financial records, personal photos and videos, passwords, legal documents, journals, therapy notes and business secrets. For especially sensitive material, such as financial records or crypto keys, the advice is to work locally without internet access; passwords should not be uploaded to cloud chatbots.
Another suggested use is offline survival planning, including preparations and locations for supplies without putting those details online. One prompt concerned preparation for World War II. Such requests still depend on having the models and AgentZero configured locally before working offline.
We think the photo task makes a useful case for AgentZero’s local approach, but the base URL error and the MacBook’s heat and lag are just as important to a decision. People handling private personal, business or research data may find the control worthwhile if they can accommodate the setup and hardware demands. The successful memory save also shows that connecting the chat model alone is not enough for every task. Anyone expecting a ready-to-use assistant should allow time to configure its background models as well.
Before working with sensitive material, check the model names, context settings and local base URLs across the configuration. The assistant can then use its chat, utility and embedding models together, with the local processing and offline options suited to the material being handled.
- Build Your Own Local AI Search Assistant with Ollama in 5 Easy Steps
- Raspberry Pi 5 Offline AI Gains Vision and Image Generation
- Agent Zero: Run a Local AI Assistant Inside Docker
- Build Your Own AI Assistant an Local AI Agent Quickly with Cursor AI (No Code)
Media Credit: David Ondrej
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.