Skip to content

How-ToGPU

How to Use Local AI in Thunderbird With Ollama and ThunderAI

How to add private, local AI to Thunderbird with the free ThunderAI add-on and Ollama: pulling a model, allowing Thunderbird to reach Ollama, connecting with the Setup Wizard, using reply, proofread, summarise and translate, and the hardware that helps.

By , Systems & Technical Editor

5 min read

How to Use Local AI in Thunderbird With Ollama and ThunderAI

ThunderAI is a free add-on for Mozilla Thunderbird that can summarise, translate, proofread and draft replies to your emails. It works with cloud services, but it can also talk to Ollama running on your own PC, so your messages never have to leave your machine. This guide shows you how to set that up on Windows.

The steps are based on ThunderAI's GitHub README, its official Ollama setup guide, its Thunderbird add-ons listing and the Ollama FAQ, read on 3 December 2026.

What you need

  • Thunderbird 140.0 or later. That's ThunderAI's minimum version.

  • Ollama installed and running, with at least one model downloaded. New to Ollama? See how to run AI models locally with Ollama and LM Studio.

  • ThunderAI, version 5.2.0 on the Thunderbird add-ons site (8 November 2026) or 5.3.0 on GitHub (28 November 2026). It's free and released under the GPL v3 licence.

ThunderAI also works with LM Studio, or any other OpenAI-compatible server, through its OpenAI Compatible connection. If you'd rather use that, see how to use the LM Studio server.

Step 1: Download a model in Ollama

Open a terminal and pull a model. ThunderAI's Ollama guide uses ollama pull llama3 as its example and lists mistral, phi3 and gemma2 as other good options for email tasks. Run ollama list to check Ollama is running and the model is there.

Step 2: Let Thunderbird talk to Ollama

Thunderbird add-ons run in a sandbox, so Ollama has to accept requests from them. ThunderAI's guide gives two ways to do this:

  1. Set an environment variable. Create a user environment variable called OLLAMA_ORIGINS with the value moz-extension://*, then restart Ollama. The Ollama FAQ says to quit Ollama from the taskbar, add the variable through Edit environment variables for your account, then start Ollama again from the Start menu. Our guide to setting Ollama environment variables on Windows has the full steps.

  2. Give ThunderAI permission instead. Use the Give permission to the current host button in ThunderAI's settings (under "Problems setting CORS?"), or accept the request that appears when you test the connection. For a server on localhost or 127.0.0.1, Thunderbird asks for access to all websites.

If you already have OLLAMA_ORIGINS set for another app, add moz-extension://* to it as a comma-separated value. The Ollama FAQ shows this format for allowing several extension types at once.

Step 3: Install ThunderAI

ThunderAI's README says to install it from the Thunderbird add-ons site, or download the latest release from its GitHub releases page as an .xpi file. On 3 December 2026, version 5.3.0 was only on GitHub; the add-ons site still offered 5.2.0.

Step 4: Connect ThunderAI to Ollama

On first run, ThunderAI's Setup Wizard opens. Choose Ollama API (Local LLM), enter the server address, pick a model and test the connection. The wizard then lets you switch on the features you want.

To do it by hand, go to Tools > Add-ons and Themes > ThunderAI > Preferences, and:

  1. Choose Ollama API (Local LLM) in the Connection Type dropdown.

  2. Leave the Host Address as http://localhost:11434, or use another PC's IP address if Ollama runs elsewhere on your network (see how to share Ollama on your local network).

  3. Leave the Ollama API Key empty. It's only needed for Ollama's hosted API or a server behind an authenticating proxy.

  4. Click Update list next to Ollama Models and pick your model.

  5. Click Test now. Settings save automatically, and the bar should show "Connected — Ollama API (Local LLM) reachable".

Step 5: Use it on your emails

Open an email, click the ThunderAI toolbar button and pick an action. ThunderAI's README lists:

  • Reply, to draft a reply with a simple, advanced or custom instruction

  • Proofread, with an interactive change picker to accept or reject each correction

  • Rewrite selected text in a polite or formal tone

  • Summarize and Translate, in a chat window or inline in the message pane

  • Add tags and Classify, using your own criteria

  • Calendar event and Task, which also need the companion add-on ThunderAI Sparks

  • Prompt this, for any free-form instruction

There's also a search box in the toolbar popup and a Ctrl+Alt+A shortcut, and you can write your own custom prompts and run a prompt on many emails at once.

Step 6: Turn on automatic features (optional)

With an API connection such as Ollama, ThunderAI can work on incoming mail by itself: auto-tagging, a spam filter that moves spam to the junk folder, auto-summarize and auto-translate. Drafts, templates, the outbox and sent mail are skipped.

If you use these, ThunderAI's guide recommends raising Keep model loaded in the advanced options (for example 30m, or -1 to keep it loaded). Otherwise Ollama reloads the model for every message; the server default is five minutes. Our guide to keeping Ollama models loaded explains this setting. If automatic features time out on a slow model, increase Special command timeout (ms).

Useful advanced options

The Ollama connection's advanced options include a system prompt, a temperature (0.8 by default), the number of context tokens, forced JSON output and Enable thinking. With reasoning models, choose Off if you don't want the model to think before every answer; see how to turn off thinking in Ollama. The Ollama FAQ says its default context window is 4,096 tokens, and ThunderAI shows the maximum your chosen model supports, so you can raise the value if you summarise long threads.

What hardware do you need?

ThunderAI's guide says a modern PC with at least 16GB of RAM will handle models such as llama3 or mistral comfortably, and that a graphics card speeds things up significantly. Smaller 7B models are faster but less capable. For running these models on the GPU, an 8GB card such as the ASUS RTX 5060 8GB Dual OC is a sensible start, and a 12GB card such as the ASUS RTX 3060 12GB Dual Gaming OC V2 leaves more room for larger models. See how much VRAM you need and how to check Ollama is using your GPU.

Privacy notes

With Ollama on your own PC, ThunderAI's guide says your emails stay on your machine. If you switch any prompt or feature to a cloud provider, that text goes to the provider. The separate ThunderAI Privacy add-on masks personal data locally before text is sent to an AI provider and restores it in the answer; it works with API connections only and needs 64-bit Thunderbird 153 or later.

For a simpler, local-only alternative, see ThunderAI vs AitoMail, and for more options see our best local AI email assistants. For AI in office apps beyond email, see the best office apps for local AI.

The bottom line

ThunderAI is the easiest way to add private, local AI to Thunderbird: pull a model in Ollama, allow moz-extension://* in OLLAMA_ORIGINS (or grant ThunderAI permission), then let the Setup Wizard connect to http://localhost:11434. It can draft replies, proofread, summarise, translate, tag and filter spam, and with a local model your emails stay on your PC. Raise Keep model loaded if you use the automatic features. Forge PC hasn't measured its speed or output quality.

In this article

Sources

  1. 01ThunderAI README (micz, GitHub)
  2. 02ThunderAI releases (GitHub)
  3. 03ThunderAI Ollama setup guide (micz.it)
  4. 04ThunderAI on Thunderbird Add-ons
  5. 05Ollama FAQ (Ollama, GitHub)

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