ego-browser

ego-browser is a skill for Codex from citrolabs/ego-lite. It costs 210 tokens per session (4,659 once invoked), scanned A, original, MIT.

A browser-control tool that gives AI agents a Node.js command line for viewing pages, clicking controls, running browser JavaScript, and using a real browser. A task space is a saved workspace that agents can share or hand over.

In plain words
What is it for?
Use it for web testing, filling forms, taking screenshots, extracting page data, inspecting pages, and handing browser sessions between agents.
Why use it?
It removes the need to manually perform repetitive browser steps and provides a way for agents to continue or transfer browser work.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it for web testing, filling forms, taking screenshots, extracting page data, inspecting pages, and handing browser sessions between agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/citrolabs/ego-lite/ego-browser
About the project

ego lite is a browser built for people and AI agents to use at the same time, letting agents work with the user's existing tabs, logins, cookies, extensions, and bookmarks. It supports browser automation tasks for agents such as Codex and Claude Code, with agents working in separate Spaces while the user keeps control of their tabs. The catalogue entry provides the ego-browser skill for operating it.

citrolabs/ego-lite · 15,276 stars · on GitHub · lite.ego.app

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add citrolabs/ego-lite --skill ego-browser
Clone the repo
git clone --depth 1 https://github.com/citrolabs/ego-lite

Made for: Codex.

Its marketplace also offers this one on its own, as the plugin browser-skills/plugin install browser-skills after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ego-browser

README.md
[![agentmods](https://agentmods.dev/badge/skills/citrolabs/ego-lite/ego-browser/github.svg)](https://agentmods.dev/skills/citrolabs/ego-lite/ego-browser)
Your own site
<a href="https://agentmods.dev/skills/citrolabs/ego-lite/ego-browser"><img src="https://agentmods.dev/badge/skills/citrolabs/ego-lite/ego-browser/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ego-browser

Your own site · 80×15
<a href="https://agentmods.dev/skills/citrolabs/ego-lite/ego-browser"><img src="https://agentmods.dev/badge/skills/citrolabs/ego-lite/ego-browser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 210 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,659 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 11 Aug 2026
  • Snyk warn 11 Aug 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00210 $0.04659
Opus 5 $0.00105 $0.02329
Sonnet 5 $0.00042 $0.00932
Haiku 4.5 $0.00021 $0.00466

Measured 9d ago against content hash 5a758c339332, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ego-browser scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (learnings/google/browser-tools/autocomplete.js, learnings/google/tools/search-extract.js, learnings/x-com/browser-tools/extract-post.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ego-browser/SKILL.md · 210 lines

How it starts

The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ego-browser

ego-browser gives AI agents a CLI-accessible Node.js runtime, with built-in helpers — snapshotText, click, js, cdp, and more — that agents call directly inside JS scripts to observe pages, interact with UI, evaluate browser-side JavaScript, and drive a real browser for any web automation task.

For setup, install, or connection problems, read references/install.md.

Use the Bash tool to run all browser operations via ego-browser nodejs <<'EOF' ... EOF heredoc. Do not write code to a .js file first.

Quick start

ego-browser nodejs <<'EOF'
// Name the task space for the whole user task, then reuse that space across heredoc rounds.
const task = await useOrCreateTaskSpace('inspect example page')
cliLog('task space id: ' + task.id)

await openOrReuseTab('https://example.com', { wait: true, timeout: 20 })

cliLog(await snapshotText())
EOF

The heredoc body runs as a Node.js script that controls the selected ego-browser task space. All ego-browser helpers are preloaded into that script.

Common helpers

  • Task spaces: listTaskSpaces, useOrCreateTaskSpace, claimTaskSpace, handOffTaskSpace, takeOverTaskSpace, waitForAgentControl, completeTaskSpace
  • Navigation / state: listTabs, openOrReuseTab, closeTab, gotoAndWait, currentTab, switchTab, gotoUrl, pageInfo, ensureRealTab
  • Observation: snapshotText, captureScreenshot, drainEvents
  • Scroll / mouse: scrollBy, scrollToBottomUntil, scroll, click, doubleClick, hover, dragMouse
  • Keyboard & input: typeText, fillInput, pressKey, dispatchKey
  • File: uploadFile
  • Wait: wait, waitForLoad, waitForElement, waitForNetworkIdle
  • Fetch: serverFetch, browserFetch
  • CDP / evaluate: js, cdp
  • Output: cliLog, help

Notes:

  • cliLog(value) — prints to the terminal; it is the only output mechanism inside a heredoc, and all final results must go through it.
  • await pageInfo() — normally resolves to { url, title, w, h, sx, sy, pw, ph }; if a native browser dialog is open, resolves to { dialog: ... } instead because page JavaScript is blocked.
  • If await pageInfo() resolves to { dialog: ... }, handle the dialog with await cdp('Page.handleJavaScriptDialog', { accept: true }) or accept: false before running page JavaScript.
  • await ensureRealTab() — switches to an existing non-internal page tab if needed and resolves to it; resolves to null when none exists. It does not create a tab — use await openOrReuseTab(...) for that.
  • await closeTab(target?) — closes the given target id / tab object, or the current tab when omitted.
  • await drainEvents() — consumes and returns the async event queue produced by the page (navigation events, network events, etc.).
  • await serverFetch(url, options) — issues a request from Node and returns the response body.
  • await browserFetch(url, options) — issues a request from the current browser page context and returns the response body.
  • help(name) — prints usage for a given helper, e.g. cliLog(help('click')).

Read the full file on GitHub · 210 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 210 lines · 210 tokens per session scan A 5a758c339332

Subscribe to this mod's changes

ego-browser is a skill published in the GitHub repository citrolabs/ego-lite (15,276 stars, last pushed yesterday), licensed MIT. It adds 210 tokens to every session and 4,659 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

actionbook-web-test

Run browser-based web tests against websites using Actionbook CLI. Activate when the user wants to test a website workflow, run smoke tests, verify a user flow, check if a web application works, run regression tests, or validate browser-based interactions. Supports test definition, execution, assertion, reporting, and…

actionbook/actionbook · 71 tokens

active-research

Deep research and analysis tool. Generates comprehensive HTML reports on any topic, domain, paper, or technology. Enhanced with advanced browser automation — SPA handling, network idle wait, batch operations, stealth browsing, and intelligent page analysis. Use when user asks to research, analyze, investigate…

actionbook/actionbook · 72 tokens

actionbook-scraper

Generate and verify web scraper scripts using Actionbook's verified selectors. Auto-validates generated scripts and fixes errors.

actionbook/actionbook · 28 tokens

extract

Extract structured data from websites and produce an executable Playwright script plus extracted data. Use when the user wants to scrape, extract, pull, collect, or harvest data from any website — product listings, tables, search results, feeds, profiles, or any repeating content.

actionbook/actionbook · 56 tokens

actionbook

Activate when the user needs to interact with any website — browser automation, web scraping, screenshots, form filling, UI testing, monitoring, or building AI agents. Provides pre-verified page actions with step-by-step instructions and tested selectors.

actionbook/actionbook · 50 tokens

agent-browser

Automates browser interactions for form filling and web page interaction. Used by the request-website command to submit website indexing requests.

actionbook/actionbook · 28 tokens