Skip to main content
Glama

Your coding agent needs a page you are already signed in to -- a staging app on localhost, an internal dashboard, a cloud console, or a live pull request. Spin up a second headless browser and you lose your session cookies, your MFA state, and any sight of what the model is actually clicking.

Ghostlight gives your agent its own sky-blue tab group inside the Chrome, Edge, Brave, or Chromium window you already have open. Every page scan, click, form fill, and drag lights up in front of you. Watch it work, tap Alt+Shift+P to take the wheel for a delicate step, or lend it the tab you are looking at right now.

One local Rust service connects 20 coding agents over MCP and drives scripts through a shorthand CLI. Everything stays on your machine -- no account, no cloud relay, no telemetry.

A light left burning, so the halls stay safe.

Up and running in two minutes

You need Chrome, Edge, Brave, or Chromium 125+ on Windows or Linux and an MCP client. (Node.js is only needed if you choose npx; the one-line installers fetch the native Rust binaries directly.)

  1. Install Ghostlight. It configures the coding agents it finds and opens the Ghostlight window on a three-step setup checklist:

    npx -y ghostlight install

    Without Node.js -- PowerShell on Windows:

    irm https://sylin.org/ghostlight/get.ps1 | iex

    POSIX shell on Linux:

    curl -fsSL https://sylin.org/ghostlight/get.sh | sh
  2. Add the browser extension. In the Ghostlight setup window, click Add next to your browser to open Ghostlight in Browser on the Chrome Web Store (Edge installs from the same listing). If that browser already has the extension, click Open.

  3. Run your first prompt. Restart your coding agent if the installer asked you to, then ask it:

    Open sylin.org/ghostlight/demo/desk and ring the bell.

    A sky-blue Ghostlight group opens, the agent rings the bell on a demo page that stores nothing, and the setup window switches to Ready.

If anything does not connect on the first try, run ghostlight doctor (or npx -y ghostlight doctor) for the exact check that failed and the command to fix it. Windows users can also install via winget install Sylin.Ghostlight followed by ghostlight install, or via the Claude Desktop .mcpb bundle -- see the installation guide.

Related MCP server: byob

What working together looks like

  • Your real session, cleanly separated. Each agent works in its own <ghost> <Agent> blue tab group and reuses tabs it left open on the same site instead of littering your tab strip. It never touches a tab you opened -- unless you click Hand this tab to Ghostlight in the browser toolbar popup to pass your active page straight to a waiting agent (browser_tabs await_shared).

  • 23 catalog tools built for models, not CDP trivia. 22 browser tools cover tabs, navigation, composed page reading (open shadow DOM and embedded frames included), semantic target search, clicks, hovers, native HTML and ARIA combobox form fills, file uploads, bounded JavaScript, waits, multi-step flows, dialogs, memory-only GIF capture, and redacted console/network diagnostics -- plus policy_explain to inspect active rules. Navigations and clicks return a bounded arrival digest with fresh handles so agents finish in fewer turns. Every call reports whether an effect happened and whether repeating it is safe; uncertain effects are never replayed automatically.

  • 11 shorthand CLI verbs for scripts and UI verification. Drive the same governed browser from shells, CI checks, or agent skills without hand-writing JSON-RPC, isolated in named --session tab groups:

    ghostlight --session pr-42 nav https://localhost:3000/login
    ghostlight --session pr-42 fill "Email"=ada@example.com --submit "Sign in"
    ghostlight --session pr-42 wait "Dashboard"
    ghostlight --session pr-42 shot ./dashboard.jpg
  • Wide open by default; progressive trust in one click. Personal use needs no policy file. When you want guardrails, click Use Co-Pilot Guardrails on the Policy tab: reading stays open everywhere, while clicks, form edits, and scripts prompt in the Ghostlight window or toolbar popup (Allow once, Allow for session (15 min), Always allow on <host>, or Deny). Teams can author Schema 5 (allowed and ask) host grants, never-touch domains, and Ed25519 + ML-DSA-65 signed central bundles, and test changes against past runs with ghostlight policy simulate.

  • Your machine, and only your machine. Ghostlight runs as your OS user over local IPC and launches on demand when your agent or browser starts. No vendor account, no hosted control plane, no update polling, and never a phone-home request.

The Ghostlight window

Click the Ghostlight tray icon to open At a glance: the live browser action at the top with its timer running, and recent actions stacked beneath it in Ghostlight's own plain words -- "Opened example.com.", "Read 1,240 words.", "Filled 3 fields and submitted the form." Alongside it sit:

  • Integrations -- one-click setup across 20 supported coding agents, preserving your existing JSONC/TOML comments and writing a backup first;

  • Status -- live health across the service, connected browsers, policy, and notifications;

  • Policy -- plain-English capability summaries, the Use Co-Pilot Guardrails preset, rule simulation against local history, and signed org-policy provenance;

  • Settings -- pause/end controls, local watching permissions, browser auto-open, notifications, diagnostics, and Quit;

  • About -- version details, manual update check, and the Continuity Promise.

Closing the window leaves Ghostlight running quietly in the tray. On a headless Linux or SSH session, ghostlight-service runs without a display toolkit and ghostlight status reports why no window is attached.

Clear boundaries

  • All-open means HTTP(S), localhost included. Without a policy, HTTP and HTTPS sites work out of the box, including local dev servers. Browser-internal schemes (chrome://, file://) and Ghostlight's own loopback workbench address are always off-limits.

  • Credentials require both your instruction and your approval. Agents must pass user_authorized_credentials: true per request, and password, one-time-code, or payment inputs also trigger an OS-enforced Step-Up prompt in the Ghostlight window or toolbar popup. Injected page text cannot click or spoof that prompt.

  • Evidence stays visible. Model-driven tab closing requires both policy permission (action + browser.tabs.allow_close) and the extension's Preserve controlled tabs toggle (on by default). Closing tabs yourself always works.

  • Passive in-page visuals. The sky-blue cursor, scan sweep, field splash, and guardrail ribbon are pointer-transparent and contain no buttons or focusable elements. Interactive controls live only in the Ghostlight window and extension popup.

  • Payload-free local audit. audit.jsonl records tool names, capability checks, hostnames, optional CLI session_scope labels, and bounded counts (3 fields, 1,240 words, 1280x720) -- never URL paths, queries, page text, field values, or screenshots.

Release status

The latest published release is 3.0.0: GitHub release v3.0.0, npm ghostlight@3.0.0, and MCP Registry org.sylin/ghostlight 3.0.0, paired with Chrome Web Store adapter v3.0.0 (docs/public-status.json, release custody record). WinGet currently serves 2.0.3 until the 3.0.0 manifest (microsoft/winget-pkgs#492118) merges; the one-line installer and npm serve 3.0.0 (CHANGELOG.md, docs/STATUS.md).

  • Supported platforms (published 3.0.0): Windows x64 and Linux x86_64 (glibc and musl, including Alpine) on Chrome, Edge, Brave, or Chromium 125+ (native packages on Linux; Snap and Flatpak sandboxes block native messaging). macOS source support is on dev awaiting physical Apple Silicon desktop/notarization validation; no macOS release binary is published yet.

  • Independent updates: The service delivers the isolated-world page runtime to the extension at handshake, so ordinary service updates need no extension reload. See compatibility.json for exact protocol pairings.

MCP Client <--stdio--> ghostlight mcp <--relay--> ghostlight-service
    <--relay--> ghostlight (browser) <--native messaging--> Extension <--CDP--> Browser
  • ghostlight-service -- the Rust domain authority: owns the 23-tool language, workspaces, Schema 5 policy and Step-Up approvals, payload-free audit, and the loopback workbench (links no UI toolkit).

  • ghostlight -- the thin protocol edge: runs as the MCP stdio relay (ghostlight mcp), the browser native-messaging relay, and the CLI front door.

  • ghostlight-desktop -- the native window, tray icon, and OS notifications over the loopback workbench.

  • Ghostlight in Browser -- the policy-free Manifest V3 extension (browser/extension/): executes privileged browser primitives, draws content-free visual feedback, and syncs toolbar controls.

See docs/1.0/ARCHITECTURE.md and docs/SPEC.md for the full design.

Requires Rust 1.89+, Node.js 22+ (for the TypeScript browser/ workspace), and Chromium 125+ (plus WebKitGTK 4.1, GTK 3, and AppIndicator dev packages on Linux when building ghostlight-desktop):

node scripts/build-browser.mjs
cargo build --workspace

A build directory never serves directly; deploy into ~/.ghostlight/bin on the development channel with pwsh scripts/dev-loop.ps1. docs/DEV-LOOP.md covers unpacked extension loading (browser/extension/), isolated process journeys, and live verification.

Where to go next

Goal

Guide

Install, verify, update, or uninstall

Installation guide

Get productive fast as a solo developer

Solo developer guide

Drive Ghostlight from scripts, CI, or CLI skills

Scripting and CLI guide

Let an AI coding agent walk you through setup

Agent install guide

Configure Co-Pilot Guardrails or signed org policy

Governance guide

Collect audit.jsonl into a SIEM

SIEM integration guide

Compare Ghostlight with Playwright MCP, DevTools MCP, or Claude in Chrome

Comparison guide and Decision aid

Review security, data flows, SBOMs, and procurement answers

Trust Center

Read the product, language, and architecture contracts

INTENT, LANGUAGE, ARCHITECTURE, ACCEPTANCE

Check active branch progress or contribute

docs/STATUS.md, Contributing guide, ADR index

License and continuity

Ghostlight is free and open source under Apache-2.0 OR MIT, governance module included (LICENSING.md, ADR-0140). There is no license key, activation check, or seat counter in the runtime -- an installed copy keeps working offline indefinitely (Continuity Promise).

Questions and contributions

Open GitHub Issues for reproducible bugs, GitHub Discussions for questions and workflow ideas, or email hello@sylin.org for private security reports (SECURITY.md) and anything that cannot be public.

Available Tools

25 tools
act_onA

Resolve one visible element by ref or accessible meaning, perform one action, and return a bounded observation receipt. Use this when the target should be unique and you want to avoid a separate find, action, and wait loop. Ambiguous semantic matches are reported without acting.

Inputs: tabId (required), action (required), target (required), value, +1 more. Returns: wait, candidates, provenance, interactionReceipt

browser_batchA

Execute a sequence of browser tool calls in ONE round trip. Each item is {name, input} where input is exactly what you'd pass to that tool standalone. Actions execute SEQUENTIALLY (not in parallel) and stop on the first error. Use this tool extensively to quickly execute work whenever you can predict two or more steps ahead -- e.g. navigate, click a field, type, press Return, screenshot. Each tool's own permission check runs per item -- if an action navigates to a domain without permission, the next item's check fails and the batch stops. Screenshots and other images are returned interleaved with outputs; coordinates you write in THIS batch refer to the screenshot taken BEFORE this call. browser_batch cannot be nested.

Inputs: actions (required).

computerB

Use a mouse and keyboard to interact with a web browser, and take screenshots. If you don't have a valid tab ID, use tabs_context first to get available tabs.

  • Whenever you intend to click on an element like an icon, you should consult a screenshot to determine the coordinates of the element before moving the cursor.

  • If you tried clicking on a program or link but it failed to load, even after waiting, try adjusting your click location so that the tip of the cursor visually falls on the element that you want to click.

  • Make sure to click any buttons, links, icons, etc with the cursor tip in the center of the element. Don't click boxes on their edges unless asked.

Inputs: tabId (required), action (required), ref, text, +8 more. Returns: provenance, interactionReceipt

dialogA

Inspect or explicitly resolve the JavaScript dialog blocking one owned tab. Use status when the dialog state is unknown. Never accept, dismiss, or respond without intent from the current task.

Inputs: tabId (required), action (required), text. Returns: provenance

explainA

Returns this server's action directory: every available action, the capability it requires (read, action, write, or execute; some require none), and a short description of what it does, plus definitions of the capability vocabulary. Use it to learn what you are allowed to do in this session. It does not read, summarize, or explain web pages.

Inputs: no named parameters.

file_uploadA

Upload one or multiple files to a file input element on the page. Do not click on file upload buttons or file inputs -- clicking opens a native file picker dialog that you cannot see or interact with. Instead, use read_page or find to locate the file input element, then use this tool with its ref to upload files directly.

Inputs: ref (required), tabId (required), files, paths. Returns: provenance, interactionReceipt

findA

Find elements on the page using natural language. Can search for elements by their purpose (e.g., "search bar", "login button") or by text content (e.g., "organic mango product"). Returns up to 20 matching elements with references that can be used with other tools. If more than 20 matches exist, you'll be notified to use a more specific query. If you don't have a valid tab ID, use tabs_context first to get available tabs.

Inputs: query (required), tabId (required). Returns: more, results, provenance

form_fillA

Fill a form by field labels in one call. Provide fields as a map from a label, placeholder, or name attribute to the value (string, number, or boolean for checkboxes). Matching is case-insensitive and specificity-ordered; ambiguous keys are returned unmatched with candidates instead of guessed. submit:true clicks the form's own submit control after filling. Passwords are masked in the result. Falls back cleanly: anything unmatched can be filled with form_input using the refs in the result.

Inputs: tabId (required), fields (required), submit. Returns: filled, skipped, submitted, unmatched, +4 more

form_inputA

Set values in form elements using element reference ID from the read_page or find tools. If you don't have a valid tab ID, use tabs_context first to get available tabs.

Inputs: ref (required), tabId (required), value (required). Returns: provenance, interactionReceipt

get_page_textA

Extract raw text content from the page, prioritizing article content. Ideal for reading articles, blog posts, or other text-heavy pages. Returns plain text without HTML formatting. If you don't have a valid tab ID, use tabs_context first to get available tabs. Output is limited to 50000 characters by default; if it exceeds the limit it is truncated with a note giving the full size.

Inputs: tabId (required), max_chars. Returns: provenance

gif_creatorA

Create a short, memory-only GIF of browser work. Call start_recording, use browser tools normally, then call export; export stops capture automatically. Recording also auto-stops after 30 seconds idle or 120 seconds total. Use status to inspect state, stop_recording for an optional explicit boundary, or clear to erase immediately. Export can return the GIF to the client (download:true) or place it on the page with ref or coordinate.

Inputs: tabId (required), action (required), ref, options, +3 more. Returns: provenance

javascript_toolA

Execute JavaScript code in the context of the current page. The code runs in the page's context and can interact with the DOM, window object, and page variables. Returns the result of the last expression or any thrown errors. If you don't have a valid tab ID, use tabs_context first to get available tabs.

Inputs: text (required), tabId (required), action (required). Returns: provenance

narrateA

Show a short, temporary narration ribbon in the controlled browser tab so the person watching understands the current workflow phase. Use it for meaningful phase changes, not routine clicks or keystrokes. A new narration replaces the current one.

Inputs: text (required), tabId (required), position, duration_ms. Returns: shown, reason, position, replaced, +2 more

read_console_messagesA

Read browser console messages (console.log, console.error, console.warn, etc.) from a specific tab. Useful for debugging JavaScript errors, viewing application logs, or understanding what's happening in the browser console. Returns console messages from the current domain only. If you don't have a valid tab ID, use tabs_context first to get available tabs. IMPORTANT: Always provide a pattern to filter messages - without a pattern, you may get too many irrelevant messages.

Inputs: tabId (required), clear, limit, pattern, +1 more. Returns: provenance

read_network_requestsA

Read HTTP network requests (XHR, Fetch, documents, images, etc.) from a specific tab. Useful for debugging API calls, monitoring network activity, or understanding what requests a page is making. Returns all network requests made by the current page, including cross-origin requests. Requests are automatically cleared when the page navigates to a different domain. If you don't have a valid tab ID, use tabs_context first to get available tabs.

Inputs: tabId (required), clear, limit, urlPattern. Returns: provenance

read_pageA

Get an accessibility tree representation of elements on the page. By default returns all elements including non-visible ones. Can optionally filter for only interactive elements, limit tree depth, or focus on a specific element. Returns a structured tree that represents how screen readers see the page content. If you don't have a valid tab ID, use tabs_context first to get available tabs. Output is limited to 50000 characters -- if exceeded, the tree is truncated at a line boundary with a note giving the full size; pass a larger max_chars, or use depth/ref_id to focus.

Inputs: tabId (required), diff, depth, filter, +2 more. Returns: target, provenance

resize_windowA

Resize the current browser window to specified dimensions. Useful for testing responsive designs or setting up specific screen sizes. If you don't have a valid tab ID, use tabs_context first to get available tabs.

Inputs: tabId (required), width (required), height (required).

scriptA

Run a sequence of tool calls in one request. Steps execute in order; each step is validated, authorized, and audited exactly as if called individually. Step arguments may reference a prior step's structured result: $prev.field for the previous step, $N.field for step N (1-indexed), with .0-style numeric segments indexing arrays (example: $prev.results.0.ref after find). Write $$ for a literal leading $. Only tools with structured results (find, tabs_context, tabs_create, navigate, wait_for) can be referenced. Steps may not include script itself. Use wait_for between navigate and reads on dynamic pages.

Inputs: steps (required), tabId, dry_run, onError, +1 more. Returns: results, summary, provenance, duration_ms

tab_controlA

Focus, reload, or close one tab owned by this Ghostlight session. Close is always explicit and never affects a user-owned tab or automatically deletes the containing tab group.

Inputs: tabId (required), action (required). Returns: provenance, interactionReceipt

tabs_context_mcpA

Get context information about the current MCP tab group. Returns all tab IDs inside the group if it exists. CRITICAL: You must get the context at least once before using other browser automation tools so you know what tabs exist. Each new conversation should create its own new tab (using tabs_create) rather than reusing existing tabs, unless the user explicitly asks to use an existing tab.

Inputs: createIfEmpty. Returns: tabs, mcpGroupId, provenance

tabs_create_mcpA

Creates a new empty tab in the MCP tab group.

Inputs: no named parameters. Returns: tabs, tabId, provenance

update_planA

Present a plan to the user for approval before taking actions. The user will see the domains you intend to visit and your approach. Once approved, you can proceed with actions on the approved domains without additional permission prompts.

Inputs: domains (required), approach (required).

upload_imageA

Upload a previously captured screenshot to a file input or drag & drop target. Supports two approaches: (1) ref -- for targeting specific elements, especially hidden file inputs, (2) coordinate -- for drag & drop to visible locations like Google Docs. Provide either ref or coordinate, not both.

Inputs: tabId (required), imageId (required), ref, filename, +1 more. Returns: provenance, interactionReceipt

wait_forA

Wait until the page is ready. By default waits for BOTH your condition and page settlement (DOM mutation rate decayed). Provide selector (CSS) or text (visible substring) with state visible|present|gone, or call with neither to wait for settlement alone. min_ms sets a minimum elapsed time; settle:false gates on the condition only. Returns elapsed_ms, settle diagnostics, and the matched element's ref for follow-up clicks. Times out with an error naming what WAS on the page.

Inputs: tabId (required), text, state, min_ms, +3 more. Returns: ref, found, settled, elapsed_ms, +3 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 25 tools

    Disambiguation3/5

    Multiple tools have overlapping purposes (script vs browser_batch, file_upload vs upload_image, form_input vs form_fill), but descriptions include enough detail to distinguish them with careful reading. An agent may still hesitate on which to choose.

    Naming Consistency1/5

    Tool names follow no consistent pattern: some are verb_noun (read_page, upload_image), some are noun_verb (file_upload, form_fill), some are single verbs (navigate, find), and some nouns (computer, dialog). The _mcp suffix appears on only two tab-related tools, while tab_control omits it. This mix makes the naming chaotic.

    Tool Count3/5

    At 25 tools, the server is on the heavy side of the 16-25 borderline range. However, the broad scope of full browser automation justifies most tools, and each serves a distinct purpose within that domain.

    Completeness5/5

    The tool set comprehensively covers the browser automation lifecycle: navigation, reading, interaction, form filling, waiting, tab management, JavaScript execution, network/console inspection, screenshots, dialogs, and even recording. There are no obvious dead ends; the presence of update_plan and explain covers agent coordination and discoverability.

    Maintenance

    ActivityActive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      A local MCP server that lets AI coding assistants drive the Chrome browser you already have open, using your existing logged-in sessions. It enables navigating and reading pages, clicking, typing, filling forms, taking screenshots, uploading files, and inspecting console, network, storage, and cookies — without headless browsers or opening a remote-debugging port.
      1 npm
      ISC
    • A
      license
      Not graded
      quality
      A
      maintenance
      A local MCP server that lets AI agents drive the real, already-logged-in Chrome browser through a companion extension, navigating tabs, clicking, typing, reading pages, filling forms, taking screenshots, and inspecting cookies, storage, console and network traffic. It keeps all communication on the local machine, with no remote-debugging port to expose and no separate headless browser or manual cookie copying to set up.
      1 npm
      ISC
    • A
      license
      Not graded
      quality
      A
      maintenance
      A local MCP server that lets AI coding assistants drive the user's own already-signed-in Chrome, so agents can read logged-in pages, click, fill forms, navigate, screenshot, inspect network traffic and storage, and run multi-step browser workflows without a separate headless browser or remote debugging port. All communication stays on the user's machine and agent-opened tabs are grouped so they never steal focus.
      1 npm
      ISC
    • A
      license
      Not graded
      quality
      A
      maintenance
      A local MCP server that lets AI assistants drive your real, already-logged-in Chrome through a browser extension, so agents can read, click, type, navigate, screenshot, inspect network traffic, and manage cookies or storage on pages that require existing sessions. It works without opening a remote-debugging port and keeps all communication on your machine.
      1 npm
      ISC