
With the internet unplugged, a Raspberry Pi 5 running Ollama kept answering questions over local Wi-Fi. You can also ask this small AI server about prices or policies in documents you supply, so its answers can draw on your own business information and you don’t need to be a developer to set up the software, according to Adriana Rangel. Follow along as you learn how to install the software, choose a model and add documents, as well as arrange private access from outside the office if required.
Raspberry Pi 5: A Private AI Server With Ollama
TL;DR Key Takeaways :
- The 8GB Raspberry Pi 5 costs $175 at list price and hosts local models through Ollama with a browser-based chat in Open WebUI.
- In Claude Code’s comparison, Gemma was about 2.5 times faster than Qwen on three business tasks.
- Accessing a document through Open WebUI’s knowledge base took roughly five to seven seconds in the setup.
- The assistant continued answering when the internet was unplugged, as long as local Wi-Fi remained on.
- The Pi answers one person at a time, placing other requests in a queue.
You can run a local language model on a computer you own instead of a cloud provider’s servers. In 2023, Samsung engineers pasted confidential company code into ChatGPT, after which Samsung banned ChatGPT on work devices. In this setup, the Raspberry Pi 5 hosts the model, while phones and laptops on the office network use a browser-based chat page that looks much like ChatGPT but runs entirely on the Pi.
About the size of a deck of cards, the Raspberry Pi 5 starts at $45; the 8GB model used for this setup has a list price of $175. Services such as ChatGPT can charge a monthly fee per user. Once you have bought the hardware, the server has no monthly or per-person fee and can run 24/7 using about as much power as a light bulb.
Prepare the Pi for Remote Setup
Rangel recommends the 8GB Raspberry Pi 5 for this project because each model takes about 4GB or 5GB and needs enough memory to run, while a smaller Raspberry Pi lacks enough memory for these models. The other items you need are:
- Active cooler and case for the board.
- Official power supply to power the Pi.
- 32GB or larger memory card for the operating system and files.
- Raspberry Pi Imager, a free app that writes the operating system to the card.
She recommends testing the bare board before fitting the case or fan, since many stores will not accept a return after parts are installed. Raspberry Pi also recommends active cooling for sustained heavy loads, since the Pi can overheat and slow itself down without a cooler; in this setup, the cooled Pi stayed at around 40°C.
Use Raspberry Pi Imager to prepare the memory card. Before writing to it, enter your Wi-Fi details and turn on SSH, which lets you control the Pi from another computer without attaching a screen, keyboard or mouse.
Gain further expertise in Raspberry Pi 5 private AI by checking out these recommendations.
- Using Ollama to run AI on a Raspberry Pi 5 mini PC
- How to use Open Web UI with Ollama
- How to use Ollama, Beginners Guide
- KoboldCpp vs Ollama: Which Tool is Better for Running Local AI Models?
Install Ollama and Open WebUI
Ollama, which is free, runs the AI models on the Pi, and Open WebUI supplies the chat page. Rangel used Claude Code to set up both, with instructions to make the server accessible to office phones and laptops, explain each step plainly and keep AI requests local; you can do the setup without being a developer.
Give Claude Code the Pi’s connection details and enter the password yourself when needed, since Claude Code cannot type it. In this setup, Claude Code also created a digital key for later connections, resumed downloads one at a time after an internet interruption and configured the services to return after a restart; they came back in about a minute.
Raspberry Pi documents a separate local-model setup using its AI HAT+ 2 accelerator, 64-bit Raspberry Pi OS Trixie and Hailo’s Ollama server. That setup runs Open WebUI in Docker because Raspberry Pi says Open WebUI is incompatible with the Python 3.13 version used by Trixie.
Choose a Model and Open the Chat Page
Google’s Gemma 4 and Alibaba’s Qwen 3.5 are two free models used in the setup, though a smaller local model is not as capable as ChatGPT. Once downloaded to the Pi, the models appear in Open WebUI’s model picker, alongside a text box, past chats and prompt suggestions.
In a comparison, Claude Code tested both models on an invoice email, sales ideas and a meeting summary. Gemma was about 2.5 times faster and produced the friendlier email, while Qwen wrote the better meeting summary, although their answers were close in quality overall. Rangel chose Gemma for everyday work and Qwen for when more detail is needed.
Open the Pi’s address in a browser on an office phone or laptop to reach the chat page, and create your account first: the first account becomes the administrator. After the Pi has been idle, the first answer may take about a minute; the model then stays awake for 30 minutes, with answers starting in under a second.
Add Documents to the Knowledge Base
Open WebUI’s Knowledge section holds documents that the AI can use when answering questions. Add a file containing material such as prices or policies, then select the relevant knowledge base in the chat before asking about it.
Using sample business data, Rangel tested the setup with a question about a refund policy and a calculation of a wholesale total from a stored price. Reading a document took roughly five to seven seconds when the knowledge base was accessed.
If a small model reports that it cannot read attached files even when they are present, three settings need changing in the admin panel before document questions will work.
Create an Assistant for Other Users
A custom assistant can use the same model with instructions for a particular job. Upload a handbook, create an assistant and tell it to answer only from that document, keep replies short, say when the answer is not in its files, use a friendly tone and direct users to a person when an answer is absent.
Share the assistant with another account so its owner can select it from the model picker. In a sample handbook setup, the assistant retrieved a refund instruction and a procedure for reporting sickness. You can add extra users without a per-person charge.
Claude Code uses cloud AI, so Rangel advises adding real business files yourself after it finishes setting up the server. Open WebUI’s offline guidance also says the models and services must be available locally and that separate network controls are needed to prevent external connections.
Keep Local Access Working and Add Remote Access
The Pi and office devices can communicate over local Wi-Fi even when the internet connection is down. In a test, the internet was unplugged while Wi-Fi remained on, and the assistant continued to answer.
For access away from the office, Tailscale provides a private connection between a phone and the Pi. The tunnel is limited to the owner’s devices, and its traffic is encrypted so Tailscale cannot read it. Create a free account, install Tailscale on the Pi, add the Pi to that account, then install the phone app and sign in to the same account. In the setup, the Pi’s address was opened over mobile data without giving it a public address.
Open WebUI warns that Ollama’s local API has no authentication: exposing its port on the network can let reachable devices use it. The Pi also answers one person at a time, leaving other requests in a queue. Rangel recommends keeping larger, more complex tasks for cloud AI rather than this small server.
In our view, the handbook helper is the idea worth copying. An assistant told to answer only from your own documents, and to admit when it does not know, is easier to trust than a general chatbot. Before relying on it, we would check any answer about policy or pricing against the original document, since a small model can still misread files. We would also read what an AI assistant plans to run on your machine before approving it.
Adriana Rangel considers the Raspberry Pi 5 sufficient for routine private work in a small office, provided users can take turns and leave complex jobs to cloud AI. If you want a document-based assistant for your team, building a Raspberry Pi 5 server with Ollama is a project worth trying.
Media Credit: Adriana Rangel – AI for Business
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.