How to use ego(lite) with Claude Code
Set up Claude Code browser automation with ego(lite). Switch from Cowork to Code, review local execution permissions, load ego-browser, and complete a browser task.
Claude Code browser automation with ego(lite) works from a local Code session. Cowork and Code sit in the same desktop app, which makes the first failure confusing: /ego-browser appears in Code but not in the Cowork menu shown in this guide. The full video runs through the fix from start to finish.
The example opens Anthropic's X profile in an ego(lite) agent Space, reads five visible posts, and returns the result to Claude Code.
Before you start: install ego(lite)
Start with ego(lite) installed and its onboarding finished. You also need Claude Code in the desktop app or terminal.
- Download the DMG and open it
- Follow the instructions and double-click the ego(lite) icon to install
- Open ego(lite) and finish onboarding
- Open Claude Code in the desktop app, or start Claude Code in your terminal
After setup, check that Claude Code can find the ego-browser Skill under ~/.claude/skills/ego-browser/. If it does not appear, reopen Claude Code and check again.
Open the recorded Code workflow
This walkthrough uses a local Code session. The included recording shows switching from Cowork to Code and opening a project before loading the Skill. Follow that recorded environment rather than assuming the same menu behavior in another mode or client release.
Check the Skill inside the Code session used for this walkthrough. A missing menu entry in another mode is not enough to diagnose installation failure.
Step 1: review local command permissions
Desktop
Claude Code must be allowed to run the local ego-browser commands and communicate with ego(lite). The original Desktop recording chooses Bypass permissions. That mode removes command approval prompts; it is a recorded setup choice, not evidence that every workflow requires it. You can review individual command requests or use the permission rules allowed by your organization. Anthropic's permission documentation explains those options.
TUI
The original TUI recording starts Claude Code with:
claude --dangerously-skip-permissionsThat recording displays bypass permissions on. For a new task, use the permission mode and command access appropriate to the environment. Loading a Skill does not itself grant permission to run its commands.
Step 2: load the ego-browser skill
Desktop
The recording shows the Desktop workflow: leave Cowork, open Code, type /ego-browser, and select the Skill. Once loaded, it can open ego(lite), create an agent Space, and operate pages inside that Space.
TUI
In the TUI, enter /ego-browser, keep a space after the Skill name, and add the browser task in the same message. Submit the message to let Claude Code load the Skill and start the task.
Step 3: let your AI agent work
Now hand the task to Claude Code. The agent will use ego-browser to open the target page in ego(lite), collect the requested information, and return the result when the task is complete.
Step 4: complete the task
When the task is complete, Claude Code returns five posts in the conversation, along with their links, the like counts shown on the page, and a summary of the main topics. The Agent keeps the source Page only when you explicitly ask, or when it must remain open for you to view or continue the result. Otherwise it finishes and closes its Agent-managed Pages. Claude Code has now completed the browser task through ego(lite).
Choose the browser you want Claude Code to use
The ego-browser Skill operates ego(lite), not the original Chrome window. Importing Chrome data into ego(lite) can bring over the login environment, but it does not attach the Agent to the same live Chrome tabs or keep both browsers' sessions continuously synchronized.
If the task can run in ego(lite), say so explicitly:
Use ego-browser and my signed-in ego (lite) session for this task.
Open the exact application URL in one task Space.
Confirm the visible account and organization before reading records.
If Chrome has the only copy of the page state I need, stop and tell me.
Do not silently switch browser tools or import another profile.If you specifically need the existing Chrome window, choose a Chrome integration instead. Claude Code's official Chrome guide describes its extension route. These are different execution environments; choose based on where the needed page state and login actually exist.
Approve the local browser command
The videos use Bypass permissions to allow local commands without repeated prompts. That is one host configuration, not proof that bypass mode is the only possible way to launch ego(lite). An allowed or individually approved command can also provide the required access when the environment permits it. Claude Code permissions describes the available controls.
A command approval authorizes tool execution. It does not select the correct business account or approve every later write inside a website. Check the visible account, state the permitted operation, and hand control back when the task needs a user decision.
Confirm that the Skill is actually loaded
A listed Skill and an executed browser task are different checks. After selecting ego-browser, ask Claude Code to read the installed Skill and run ego-browser skill. Then use a small task:
Use ego-browser to open https://example.com in ego (lite). Return the actual page URL and title. Do not use another browser integration.If the Skill does not appear, check its installed directory and restart the local Code session. If the Skill loads but the command cannot run, inspect the local execution permission and command path. If a different tool opens, ask for ego-browser explicitly. If the model provider returns an authentication, quota, or service error before issuing a browser command, resolve that provider error before diagnosing the browser connection.
The current command examples use the installed guide rather than assuming that every version ships the same helper names. A normal web conversation does not discover local Skill files by itself.
Troubleshooting
/ego-browser is missing
Make sure the session is in Code, not Cowork. If ego(lite) finished onboarding while Claude was open, restart Claude and type /ego again.
Bypass permissions isn't listed
Open Settings > Claude Code and enable Allow bypass permissions mode. Team or Enterprise policy can hide the option, so ask your administrator if the setting is locked.
Claude Code loads the skill but ego(lite) doesn't open
Run ego-browser skill in a terminal on the same computer to check whether the command is available. If it works there but Claude Code refuses it, inspect the command approval, sandbox rule or organization policy named in the error. Approve the required command through the permitted configuration. The recording uses Bypass permissions; it is one configuration rather than a required fix for every error. If the browser still cannot start, contact us on Discord with the error message. A model authentication or quota error before command execution is a provider issue, not proof of a browser failure.
X asks for a login or verification
Take over in the ego(lite) agent Space, finish the login or verification yourself, and then tell Claude Code to continue. Never paste a password or verification code into the prompt.
Go deeper
- Quick start: install ego(lite) and run your first browser task
- Codex browser automation: run the same workflow from Codex Desktop or TUI
- Cursor browser automation: use ego-browser from Cursor Agent
- ego-browser: learn the browser helper commands
- Space: see how agent Spaces stay separate from your own tabs
- Claude Code Desktop permissions: check Anthropic's current permission modes