# Firellama

> Right-click to summarize a sentence or define a word using locally installed ollama. Sends selected text to your offline ollama system for pop-up window. This is more or less DIY project since most of the things are needed on your local machine.

Canonical page: [https://chrome-stats.com/d/firellama](https://chrome-stats.com/d/firellama)

## Overview

- **ID:** `firellama`
- **Platform:** Firefox
- **Type:** Firefox add-on
- **Status:** Available
- **Publisher:** dishdare
- **Category:** language-support
- **Daily users:** 1
- **Version:** 1.0
- **Last updated:** 2025-06-24
- **First published:** 2025-06-20
- **Size:** 1.33 MB
- **Data as of:** 2026-09-09
- **Store listing:** [Firefox Add-ons Store](https://addons.mozilla.org/firefox/addon/firellama/)

## Description

you need ollama installed on your local machine. 
<a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/d52b9b9ccc4c1aecea048eda51329e1f19effa23153b389f72549dc0a95e8fcc/https%3A//ollama.com/download" rel="nofollow">https://ollama.com/download</a>
ollama pull deepseek-r1:1.5b

The addon will use the model deepseek-r1:1.5b installed on your machine.
It summarizes the selected text if it is more than one word or else defines it.

On top of that you need <a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/4c91927c9b248153d4ebfc2d07c515c68545a51da8d34be00663bddabfea1f91/http%3A//server.py" rel="nofollow">server.py</a> running on your machine.
pip install flask flask_cors

<a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/4c91927c9b248153d4ebfc2d07c515c68545a51da8d34be00663bddabfea1f91/http%3A//server.py" rel="nofollow">server.py</a> 

<code>from flask import Flask, request, jsonify
from flask_cors import CORS
import requests
import re

app = Flask(__name__)
CORS(app)

OLLAMA_URL = "http://localhost:11434/api/generate"
OLLAMA_MODEL = "deepseek-r1:1.5b"

def call_ollama(prompt):
    try:
        res = <a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/ef5034283ab85f149f506406147d7f407b1502d68d798c7381af162086f59608/http%3A//requests.post" rel="nofollow">requests.post</a>(OLLAMA_URL, json={
            "model": OLLAMA_MODEL,
            "prompt": prompt,
            "stream": False
        })
        if res.status_code == 200:
            result = res.json().get("response", "")
            cleaned = re.sub(r"&lt;think&gt;.*?&lt;/think&gt;", "", result, flags=re.DOTALL).strip()
            return cleaned
        else:
            return f"⚠️ Ollama error: {res.text}"
    except Exception as e:
        return f"❌ Error: {str(e)}"

@app.route("/ask", methods=["POST"])
def ask():
    data = request.get_json()
    prompt = data.get("prompt")
    if not prompt:
        return jsonify({"error": "Missing prompt"}), 400

    result = call_ollama(prompt)
    return jsonify({"text": result})

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=5005)
</code>

Run it at startup with "ollama run deepseek-r1:1.5b" and enjoy the summary.

I usually do ctrl+a of the entire webpage and right-click on Firellama to get the summary.

Special Thanks to ChatGPT.

## Rankings

- #117,069 — Overall

## Permissions and access

### Permissions

- `contextMenus`
- `activeTab`
- `storage`

## Safety

- **Risk impact:** Very low risk impact
- **Risk likelihood:** Moderate risk likelihood

### Analysis details

- This extension has low user count. Unpopular extensions may not be stable or safe.

> Some risk analysis details are omitted from this free response. [Upgrade to view the full analysis](https://chrome-stats.com/pricing).

## Similar extensions and apps

- [Ollama Article Summarizer](https://chrome-stats.com/d/ollama-article-summarizer) — 1 users
- [Apogee](https://chrome-stats.com/d/apogeeext) — 3 users
- [SpaceLLama](https://chrome-stats.com/d/spacellama) — 32 users, 5.00 / 5
- [Ollama Web Chat](https://chrome-stats.com/d/ollama-web-chat) — 23 users, 2.00 / 5
- [Ollama Client](https://chrome-stats.com/d/ollama-client-by-sleek-addons) — 33 users
- [Ollama Web Extension](https://chrome-stats.com/d/ollama-web-extension) — 95 users, 5.00 / 5
- [Ollama Page Summarizer](https://chrome-stats.com/d/ollama-page-summarizer)
- [Cunning Linguist - Translate locally](https://chrome-stats.com/d/fftranslator) — 1 users
- [Ollama → Clipboard (Auto-send)](https://chrome-stats.com/d/ollama-clipboard-auto-send) — 1 users
- [Ollama Client](https://chrome-stats.com/d/ollama-client) — 230 users, 5.00 / 5
- [Tangoji](https://chrome-stats.com/d/tangoji) — 1 users
- [💡Vaayu Agent - Local AI Assistant (Ollama)](https://chrome-stats.com/d/vaayu-agent-assistant) — 1 users

---

Source: [Chrome-Stats](https://chrome-stats.com/d/firellama)
