Skip to main content

Installation

ContextFort can be installed in two ways: from the Chrome Web Store (recommended) or by loading unpacked in developer mode (for testing or development).

Requirements

Chrome Browser

Version 134 or higher requiredCheck your version: chrome://version

Permissions

ContextFort requires elevated permissions for agent monitoring, screenshot capture, and session isolation.
Why Chrome 134+? ContextFort uses Manifest V3 APIs and modern Chrome features for security and performance. The minimum version is specified in chrome-extension/manifest.json:6.

The easiest and most secure way to install ContextFort.
1

Visit Chrome Web Store

Open the ContextFort extension page.Or search for “ContextFort” in the Chrome Web Store.
2

Review Permissions

Before installing, review what ContextFort can access:
  • Read and change all your data on all websites: Required to detect agent activity and capture screenshots
  • Manage your tabs and browsing activity: Track agent sessions and tab groups
  • Manage cookies: Separate human and agent login sessions
These permissions are necessary for core functionality. All data stays local - nothing is transmitted to external servers.
3

Add to Chrome

Click “Add to Chrome” button.Chrome will show a permission confirmation dialog. Click “Add extension” to proceed.
4

Verify Installation

After installation:
  1. ContextFort icon appears in the toolbar
  2. Extension shows version 1.0.1 (current)
  3. Click the icon to open the dashboard
Pin the extension: Click the puzzle piece (🧩) icon in Chrome’s toolbar, then click the pin next to ContextFort for quick access.

Automatic Updates

Chrome Web Store installations update automatically:
  • Updates download in the background
  • Extension reloads on next browser restart
  • No user action required
Check for updates: chrome://extensions → ContextFort → “Update” button

Method 2: Load Unpacked (Developer Mode)

For developers, testers, or users who want to run a specific version.
Not recommended for production use. Developer mode bypasses Chrome Web Store security reviews and disables automatic updates.

Step 1: Download Source

Download the latest stable release:
  1. Go to Releases
  2. Download the latest .zip file
  3. Extract to a folder (e.g., ~/contextfort)
Releases are pre-built and ready to load. No compilation required.

Step 2: Enable Developer Mode

1

Open Extensions Page

Navigate to chrome://extensions in Chrome.Or: Menu → Extensions → Manage Extensions
2

Toggle Developer Mode

In the top-right corner, enable the “Developer mode” toggle.
You’ll see a warning bar: “Extensions running in developer mode…” This is expected.

Step 3: Load Extension

1

Click Load Unpacked

Click the “Load unpacked” button (appears after enabling Developer mode).
2

Select Extension Folder

Navigate to the folder containing:
  • manifest.json
  • background.js
  • content.js
  • dashboard/ directory
Select this folder and click “Select Folder” or “Open”.
3

Verify Installation

ContextFort appears in the extensions list with:
  • Name: ContextFort
  • Version: 1.0.1
  • ID: jkocglijncodiiljpdnoiegfcgeadllg (or different for unpacked)
  • Status: Enabled
Unpacked extensions have different IDs than Chrome Web Store versions. This affects extension URLs and may require re-configuration if switching between methods.

Step 4: Handle Errors

If you see errors after loading:
Failed to load extension: Required value 'manifest_version' is missing
Solution: Ensure you selected the correct folder containing manifest.json. Don’t select a parent or child folder.
Service worker registration failed
Solution:
  1. Click “Errors” button on the extension card
  2. Check console for specific error
  3. Common issue: Missing dependencies (run npm install in extension folder)
Chrome shows warnings about broad permissions.Expected behavior: ContextFort requires extensive permissions for agent monitoring. These warnings are normal.

Permissions Explained

ContextFort requests the following permissions (defined in chrome-extension/manifest.json:8-19):
{
  "permissions": [
    "storage",           // Store screenshots and session data locally
    "unlimitedStorage",  // Remove storage quota for screenshot capture
    "tabs",              // Access tab information for agent detection
    "tabGroups",         // Monitor tab group changes (emoji indicators)
    "webNavigation",     // Track agent page navigations
    "declarativeNetRequest", // Enforce URL blocking rules
    "scripting",         // Inject content scripts for event capture
    "cookies",           // Session isolation (swap human/agent cookies)
    "contextMenus",      // Add right-click menu options
    "notifications"      // Show login required notifications
  ],
  "host_permissions": [
    "<all_urls>"        // Required to monitor agents on any website
  ]
}

Why These Permissions?

AI agents can operate on any website (Google, GitHub, internal tools, etc.). ContextFort needs access to all sites to:
  • Capture screenshots regardless of domain
  • Enforce blocking rules across the web
  • Track agent navigation paths
Data stays local - ContextFort never transmits data to external servers.
Session isolation feature swaps cookies between human and agent sessions:
// chrome-extension/background.js:94-102
async function clearCookies(domain) {
  const cookies = await captureCookies(domain);
  for (const cookie of cookies) {
    const protocol = cookie.secure ? 'https://' : 'http://';
    const url = `${protocol}${cookie.domain}${cookie.path}`;
    await chrome.cookies.remove({ url, name: cookie.name });
  }
}
This prevents agents from accessing your logged-in accounts.
Screenshot data can accumulate quickly during long agent sessions:
  • Average screenshot: 100-500 KB
  • 100 screenshots per session: 10-50 MB
  • Multiple sessions: Can exceed Chrome’s default 5 MB quota
Storage management (chrome-extension/background.js:431-438):
screenshots.push(screenshotData);
if (screenshots.length > 100) {
  screenshots.shift(); // Keep only last 100
}

Post-Installation Configuration

Disable Analytics (Optional)

ContextFort includes optional PostHog analytics. To disable:
1

Locate background.js

For unpacked extensions:
  1. Find the extension folder you loaded
  2. Open background.js in a text editor
For Chrome Web Store installations:Cannot modify (use unpacked method if you need to disable analytics).
2

Change Feature Flag

Find line 2:
const ENABLE_POSTHOG = true;
Change to:
const ENABLE_POSTHOG = false;
3

Reload Extension

Go to chrome://extensions, find ContextFort, and click “Reload” button.
Analytics only collect event names (agent_start, agent_stop) and timestamps. No PII, screenshots, or session data is ever transmitted. See chrome-extension/background.js:33-48 for implementation.

Configure Storage Limits

By default, ContextFort keeps the last 100 screenshots. To change this:
  1. Edit chrome-extension/background.js:436
  2. Modify the limit:
    if (screenshots.length > 200) {  // Change to your desired limit
      screenshots.shift();
    }
    
  3. Reload the extension

Verifying Installation

Run these checks to ensure ContextFort is working:
1

Check Extension Status

Open chrome://extensions and verify:
  • ✅ ContextFort is Enabled
  • ✅ No error messages
  • ✅ Version matches expected (1.0.1)
2

Open Dashboard

Click ContextFort icon in toolbar. Dashboard should open with:
  • Navigation tabs: Visibility, Sessions, Controls
  • No error messages in dashboard
  • “No sessions yet” message (if first install)
3

Check Console

Open Chrome DevTools (F12) on any page:
  1. Go to Console tab
  2. Look for ContextFort messages
  3. Should see: [ContextFort] Extension started
If you see errors, check Troubleshooting below.

Troubleshooting

Error: “Cannot install from this site”Solutions:
  • Ensure you’re using Google Chrome (not Chromium or Edge)
  • Check Chrome version: Must be 134+
  • Disable other security extensions temporarily
  • Try incognito mode: chrome://extensions → Enable “Allow in incognito”
Error: “Failed to load extension”Common causes:
  1. Wrong folder selected: Must contain manifest.json
  2. Missing files: Ensure all files from release are present
  3. Syntax errors: If built from source, check for compilation errors
Debugging:
# Check manifest is valid JSON
cat manifest.json | python -m json.tool

# List required files
ls -la manifest.json background.js content.js popup.html
Symptoms: Clicking icon does nothingSolutions:
  1. Check background worker: chrome://extensions → ContextFort → “service worker”
  2. Look for errors in service worker DevTools
  3. Reload extension: chrome://extensions → Reload button
  4. Clear extension storage: Details → “Clear storage”
Dashboard opens via chrome-extension/background.js:51-55:
chrome.action.onClicked.addListener(() => {
  chrome.tabs.create({
    url: chrome.runtime.getURL('dashboard/visibility/index.html')
  });
});
Symptoms: Features missing or errors about permissionsSolutions:
  1. Verify permissions granted: chrome://extensions → ContextFort → “Details” → “Permissions”
  2. For unpacked extensions: Check manifest.json permissions array
  3. Remove and reinstall extension
  4. Some permissions require user interaction: ContextFort will prompt when needed
Cause: Developer mode extensions trigger warningsSolutions:
  • Chrome Web Store version: Doesn’t have this issue
  • Developer mode: Click “Enable” after each Chrome restart
  • Suppress warning: Use --enable-extension-activity-logging Chrome flag (not recommended)

Uninstalling

To remove ContextFort:
1

Open Extensions Page

Navigate to chrome://extensions
2

Remove Extension

Find ContextFort and click “Remove” button.Confirm deletion when prompted.
3

Data Cleanup

Uninstalling automatically deletes all local data:
  • All screenshots
  • Session history
  • Blocking rules
  • Stored session profiles
This cannot be undone. Export important data before uninstalling.

Partial Cleanup (Keep Extension, Clear Data)

If you want to keep ContextFort but clear storage:
  1. chrome://extensions → ContextFort → “Details”
  2. Scroll to “Storage”
  3. Click “Clear storage”
Or via Dashboard:
  1. Open ContextFort dashboard
  2. Settings → Clear All Data (if available)

Next Steps

Quickstart Guide

Monitor your first agent session in 5 minutes

Features Overview

Explore all ContextFort capabilities

Configuration

Customize behavior and privacy settings

Security

Understand data handling and privacy

Getting Help

If you encounter issues during installation:
  1. Check Chrome version: chrome://version (must be 134+)
  2. Review console errors: Open DevTools → Console tab
  3. Search GitHub Issues: Existing problems
  4. Open new issue: Include:
    • Installation method (Web Store or unpacked)
    • Chrome version
    • Error messages
    • Steps to reproduce

Need more help?

Contact support or join the community discussion.

Build docs developers (and LLMs) love