Skip to content

How-ToGPU

How to Use a Local LLM in Firefox's AI Chatbot Sidebar

Firefox's AI Chatbot sidebar can run on a model on your own PC. We show how to start Open WebUI and Ollama on port 8080, reveal Firefox's hidden localhost option in about:config, use a custom address and pick a GPU.

By , Systems & Technical Editor

5 min read

How to Use a Local LLM in Firefox's AI Chatbot Sidebar

This guide is based on Mozilla's Firefox release notes, Firefox's own source code, and Open WebUI's and Ollama's documentation, read on 3 December 2026.

Firefox has an AI Chatbot feature that puts a chat service in the browser sidebar, so you can ask questions or summarise the page you're reading without switching tabs. The menu lists cloud services such as ChatGPT, Claude, Copilot, Gemini and Mistral, but Firefox's code also includes a hidden localhost option. Turn it on and the sidebar can load a chat app running on your own PC instead, so your prompts go to a model on your own graphics card rather than to a cloud service.

This guide uses Ollama to run the model and Open WebUI as the chat page that sits in the sidebar. If you use Brave instead, see our guide to Brave Leo with Ollama. For an extension that works in any browser, see Page Assist with Ollama.

What you need

  • A recent Firefox for desktop. The AI Chatbot feature arrived in Firefox 130 (September 2024) and Firefox 135 (February 2025) began rolling it out to all users. The current release at the time of writing is Firefox 161.0.1.

  • Ollama with a chat model. Our guide to running AI models locally with Ollama and LM Studio covers installation and pulling a model.

  • Open WebUI, a web chat interface for Ollama. We use the Docker method from Open WebUI's quick start; our Open WebUI install guide covers it in more depth.

  • A graphics card with enough memory for the model. Firefox itself only shows the web page. The work is done by Ollama, so your GPU decides which models feel quick. Our VRAM guide explains what fits on 8GB, 12GB and 16GB cards.

Why you need a chat page, not just Ollama

Firefox's sidebar doesn't talk to a model's API. It opens a normal web page in the sidebar and, when you pick a prompt such as Summarise, passes the text to that page in the address as a ?q= parameter. Firefox's source code confirms this: prompts go in a q query parameter unless the provider uses a special header or auto-submit method.

Ollama's own server on port 11434 is an API, not a chat page, so pointing Firefox at it won't work. You need a web front end. Open WebUI's documentation says its q URL parameter "places a prompt in the message input for the user to review and send", which is exactly what Firefox sends.

Step 1: Start Open WebUI on port 8080

Firefox's built-in localhost entry points to http://localhost:8080. The simplest route is to make Open WebUI answer on that address.

Open WebUI's quick start runs its Docker container with -p 3000:8080, which means the app listens on 8080 inside the container and appears on port 3000 on your PC. Its docs say that if a port is taken you can change the left number. So change it to 8080:

docker run -d -p 8080:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data -e WEBUI_SECRET_KEY=your-secret-key --name open-webui --restart always ghcr.io/open-webui/open-webui:main

Replace your-secret-key with a random string; Open WebUI's docs suggest generating one with openssl rand -hex 32. If something else on your PC already uses port 8080, keep the default -p 3000:8080 and use the custom address method in Step 3 instead.

Open http://localhost:8080 in Firefox. Open WebUI's docs say the first screen offers Create Admin Account, and that first account becomes the administrator. Create it, then check that Open WebUI can see your Ollama models in the model menu and that a test chat works.

Step 2: Show the localhost option in Firefox

The localhost choice is hidden by default. In Firefox's source code the preference browser.ml.chat.hideLocalhost is set to true, and when it's false Firefox adds localhost to the provider list.

  1. Type about:config in the address bar and accept the warning.

  2. Search for browser.ml.chat.hideLocalhost.

  3. Double-click it so the value changes to false.

These preference names come from Firefox's current source code, so they could change in a future version.

Step 3: Choose localhost as your chatbot

  1. Open the sidebar and choose AI Chatbot. If you don't see it, Firefox 148 added an AI Controls section to Settings for managing AI-enhanced features, so check that chatbot access isn't switched off there.

  2. In the chatbot provider choice, pick localhost. Firefox's code links this entry to llamafile.ai, Mozilla's single-file LLM project, but any local chat page on that address will do.

  3. Log in to Open WebUI in the sidebar.

Using a different port: Firefox stores the chosen chatbot address in browser.ml.chat.provider, and a comment in its code says any chat provider can be used. If Open WebUI runs on port 3000, set that preference to http://localhost:3000 in about:config. The sidebar won't show the localhost name or icon for a custom address, but the page loads the same way.

Step 4: Use it on web pages

Select some text, right-click and choose an option from the AI Chatbot menu, such as Summarize, Explain or Proofread. These prompts come from the defaults in Firefox's preferences file. Because Open WebUI's q parameter only fills in the message box, you'll need to press send yourself.

Firefox's code gives the localhost entry a limit of 32,768 characters for the prompt, and it estimates a selection limit a little below the provider's maximum. Very long pages may be cut short, so select the part you care about.

Troubleshooting

  • Blank sidebar or "unable to connect": Open WebUI isn't running on the address Firefox is using. Check docker ps, and open the address in a normal tab first.

  • Open WebUI shows no models: it can't reach Ollama. Check that Ollama is running, and see Open WebUI's docs on connecting to Ollama.

  • The prompt appears but nothing happens: that's expected with Open WebUI. Press send.

  • Replies are very slow: the model is probably too big for your VRAM. Our guide to checking whether Ollama is using your GPU explains how to tell.

  • Want the model on another PC? Run Open WebUI there and set browser.ml.chat.provider to that PC's address. Our guide to sharing Ollama on a local network covers the network side.

Which graphics card?

A browser assistant mostly handles short questions and page summaries, so a smaller model that fits fully in VRAM is the better choice than a large one that spills into system RAM. A 12GB card such as the ASUS RTX 3060 12GB Dual Gaming OC V2 leaves more room than an 8GB card such as the ASUS RTX 5060 8GB Dual OC. Our best GPUs for local LLMs and best local LLMs for 12GB of VRAM go further.

The bottom line

Firefox's AI Chatbot sidebar can use a local model, but only through a web chat page, not Ollama's API directly. Run Open WebUI with Docker on port 8080, set browser.ml.chat.hideLocalhost to false in about:config, then pick localhost as your chatbot; for another port, set browser.ml.chat.provider to the address instead. Prompts land in Open WebUI's message box for you to send, and your GPU, not Firefox, decides how quickly the answers come back.

In this article

Sources

  1. 01Mozilla, Firefox 130.0 release notes
  2. 02Mozilla, Firefox 135.0 release notes
  3. 03Mozilla, Firefox 148.0 release notes
  4. 04Mozilla, Firefox release notes (latest)
  5. 05Firefox source code, GenAI.sys.mjs
  6. 06Firefox source code, firefox.js default preferences
  7. 07Open WebUI Docs, Quick Start
  8. 08Open WebUI Docs, URL Parameters
  9. 09Ollama Docs, FAQ

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best Free Android Screen Mirroring Apps for PC (2026)

Best Picks

Best Free Android Screen Mirroring Apps for PC (2026)

The best free apps to mirror and control your Android phone on a PC in 2026: scrcpy for almost any phone, Phone Link on supported models, Escrcpy and QtScrcpy for a graphical interface, and Vysor for browser and iPhone support.

Hannah Vance6 min

scrcpy vs Phone Link: Best Way to Use Android Apps on a PC?

Versus

scrcpy vs Phone Link: Best Way to Use Android Apps on a PC?

scrcpy and Microsoft Phone Link both put your Android phone's apps on a Windows PC for free. We compare phone support, setup, how each shows your apps, extra features and privacy to help you pick the right one.

Callum Reid5 min

How to Mirror and Control Your Android Phone on a PC with scrcpy

How-To

How to Mirror and Control Your Android Phone on a PC with scrcpy

scrcpy is a free, open-source app that mirrors your Android phone's screen and sound on a Windows PC and lets you control it with your mouse and keyboard. We show how to enable USB debugging, install it, connect over USB or Wi-Fi, use the best shortcuts and options, and fix common errors.

Marcus Thorne7 min