← Back to Blog
Guides

Self-hosted AI agent options and their upkeep

AB
Neotask Team
November 29, 2026
9 min read

If you want an AI agent that runs on a computer or server you control rather than on a vendor's cloud, several free tools will do it, and they cover different jobs. Three worth knowing are Agent Zero, an agent with its own Linux workspace; AnythingLLM, a desktop app for documents and agents; and n8n's Community Edition for workflow automation. Underneath, Ollama or LocalAI runs the model and Open WebUI gives you a chat window. None of them charges a fee, so the real cost of a self-hosted AI agent is upkeep: security, hardware that fits the model, license terms and your own time.

A self-hosted agent has three layers

Three different things often get called "self-hosted AI".

The agent is the part that plans and calls tools: Agent Zero, AnythingLLM's agents, an n8n workflow. The interface is where you talk to it, which might be a chat app, a browser page or a desktop window. The model is the language model that does the thinking.

You can self-host the agent and still send every prompt to a cloud model. Agent Zero's README says it needs either a provider API key or a local model server. With an API key, the agent runs on your machine but your prompts go to the provider. To keep the model local too, you add a runner such as Ollama. Its FAQ says: "Ollama runs locally. We don't see your prompts or data when you run locally."

So before choosing a tool, decide which layers have to stay on your hardware. A local agent with a cloud model is usually easier to run well than a fully local stack, because the heavy part runs on someone else's GPUs.

The agents you can run yourself

Agent Zero

Agent Zero is "an open-source AI agent with its own Linux workspace", MIT licensed, and runs as a Docker container. The documented command publishes it only on 127.0.0.1, port 5080, so it is reachable from your own machine and nowhere else unless you change that. No hardware requirements are listed. It suits people who want an agent that works in its own Linux environment, kept apart from their main system.

AnythingLLM

AnythingLLM is an "all-in-one AI app" for chatting with your documents and using agents, with a no-code agent builder, MCP support and scheduled tasks. It is MIT licensed, with desktop builds for Mac, Windows and Linux. Multi-user accounts and white-labeling are only in the Docker version. It runs local models on CPU or GPU (NVIDIA CUDA, and AMD and Intel through Vulkan). It is the gentlest start here if your main need is asking questions of your own files.

n8n Community Edition

n8n's pricing page says "A standard, self-hosted version of n8n is available on GitHub." Business and Enterprise features on a self-hosted instance need a license key. n8n is a workflow tool first, so it fits when your "agent" is mostly a fixed sequence of steps with a model in some of them. Our n8n alternatives page compares it with other tools.

The model runners and the chat window

Ollama runs open models such as Qwen, Gemma, DeepSeek, gpt-oss, GLM and Kimi on macOS, Windows, Linux and Docker, with a REST API that agents can call. It is MIT licensed. LocalAI aims wider: "Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required." It is MIT licensed (its name and logo excluded), supports CUDA, ROCm, oneAPI/SYCL and Metal, speaks both the OpenAI and Anthropic API formats, and runs through Docker Compose on port 8080.

Open WebUI is "a self-hosted AI platform that's extensible, feature-rich, user-friendly, and built to run entirely offline." It works with Ollama and any OpenAI-compatible API, installs with pip (Python 3.12) or Docker, and its slim image uses about 300 MiB of RAM at idle.

ToolWhat it isLicenseHardware notes from its docs
Agent ZeroAgent with its own Linux workspaceMITDocker; no requirements stated
AnythingLLMDocuments plus agentsMITCPU or GPU (CUDA, Vulkan)
n8n CommunityWorkflow automationSustainable Use LicenseNot stated in our sources
Open WebUIChat interfaceBSD-3 with a branding clauseSlim image about 300 MiB RAM idle
OllamaModel runnerMITModels loaded together on a GPU must fit in VRAM
LocalAIModel runnerMITNo GPU required

What self-hosting costs you in upkeep

Security, hardware, licenses and time each turn into specific work.

Agent Zero's maintainers advise "Keep it running inside Docker or another isolated environment." Setting up that isolation, keeping it in place as you add tools, and deciding who besides you can reach the agent are all your job, because no vendor is doing it for you.

On hardware, Ollama's FAQ says models running on the GPU at the same time "must be able to completely fit in VRAM", that the default context window is 4096 tokens, and that Docker Desktop on macOS has no GPU acceleration. A Mac user who runs Ollama inside Docker gets no GPU help, and an agent that reads long documents needs a larger context than the default.

Open WebUI's license changed in 2025. It was BSD-3 up to version 0.6.5, and from version 0.6.6 (April 19, 2025) its license adds a branding clause that "is not an OSI-approved 'open source' license": you can't remove the Open WebUI branding unless you have 50 or fewer users in 30 days, have permission, or hold an enterprise license. n8n's Sustainable Use License allows use "only for your own internal business purposes or for non-commercial or personal use."

When an update breaks a self-hosted install, you are the one who fixes it, working from the docs and the project's community. Version pins such as Open WebUI's Python 3.12 can also mean upgrading the runtime before the app.

Is open source the same as self-hosted?

No. Self-hosted describes where software runs; open source describes the license. Of the tools above, Agent Zero, AnythingLLM, Ollama and LocalAI are MIT licensed. n8n is self-hostable under a license that limits use to your own internal business, non-commercial or personal purposes, and current Open WebUI says itself that its license is not OSI-approved. If you want an open source AI agent because you plan to modify and resell it, read those two licenses closely first.

Where Neotask sits

Neotask, which publishes this blog, is neither open source nor self-hostable, so it doesn't belong in the list above. It overlaps with self-hosting in one specific way: where the agents run.

The Neotask desktop app (macOS, Windows and Linux) runs agents on your own computer through a built-in local gateway that listens only on loopback (127.0.0.1) and accepts no outside connections. You can also rent a cloud computer through Neotask, hosted on DigitalOcean in the United States, which keeps jobs running after you close your laptop. Cloud computer prices are not published, and they are billed separately from your plan.

For models, Neotask's setup can install Ollama and download a Qwen model sized to your computer. Local models are free and never count against plan limits. You can also use Neotask Matrix, your own API keys, or a Claude Code or Codex subscription.

Your account, companies, tasks and approvals are stored in Neotask's cloud (on AWS, in the United States), and the app needs an internet connection for license activation and agent communication. If your requirement is that nothing leaves your own servers, or that you can read and change the code, choose one of the open tools above. If you want agents working on your own machine with free local models, plus approvals and a Neo personal agent, without maintaining the app yourself, Neotask's Free plan costs $0 and Core is $20 a month as of November 2026 (pricing). The download page has the installers.

Frequently asked questions

Can I run an AI agent completely offline?

Yes, with the right stack. Open WebUI is built to run entirely offline, and pairing it or an agent like AnythingLLM with Ollama or LocalAI keeps the model on your hardware; Neotask is not an offline option because it needs an internet connection.

What hardware do I need for a local AI agent?

It depends mostly on the model you choose. LocalAI says no GPU is required, while Ollama notes that models running together on a GPU must fit entirely in its VRAM.

What does n8n's self-hosted license allow?

n8n's code is public on GitHub under the Sustainable Use License, which lets you use or modify it only for your own internal business purposes or for non-commercial or personal use. Files marked .ee. also need an n8n Enterprise License.

Is Neotask a self-hosted AI agent?

No. Its agents run on your own computer or a rented cloud computer, but your account, tasks and approvals are stored in Neotask's cloud, and the software is not open source.

Sources

Deploy AI Agents in Minutes.

Neotask gives you the orchestration layer to build, deploy, and manage AI agents at scale. Voice-controlled, multi-agent, production-ready.

Launch Your First Agent

Start automating in minutes.