Skip to content

How-ToGPU

How to Use Brave Leo With Ollama for Private, Local Browser AI

Brave's Leo assistant can use a model on your own PC through its Bring Your Own Model feature. We show how to connect Leo to Ollama or LM Studio, which fields to fill in, how to set Leo's and Ollama's context size for page summaries, and how to fix connection problems.

By , Systems & Technical Editor

5 min read

How to Use Brave Leo With Ollama for Private, Local Browser AI

This guide is based on Brave's official Bring Your Own Model (BYOM) help article and announcement, Brave's public issue tracker and Ollama's documentation, read on 25 November 2026.

Leo is the AI assistant built into the Brave browser. You can chat with it or ask it questions about the web page you're reading. By default it uses Brave's own hosted models, but a feature called Bring Your Own Model (BYOM) lets you point Leo at a model running on your own PC instead.

Brave says that with BYOM, requests go straight from your device to the model endpoint you choose, and Brave has no access to that traffic. With a local model, Brave's help centre says conversations, web pages and prompts never leave your machine. That makes BYOM a neat way to get page summaries and quick answers without sending anything to a cloud AI service.

If you'd rather use a browser extension that works in Chrome, Edge or Firefox, see our guide to Page Assist with Ollama. For the built-in AI in other browsers, see Gemini Nano vs Aion Instruct.

What you need

  • Brave 1.69 or newer on a desktop PC running Windows, macOS or Linux. Brave's help centre lists a desktop platform as a requirement for BYOM.

  • Ollama, or another local server that offers an OpenAI-compatible chat endpoint, such as LM Studio. Our guide to running AI models locally with Ollama and LM Studio covers installation.

  • Enough memory for the model. Brave lists a minimum of 8GB of RAM for local models, and says model downloads range from 829MB to 40GB. For quick, responsive answers the model should fit in your graphics card's memory; our VRAM guide explains what fits on 8GB, 12GB, 16GB and 24GB cards.

Step 1: Install Ollama and pull a model

Download Ollama from ollama.com/download and install it. Then open a terminal and download a model. Brave's help article uses DeepSeek-R1 as its example:

ollama pull deepseek-r1

Any chat model from the Ollama library will do. A smaller model replies faster, and that matters in a browser, where you'll mostly ask short questions and summarise pages. Our round-up of the best local LLMs suggests models for different graphics cards.

Run ollama ls to see the exact names of the models you've downloaded. You'll need one of those names in the next step.

Leo talks to Ollama's local server, so make sure it's running. If it isn't, start it from a terminal with ollama serve.

Step 2: Add your model to Leo

  1. Open Brave Settings and choose Leo.

  2. Scroll down to the Bring your own model section and click Add new model.

  3. Fill in the fields:

  4. Label: any name you like. This is what appears in Leo's model menu, for example "DeepSeek-R1 (local)".

  5. Model request name: the model's name exactly as Ollama expects it, for example deepseek-r1. Brave warns that if this doesn't match exactly, the integration won't work, so copy it from ollama ls, including any tag such as :8b.

  6. Server endpoint: for Ollama, Brave gives http://localhost:11434/v1/chat/completions.

  7. API key: leave this blank for a local Ollama server.

  8. Click Add model.

Step 3: Select the model and start chatting

Open Leo in Brave, click the model selection menu and choose the model you just added. Ask a question to check it works.

Leo now uses your local model for chat and for questions about the page you're viewing.

Step 4: Get the context size right

The context size is how much text, measured in tokens, a model can consider at once. It matters for page summaries, because a long article can easily run to thousands of tokens.

There are two settings to think about:

  • Leo's context size. BYOM originally used one fixed context size for every custom model. Brave's issue tracker shows an editable context size was then added to the BYOM model details, and in Brave's own testing a low context size made Leo show a warning about conversation length. Set it to match what your model and server can handle.

  • Ollama's context length. Ollama's documentation says it defaults to a 4k context on PCs with less than 24GB of VRAM, 32k with 24GB to 48GB, and 256k with 48GB or more. You can raise it with the slider in the Ollama app's settings, or by starting the server with a variable such as OLLAMA_CONTEXT_LENGTH=8192 ollama serve. Our guide to setting Ollama's context length covers the details.

A bigger context uses more VRAM. Ollama recommends checking the CPU/GPU split in the PROCESSOR column of ollama ps. If replies slow to a crawl after you raise the context, the model has probably spilled into system RAM, so try a smaller value or a smaller model. Our explainer on context length and VRAM shows why.

Using LM Studio instead of Ollama

Brave says BYOM works with any local server that offers an endpoint following the OpenAI chat protocol, and LM Studio does. Start LM Studio's local server (our LM Studio server guide shows how), then add a model in Leo with:

  • Server endpoint: http://localhost:1234/v1/chat/completions (LM Studio's documentation uses port 1234 in its examples; change it if you've set a different port).

  • Model request name: the model identifier shown in LM Studio.

Troubleshooting

  • No reply at all: check that Ollama is running. ollama ls should respond in a terminal, and Brave's endpoint must be on the same PC unless you've deliberately shared Ollama on your network.

  • Model not found or an error message: the model request name must match exactly. Copy it from ollama ls, including the tag.

  • Wrong endpoint: the endpoint must include the full path, /v1/chat/completions, not just http://localhost:11434.

  • Very slow answers: the model or context doesn't fit in VRAM. Check ollama ps, then pick a smaller model. Our guide to checking whether Ollama is using your GPU helps here.

  • Want to run the model on another PC? Ollama can be shared on your home network; see our guide to sharing Ollama on a local network. Use that PC's address in Leo's server endpoint field.

Is it really private?

With a local model, yes for the AI part: Brave says requests go directly from your device to the endpoint you set, bypassing Brave, and its help centre says local processing keeps conversations, web pages and prompts on your machine. Bear in mind that Brave's help centre also says privacy protections vary when you use BYOM: local and remote third-party models have different privacy characteristics, so if you connect Leo to a remote server or a third-party API instead, your data's privacy depends on that service.

Our verdict

Brave Leo with Ollama is one of the simplest ways to get a private AI assistant inside your browser, because nothing extra needs installing in Brave itself. Pull a model in Ollama, add it under Settings > Leo > Bring your own model with the endpoint http://localhost:11434/v1/chat/completions and the exact model name, then raise both Leo's and Ollama's context size if you want to summarise long pages. Choose a model small enough to fit in your graphics card's memory and Leo will stay quick enough for everyday browsing.

The bottom line

Brave Leo with Ollama is one of the simplest ways to get a private AI assistant inside your browser, because nothing extra needs installing in Brave itself. Pull a model in Ollama, add it under Settings > Leo > Bring your own model with the endpoint http://localhost:11434/v1/chat/completions and the exact model name, then raise both Leo's and Ollama's context size if you want to summarise long pages. Choose a model small enough to fit in your graphics card's memory and Leo will stay quick enough for everyday browsing.

Sources

  1. 01Brave Help Center, How do I use the Bring Your Own Model (BYOM) with Brave Leo?
  2. 02Brave, Bring Your Own Model (BYOM): using Brave Leo with your own LLMs
  3. 03Brave on GitHub, BYOM: allow setting a custom max context size for custom models (issue 41167)
  4. 04Ollama Docs, Context length
  5. 05Ollama Docs, FAQ
  6. 06Ollama Docs, CLI reference
  7. 07LM Studio Docs, OpenAI Compatibility Endpoints

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 Photo Editors for Windows 11 in 2026

Best Picks

Best Free Photo Editors for Windows 11 in 2026

The best free photo editors for Windows 11 in 2026: GIMP as the best overall, Paint.NET for beginners and quick edits, Photopea in the browser and for PSD files, darktable for raw photos and Krita for painting and retouching, with versions, licences and Windows requirements.

Hannah Vance6 min

LibreOffice vs ONLYOFFICE: Which Free Office Suite Is Best for Your PC?

Versus

LibreOffice vs ONLYOFFICE: Which Free Office Suite Is Best for Your PC?

LibreOffice vs ONLYOFFICE Desktop Editors on a Windows 11 PC in 2026: apps included, Microsoft Office file compatibility, tabbed interface, PDF and form editing, optional AI tools and local models, cloud collaboration, licences and Windows system requirements, and which free office suite suits which user.

Callum Reid6 min

How to Change Default Apps in Windows 11

How-To

How to Change Default Apps in Windows 11

How to change default apps in Windows 11: using Open with > Choose another app with Always or Just once, the file Properties method, setting defaults by file type, link type or app in Settings > Apps > Default apps, changing your default browser, resetting all default apps and fixing common problems.

Marcus Thorne7 min

Windows ML Gets DX CGC: Microsoft's New Way to Run Local AI on Your GPU

News

Windows ML Gets DX CGC: Microsoft's New Way to Run Local AI on Your GPU

Microsoft's Windows ML 2.9.42 Experimental adds DX CGC, a DirectX-based compiler for running AI models on graphics cards, with NVIDIA acceleration first via the 621.24 driver, plus direct loading of GGUF and Hugging Face models. We explain what's new and what it means for local AI on Windows.

Eleanor Shaw5 min