<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: egecan nefis</title>
    <description>The latest articles on DEV Community by egecan nefis (@egecan_nefis_a5944e032d18).</description>
    <link>https://dev.to/egecan_nefis_a5944e032d18</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4013463%2F73114449-bd8c-4d94-885a-330d719c9430.png</url>
      <title>DEV Community: egecan nefis</title>
      <link>https://dev.to/egecan_nefis_a5944e032d18</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/egecan_nefis_a5944e032d18"/>
    <language>en</language>
    <item>
      <title>How to Create a Personal AI Assistant Using Ollama and Open WebUI</title>
      <dc:creator>egecan nefis</dc:creator>
      <pubDate>Fri, 03 Jul 2026 10:41:31 +0000</pubDate>
      <link>https://dev.to/egecan_nefis_a5944e032d18/how-to-create-a-personal-ai-assistant-using-ollama-and-open-webui-2ifi</link>
      <guid>https://dev.to/egecan_nefis_a5944e032d18/how-to-create-a-personal-ai-assistant-using-ollama-and-open-webui-2ifi</guid>
      <description>&lt;p&gt;Running a Personal AI Assistant Using Ollama and Open WebUI sounds simple until something refuses to load, the model won't respond, or Open WebUI sits there with an empty chat window. I hit several of those problems while setting up my own local assistant, and the fixes turned out to be less obvious than most guides suggest.&lt;/p&gt;

&lt;p&gt;Instead of showing only the happy path, this guide covers the setup, the common failures, and the fixes that actually worked.&lt;/p&gt;

&lt;p&gt;Quick Answer&lt;/p&gt;

&lt;p&gt;If your Personal AI Assistant Using Ollama and Open WebUI isn't working correctly:&lt;/p&gt;

&lt;p&gt;Install Ollama before Open WebUI.&lt;br&gt;
Confirm Ollama is running before opening the web interface.&lt;br&gt;
Pull at least one model with ollama pull.&lt;br&gt;
Check whether Open WebUI can reach the Ollama API.&lt;br&gt;
Don't overlook firewall rules or Docker networking.&lt;br&gt;
Why Your Local AI Assistant Doesn't Work&lt;/p&gt;

&lt;p&gt;Most setup guides stop after the installation commands. That's where many people get stuck.&lt;/p&gt;

&lt;p&gt;From what I've seen, these are the biggest causes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Ollama Isn't Actually Running&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Installing Ollama doesn't always mean the background service is active.&lt;/p&gt;

&lt;p&gt;Try:&lt;/p&gt;

&lt;p&gt;ollama serve&lt;/p&gt;

&lt;p&gt;Then open another terminal.&lt;/p&gt;

&lt;p&gt;ollama list&lt;/p&gt;

&lt;p&gt;If you receive a model list, the service is alive.&lt;/p&gt;

&lt;p&gt;If you see connection errors, Open WebUI won't have anything to connect to.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;No AI Model Has Been Downloaded&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I've actually forgotten this myself.&lt;/p&gt;

&lt;p&gt;Open WebUI may launch perfectly while having absolutely nothing available to chat with.&lt;/p&gt;

&lt;p&gt;Download one.&lt;/p&gt;

&lt;p&gt;ollama pull llama3&lt;/p&gt;

&lt;p&gt;Or&lt;/p&gt;

&lt;p&gt;ollama pull mistral&lt;/p&gt;

&lt;p&gt;After that:&lt;/p&gt;

&lt;p&gt;ollama list&lt;/p&gt;

&lt;p&gt;should display your installed models.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open WebUI Can't Reach Ollama&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This happens surprisingly often.&lt;/p&gt;

&lt;p&gt;If Open WebUI expects Ollama on:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://localhost:11434" rel="noopener noreferrer"&gt;http://localhost:11434&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;but your Docker container only sees itself, you'll just get loading errors.&lt;/p&gt;

&lt;p&gt;But that's not entirely accurate, let me explain.&lt;/p&gt;

&lt;p&gt;When Open WebUI runs directly on Windows or Linux, localhost is usually fine.&lt;/p&gt;

&lt;p&gt;When Open WebUI runs inside Docker, localhost means the container itself—not your computer.&lt;/p&gt;

&lt;p&gt;That's a networking issue, not an AI issue.&lt;/p&gt;

&lt;p&gt;Installation Overview&lt;/p&gt;

&lt;p&gt;Here's the order I'd follow if starting from scratch again.&lt;/p&gt;

&lt;p&gt;Install Ollama.&lt;br&gt;
Start the Ollama service.&lt;br&gt;
Download a model.&lt;br&gt;
Install Open WebUI.&lt;br&gt;
Connect Open WebUI to Ollama.&lt;br&gt;
Test with a simple prompt.&lt;/p&gt;

&lt;p&gt;Skipping step three causes more confusion than you'd expect.&lt;/p&gt;

&lt;p&gt;Common Setup Scenarios&lt;br&gt;
Native Windows Installation&lt;/p&gt;

&lt;p&gt;Usually the easiest option.&lt;/p&gt;

&lt;p&gt;Possible problems include:&lt;/p&gt;

&lt;p&gt;Windows Defender Firewall&lt;br&gt;
Another application already using port 11434&lt;br&gt;
Antivirus blocking local services&lt;br&gt;
Linux Installation&lt;/p&gt;

&lt;p&gt;Linux generally behaves well.&lt;/p&gt;

&lt;p&gt;The issues I ran into were mostly permission-related and services not starting automatically after reboot.&lt;/p&gt;

&lt;p&gt;A quick check:&lt;/p&gt;

&lt;p&gt;systemctl status ollama&lt;/p&gt;

&lt;p&gt;can save a lot of guessing.&lt;/p&gt;

&lt;p&gt;Docker Installation&lt;/p&gt;

&lt;p&gt;Docker adds another layer.&lt;/p&gt;

&lt;p&gt;Typical problems include:&lt;/p&gt;

&lt;p&gt;Wrong network mode&lt;br&gt;
Missing environment variables&lt;br&gt;
Container unable to reach Ollama&lt;br&gt;
Port mapping mistakes&lt;/p&gt;

&lt;p&gt;Honestly, Docker networking still manages to waste my time more often than I'd like.&lt;/p&gt;

&lt;p&gt;Comparison of Common Problems&lt;br&gt;
Problem Typical Symptom Most Likely Cause   Usually Fixes It&lt;br&gt;
Blank chat  Endless loading Ollama offline  Start Ollama service&lt;br&gt;
No models   Empty model list    Nothing downloaded  Pull a model&lt;br&gt;
API error   Connection refused  Wrong endpoint  Correct API address&lt;br&gt;
Slow responses  Long wait   Small RAM or CPU    Smaller model&lt;br&gt;
GPU unused  High CPU load   GPU detection failed    Install GPU drivers&lt;br&gt;
Step 1: Install Ollama&lt;/p&gt;

&lt;p&gt;Download the installer for your operating system.&lt;/p&gt;

&lt;p&gt;Verify installation.&lt;/p&gt;

&lt;p&gt;ollama --version&lt;/p&gt;

&lt;p&gt;Then launch the service.&lt;/p&gt;

&lt;p&gt;ollama serve&lt;/p&gt;

&lt;p&gt;Leave that running.&lt;/p&gt;

&lt;p&gt;Step 2: Download an AI Model&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;ollama pull llama3&lt;/p&gt;

&lt;p&gt;Or if your PC has limited RAM:&lt;/p&gt;

&lt;p&gt;ollama pull phi3&lt;/p&gt;

&lt;p&gt;Smaller models respond faster on older hardware.&lt;/p&gt;

&lt;p&gt;Step 3: Install Open WebUI&lt;/p&gt;

&lt;p&gt;Install Open WebUI however you prefer.&lt;/p&gt;

&lt;p&gt;Most people either:&lt;/p&gt;

&lt;p&gt;use Docker&lt;br&gt;
install with Python&lt;br&gt;
run it on Linux directly&lt;/p&gt;

&lt;p&gt;The installation itself rarely causes trouble.&lt;/p&gt;

&lt;p&gt;The connection between Open WebUI and Ollama is where things usually break.&lt;/p&gt;

&lt;p&gt;Step 4: Verify the API&lt;/p&gt;

&lt;p&gt;Open:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://localhost:11434" rel="noopener noreferrer"&gt;http://localhost:11434&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If Ollama is running correctly, you'll receive a simple response instead of a browser error.&lt;/p&gt;

&lt;p&gt;So if this page doesn't load, Open WebUI won't work either.&lt;/p&gt;

&lt;p&gt;Step 5: Test a Prompt&lt;/p&gt;

&lt;p&gt;Try something tiny.&lt;/p&gt;

&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;p&gt;Write a Python loop.&lt;/p&gt;

&lt;p&gt;Large prompts make debugging harder.&lt;/p&gt;

&lt;p&gt;Start simple.&lt;/p&gt;

&lt;p&gt;What Actually Worked For Me&lt;/p&gt;

&lt;p&gt;My first attempt was messy.&lt;/p&gt;

&lt;p&gt;I restarted Docker twice, reinstalled Open WebUI, and even downloaded another model because I assumed the first one had become corrupted.&lt;/p&gt;

&lt;p&gt;None of that changed anything.&lt;/p&gt;

&lt;p&gt;Then I remembered an old forum comment about Docker containers treating "localhost" differently. I switched the API endpoint to the correct host address, restarted the container, and everything immediately started responding. I got a little lucky because I wasn't even looking for that problem anymore.&lt;/p&gt;

&lt;p&gt;Later I repeated the installation on another machine, and this time the only issue was forgetting to download a model. That was much easier to fix.&lt;/p&gt;

&lt;p&gt;Advanced Troubleshooting&lt;br&gt;
Check Running Processes&lt;/p&gt;

&lt;p&gt;Linux:&lt;/p&gt;

&lt;p&gt;ps aux | grep ollama&lt;/p&gt;

&lt;p&gt;Windows:&lt;/p&gt;

&lt;p&gt;tasklist | findstr ollama&lt;/p&gt;

&lt;p&gt;No running process means nothing is serving requests.&lt;/p&gt;

&lt;p&gt;Test the API Directly&lt;/p&gt;

&lt;p&gt;Instead of guessing whether Open WebUI is the problem, test Ollama itself.&lt;/p&gt;

&lt;p&gt;curl &lt;a href="http://localhost:11434/api/tags" rel="noopener noreferrer"&gt;http://localhost:11434/api/tags&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If models appear in JSON output, Ollama is fine.&lt;/p&gt;

&lt;p&gt;If this command fails, fix Ollama first.&lt;/p&gt;

&lt;p&gt;Review Docker Logs&lt;/p&gt;

&lt;p&gt;If using Docker:&lt;/p&gt;

&lt;p&gt;docker logs open-webui&lt;/p&gt;

&lt;p&gt;Look for:&lt;/p&gt;

&lt;p&gt;connection refused&lt;br&gt;
timeout&lt;br&gt;
API unavailable&lt;/p&gt;

&lt;p&gt;Those messages usually point toward networking instead of installation.&lt;/p&gt;

&lt;p&gt;Watch System Memory&lt;/p&gt;

&lt;p&gt;Large language models consume a surprising amount of RAM.&lt;/p&gt;

&lt;p&gt;If your computer starts swapping memory to disk, responses become painfully slow.&lt;/p&gt;

&lt;p&gt;I originally blamed the model. It turned out Windows was simply running out of memory.&lt;/p&gt;

&lt;p&gt;Check GPU Detection&lt;/p&gt;

&lt;p&gt;Run:&lt;/p&gt;

&lt;p&gt;ollama run llama3&lt;/p&gt;

&lt;p&gt;Watch system usage.&lt;/p&gt;

&lt;p&gt;If CPU jumps to 100% while GPU stays idle, the GPU may not be detected correctly.&lt;/p&gt;

&lt;p&gt;Your mileage may vary depending on your graphics drivers.&lt;/p&gt;

&lt;p&gt;Unexpected Causes People Miss&lt;/p&gt;

&lt;p&gt;One thing people rarely check is VPN software.&lt;/p&gt;

&lt;p&gt;Some VPN clients interfere with localhost communication.&lt;/p&gt;

&lt;p&gt;Another overlooked cause is corporate endpoint security software.&lt;/p&gt;

&lt;p&gt;I've seen security tools silently block local ports without displaying any warning.&lt;/p&gt;

&lt;p&gt;And don't forget browser extensions. One privacy extension on my test machine blocked local API requests until I disabled it.&lt;/p&gt;

&lt;p&gt;Fixes That Usually Work&lt;/p&gt;

&lt;p&gt;Across several installations, these solved the issue most often:&lt;/p&gt;

&lt;p&gt;Starting Ollama before launching Open WebUI.&lt;br&gt;
Downloading at least one model.&lt;br&gt;
Correcting the API endpoint.&lt;br&gt;
Restarting Docker containers after changing environment variables.&lt;br&gt;
Checking firewall permissions.&lt;br&gt;
Fixes That Rarely Solve Anything&lt;/p&gt;

&lt;p&gt;People often recommend:&lt;/p&gt;

&lt;p&gt;rebooting Windows&lt;br&gt;
reinstalling Open WebUI immediately&lt;br&gt;
downloading multiple models&lt;br&gt;
clearing browser cache&lt;/p&gt;

&lt;p&gt;Sometimes those help.&lt;/p&gt;

&lt;p&gt;Most of the time they don't address the actual problem.&lt;/p&gt;

&lt;p&gt;Prevention Tips&lt;br&gt;
Keep Ollama updated.&lt;br&gt;
Test the API before changing Open WebUI settings.&lt;br&gt;
Use smaller models on lower-memory systems.&lt;br&gt;
Leave enough free disk space for model downloads.&lt;br&gt;
Avoid changing Docker networking unless you know why you're changing it.&lt;br&gt;
Save your working configuration once everything functions. You'll thank yourself later.&lt;br&gt;
FAQ&lt;br&gt;
Why does Open WebUI show no models?&lt;/p&gt;

&lt;p&gt;Usually because no models have been downloaded yet or Open WebUI can't contact Ollama.&lt;/p&gt;

&lt;p&gt;Why is Ollama responding so slowly?&lt;/p&gt;

&lt;p&gt;Large models can overwhelm older hardware. Try a smaller model first.&lt;/p&gt;

&lt;p&gt;Can I run everything without Docker?&lt;/p&gt;

&lt;p&gt;Yes. Plenty of people do, and for a first setup it's often less confusing.&lt;/p&gt;

&lt;p&gt;Why does localhost work in my browser but not inside Docker?&lt;/p&gt;

&lt;p&gt;Because the container has its own localhost. That's a common networking misunderstanding.&lt;/p&gt;

&lt;p&gt;My GPU isn't being used. Is something broken?&lt;/p&gt;

&lt;p&gt;Not necessarily. Check your graphics drivers, supported hardware, and whether Ollama recognizes the GPU. From what I've seen, driver problems show up more often than hardware failures.&lt;/p&gt;

&lt;p&gt;Does Open WebUI need an internet connection after installation?&lt;/p&gt;

&lt;p&gt;Not for local models. If everything is installed correctly, you can chat entirely offline.&lt;/p&gt;

&lt;p&gt;Editor's Opinion&lt;/p&gt;

&lt;p&gt;I like this setup because once it's working, it mostly stays out of the way. The annoying part is getting there. I spent way longer chasing Docker networking than I'd admit, and the actual fix was tiny. I'd probably start with a native install next time unless I really needed containers.  &lt;a href="https://www.howtotechdaily.com/" rel="noopener noreferrer"&gt;https://www.howtotechdaily.com/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>opensource</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
