Skip to content

An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.

1.4 KB
Raw Blame
/** Where each browser gets the extension, and how the daemon tells which copy a browser runs. */

export const CHROME_WEB_STORE = {
  id: 'npmocgldfflonjjmdadmdefpnfagnjmp',
  url: 'https://chromewebstore.google.com/detail/browsentic/npmocgldfflonjjmdadmdefpnfagnjmp',
} as const;

export const EDGE_ADD_ONS = {
  id: 'cbkjhkgjcpihokphhdkbahilpcjojpdc',
  url: 'https://microsoftedge.microsoft.com/addons/detail/browsentic/cbkjhkgjcpihokphhdkbahilpcjojpdc',
} as const;

/** Signed by addons.mozilla.org for every release and installed from the GitHub release. */
export const FIREFOX_ADDON_ID = '[email protected]';

export const STORE_EXTENSION_IDS = [CHROME_WEB_STORE.id, EDGE_ADD_ONS.id];

export type Source = 'chrome-web-store' | 'edge-add-ons' | 'firefox' | 'unpacked';

export const SOURCE_LABEL: Record<Source, string> = {
  'chrome-web-store': 'Chrome Web Store',
  'edge-add-ons': 'Edge Add-ons',
  firefox: 'Firefox add-on',
  unpacked: 'unpacked',
};

/** A Chromium extension the stores did not sign is one somebody loaded from a folder. */
export function sourceOf(origin: string): Source {
  if (origin.startsWith('moz-extension://')) return 'firefox';
  const id = origin.replace(/^chrome-extension:\/\//, '').replace(/\/$/, '');
  if (id === CHROME_WEB_STORE.id) return 'chrome-web-store';
  if (id === EDGE_ADD_ONS.id) return 'edge-add-ons';
  return 'unpacked';
}