sessions

sessions is a skill for Claude Code, Codex from leeguooooo/chrome-use. It costs 68 tokens per session (1,303 once invoked), scanned A, original, from a forked repository, Apache-2.0.

A browser-session management skill for running isolated browser sessions, each with its own cookies, tabs, and element references. It also supports recovering tabs and restarting stuck session processes.

In plain words
What is it for?
Running multi-user tests, scraping several flows in parallel, recovering stranded tabs, reusing tabs, and resetting stuck browser sessions.
Why use it?
It prevents parallel browser tasks or agents from sharing state and interfering with one another.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/leeguooooo/chrome-use/sessions
Any agent
npx skills add leeguooooo/chrome-use --skill sessions
Clone the repo
git clone --depth 1 https://github.com/leeguooooo/chrome-use

Made for: Claude Code, Codex.

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 sessions

README.md
[![agentmods](https://agentmods.dev/badge/skills/leeguooooo/chrome-use/sessions.svg)](https://agentmods.dev/skills/leeguooooo/chrome-use/sessions)
Your own site
<a href="https://agentmods.dev/skills/leeguooooo/chrome-use/sessions"><img src="https://agentmods.dev/badge/skills/leeguooooo/chrome-use/sessions.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,303 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin fork From a forked repository.
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 $0.00068 $0.01303
Opus 5 $0.00034 $0.00651
Sonnet 5 $0.00014 $0.00261
Haiku 4.5 $0.00007 $0.00130

Measured 3d ago against content hash 97adbe91464a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sessions 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 3d ago.

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.

skill-data/sessions/SKILL.md · 105 lines

How it starts

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

chrome-use — Sessions & Parallel Browsers

Run several isolated browser sessions at once, adopt a stranded tab across sessions by its CDP targetId, and reset stuck session daemons.

Run multiple browsers in parallel

Each --session <name> is an isolated browser with its own cookies, tabs, and refs. Useful for testing multi-user flows or parallel scraping:

chrome-use --session a open https://app.example.com
chrome-use --session b open https://app.example.com
chrome-use --session a fill @e1 "[email protected]"
chrome-use --session b fill @e1 "[email protected]"

AGENT_BROWSER_SESSION=myapp sets the default session for the current shell.

Concurrent agents MUST each use a distinct --session <name>. Within one session, commands are pinned to the tab you opened (by target_id, so a foreign tab can't drift your eval/screenshot). Two agents sharing the same session (e.g. both on the bare default) share one daemon and one active tab and will clobber each other.

True multi-agent isolation requires the extension-connect path: each --session gets its own colored Chrome tab group, so sessions never touch each other's tabs. Raw --cdp <port> does NOT isolate — every session attaches to the same browser's existing targets, so a second session's first open can navigate a sibling's tab. For concurrent agents on one real Chrome, use the extension (each with a distinct --session), not raw --cdp.

Each session owns its own tab group and assigns its own t<N> indices (the same physical tab is t8 in one session, t1 in another), so t<N> is not a stable cross-session handle. To reach a specific tab from another session — e.g. a tab that was filled in a session whose handle later died — use the stable CDP targetId:

chrome-use tab list --full --session B   # re-syncs live tabs; prints `target: <id>` per row
chrome-use tab adopt <targetId> --session B # explicitly adopt it, NO reload

tab list re-discovers the live tab set on every call, so a fresh session sees tabs other sessions opened (and re-attached ones), not just its own. Each row is marked created, adopted, or foreign; foreign tabs cannot be selected or closed. Explicitly adopting by targetId lands session B on the stranded tab without reloading it, so a half-filled form survives. Adoption does not transfer permission to close the tab. Created ownership persists across daemon restarts for the same name and connected browser endpoint, so interrupted cleanup can resume. Still, the simplest recovery for a session whose own tab died is to recover that session (reload / re-open / daemon restart).

Read the full file on GitHub · 105 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. 3d ago First seen · 105 lines · 68 tokens per session scan A 97adbe91464a

Subscribe to this mod's changes

sessions is a skill published in the GitHub repository leeguooooo/chrome-use (160 stars, last pushed yesterday), licensed Apache-2.0. It adds 68 tokens to every session and 1,303 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.

Related

Other skills, from other repositories

surf

Control Chrome browser via CLI for testing, automation, and debugging. Use when the user needs browser automation, screenshots, form filling, page inspection, network/CPU emulation, DevTools streaming, or AI queries via ChatGPT/Gemini/Perplexity/Grok/AI Studio.

nicobailon/surf-cli · 60 tokens

surf-codebase

Navigate and modify surf-cli codebase - Chrome extension + native host for AI browser automation. Use for surf-cli code work, architecture questions, implementing browser control/CDP/accessibility/network features.

nicobailon/surf-cli · 42 tokens

camofox-browser

Anti-detection browser automation for AI agents. Use when the user needs stealth web browsing, undetectable scraping, fingerprint spoofing, proxy rotation, or privacy-focused browser automation. Triggers include "stealth scrape", "anti-detection", "bypass fingerprinting", "camofox", "camoufox", "undetectable browser"…

redf0x1/camofox-browser · 93 tokens

camofox-cli

CamoFox CLI — 50 commands for anti-detection browser automation from the terminal. Use when the user needs CLI reference for camofox commands, terminal-based browser control, or a quick lookup of command syntax. Triggers include "camofox command", "CLI reference", "terminal browser", or any request for camofox…

redf0x1/camofox-browser · 77 tokens

reddit

Reddit automation with CamoFox CLI — login, browse, post, comment, reply with anti-detection. Use when the user needs to automate Reddit interactions, post to subreddits, comment on threads, or browse Reddit programmatically. Triggers include "reddit", "post to reddit", "reddit comment", "reddit automation", or any…

redf0x1/camofox-browser · 81 tokens

skill

Anti-detection browser automation MCP skill for OpenClaw agents with 47 tools for navigation, interaction, observation, extraction, downloads, profiles, sessions, and stealth web search.

redf0x1/camofox-mcp · 38 tokens