Agent-Browser Configuration Guide: Reusing Browser Login Status via CDP

3/11/2026
1 min read

Agent-Browser Configuration Guide: Reusing Browser Login Status via CDP\n\nThis guide helps you install agent-browser and connect to your logged-in browser via Chrome remote debugging, allowing the AI agent to directly use your cookies, account, and other login statuses.\n\n## Installation\n\nRun the following command to install agent-browser:\n\nnpm install -g agent-browser\nagent-browser install\n\n## Enable Chrome Remote Debugging\n\n- Open Chrome and enter the following in the address bar: chrome://inspect/#remote-debugging\n- Click the Allow button on the page to permit external applications to connect to your browser via CDP.\n- Once enabled, the page will display: Server running at: 127.0.0.1:9222\n\nSeeing this message indicates that it has been successfully enabled.\n\nNote: No need to restart Chrome, and no need to restart the browser via command line.\n\n## Create Automatic Connection Configuration File\n\nCreate a configuration file so that agent-browser automatically connects to your browser each time it starts, without needing to manually add --auto-connect each time:\n\n- Windows: `echo

Published in Technology

You Might Also Like