AI Firewall Firefox

Examine source code of AI Firewall

Inspect and view changes in AI Firewall source codes across current and past versions
Please login to examine the extension's source code.
manifest.json
{
  "manifest_version": 3,
  "name": "AI Firewall",
  "version": "1.0.2",
  "description": "Inspects prompts before they're sent to AI services, blocking secrets and PII via the local AI Firewall proxy.",
  "author": "AI Firewall",
  "homepage_url": "https://mdaniel-goldberg.github.io/ai-firewall/",
  "icons": {
    "16": "icons/icon-16.png",
    "32": "icons/icon-32.png",
    "48": "icons/icon-48.png",
    "128": "icons/icon-128.png"
  },
  "browser_specific_settings": {
    "gecko": {
      "id": "ai-firewall.mdaniel.goldberg@gmail.com",
      "strict_min_version": "132.0",
      "data_collection_permissions": {
        "required": [
          "none"
        ]
      }
    }
  },
  "permissions": [
    "storage",
    "declarativeNetRequest"
  ],
  "optional_host_permissions": [
    "https://*/*",
    "http://*/*"
  ],
  "host_permissions": [
    "http://127.0.0.1:8080/*",
    "https://api.openai.com/*",
    "https://chatgpt.com/*",
    "https://chat.openai.com/*",
    "https://claude.ai/*",
    "https://api.anthropic.com/*",
    "https://gemini.google.com/*",
    "https://generativelanguage.googleapis.com/*",
    "https://aistudio.google.com/*",
    "https://copilot.microsoft.com/*",
    "https://api.githubcopilot.com/*",
    "https://grok.com/*",
    "https://api.x.ai/*",
    "https://app.slack.com/*",
    "https://www.notion.so/*",
    "https://notion.so/*",
    "https://m365.cloud.microsoft/*",
    "https://copilot.cloud.microsoft/*",
    "https://www.perplexity.ai/*",
    "https://perplexity.ai/*",
    "https://chat.deepseek.com/*",
    "https://chat.mistral.ai/*",
    "https://api.cursor.com/*",
    "https://api2.cursor.sh/*",
    "https://api.perplexity.ai/*",
    "https://api.mistral.ai/*",
    "https://api.deepseek.com/*",
    "https://api.cohere.ai/*",
    "https://api.cohere.com/*",
    "https://api.together.ai/*",
    "https://api.groq.com/*",
    "https://api.fireworks.ai/*",
    "https://api.baseten.co/*",
    "https://api.replicate.com/*"
  ],
  "content_scripts": [
    {
      "matches": [
        "https://chat.openai.com/*",
        "https://chatgpt.com/*",
        "https://claude.ai/*",
        "https://gemini.google.com/*",
        "https://aistudio.google.com/*",
        "https://copilot.microsoft.com/*",
        "https://grok.com/*",
        "https://x.com/i/grok*",
        "https://app.slack.com/*",
        "https://www.notion.so/*",
        "https://notion.so/*",
        "https://m365.cloud.microsoft/*",
        "https://copilot.cloud.microsoft/*",
        "https://www.perplexity.ai/*",
        "https://perplexity.ai/*",
        "https://chat.deepseek.com/*",
        "https://chat.mistral.ai/*"
      ],
      "js": [
        "coach.js",
        "content.js"
      ],
      "run_at": "document_start",
      "all_frames": true
    },
    {
      "matches": [
        "https://chat.openai.com/*",
        "https://chatgpt.com/*",
        "https://claude.ai/*",
        "https://gemini.google.com/*",
        "https://aistudio.google.com/*",
        "https://copilot.microsoft.com/*",
        "https://grok.com/*",
        "https://x.com/i/grok*",
        "https://app.slack.com/*",
        "https://www.notion.so/*",
        "https://notion.so/*",
        "https://m365.cloud.microsoft/*",
        "https://copilot.cloud.microsoft/*",
        "https://www.perplexity.ai/*",
        "https://perplexity.ai/*",
        "https://chat.deepseek.com/*",
        "https://chat.mistral.ai/*"
      ],
      "js": [
        "inject.js"
      ],
      "run_at": "document_start",
      "all_frames": true,
      "world": "MAIN"
    }
  ],
  "background": {
    "scripts": [
      "counters.js",
      "reporter.js",
      "fleet-config.js",
      "detect.js",
      "background.js"
    ]
  },
  "declarative_net_request": {
    "rule_resources": [
      {
        "id": "fail_closed",
        "enabled": false,
        "path": "rules.json"
      }
    ]
  },
  "options_page": "options.html",
  "action": {
    "default_title": "AI Firewall",
    "default_popup": "popup.html",
    "default_icon": {
      "16": "icons/icon-16.png",
      "32": "icons/icon-32.png",
      "48": "icons/icon-48.png",
      "128": "icons/icon-128.png"
    }
  }
}

Best AI Firewall Alternatives

Here are some Firefox add-ons that are similar to AI Firewall: