Self-hosted AI agents run on your own hardware instead of someone else's cloud. This guide covers what self-hosting means, what you need to get started, the tools people use, and how to keep things safe.

01What does self-hosted mean?
Self-hosted means the software runs on a computer you own, at home, instead of on a company's servers. You install it, you look after it, and you decide what it can do.
A self-hosted AI agent is an agent that lives on that computer. If AI agents are new to you, start with What is an AI agent?.
02Why self-host your AI agents?
- YOUR FILES STAY HOMEAgents work on your files where they already live
- YOU PICK THE BRAINA local model, an online one, or a mix
- ALWAYS THEREOn hardware that stays on, agents can work day and night
- YOUR RULESYou decide what each agent is allowed to reach
One thing to know: if an agent thinks with an online AI model, the text of each request is sent to that provider. Local AI or online AI: what stays private explains what stays at home.
03What you need to self-host AI agents
- A computer that stays on. An old PC, a mini PC or a NAS box will do. See Turn an old PC into a home server.
- Docker. Most self-hosted apps install with it. See Docker in plain words.
- A brain. Either a local AI model through Ollama, or an API key from an online provider. See Ollama for beginners.
- Agent software. The app that gives the brain its tools and its jobs.
04Self-hosted AI agent tools
There are many. These are four different kinds, to show what is out there:
| Tool | What it is | Good to know |
|---|---|---|
| Open WebUI | A chat page for your own AI models | Works with Ollama and with online providers. |
| n8n | A builder where you join blocks to make automations, including AI agent steps | Free to self-host for personal use, under its own licence. |
| Home Assistant | A smart home hub | Can use an Ollama model as its voice assistant. Letting the model control devices is still marked experimental. |
| CosmolinkOS | An office of AI agent crews for your home lab | In development. The waitlist is open. |
05Should agents use a local or an online brain?
A local brain keeps the thinking on your hardware. An online brain is usually smarter, but each request's text goes to the provider.
Many people mix the two: local for small, private, everyday jobs, and online for the occasional hard one. Use the checker in Can my PC run local AI? to see what your hardware can run.
Don't open your agent tools straight to the internet. To reach them from outside your home, use a VPN or a tunnel with a login in front.
06How to self-host AI agents safely
- Keep it on your home network. Don't open it to the internet until you know how to secure it.
- Give each agent only the access its job needs.
- Check anything important before it happens, like emails sent in your name or payments.
- Keep backups, and keep your apps updated.
Start with one agent and one small job. Add more once you trust how it works.
07What this means for CosmolinkOS
CosmolinkOS is self-hosted. It runs in Docker on your own hardware, for example as an app on TrueNAS, and more platforms are planned. Your files and data stay on your server. If you choose an online brain, that task's text is sent to the AI provider you picked. Local brains keep everything on your hardware.
08Questions people ask
Can I run AI agents on my own computer?
Yes. You need a computer that can run Docker, an AI model for the agent to think with, and agent software. For agents that work day and night, use hardware that stays on, like a home server.
Do self-hosted AI agents need a graphics card?
No. Agents can think with online AI through an API key, or with small local models on the processor. A graphics card lets bigger local models run at home.
Are self-hosted AI agents private?
Your files stay on your hardware. If an agent uses online AI, the text of each request is sent to that provider. With local AI, the thinking stays at home too.
What is the easiest way to start self-hosting AI agents?
Install Docker on a computer that stays on, add Ollama for a local model, and try one tool with one small job.
Do I need to know how to code?
No, not for tools you use from a web page. You will copy a few commands or a Compose file to install them.
Related guides: AI model sizes explained and six Ollama alternatives.