Multiple Chrome profiles
Let your coding agent pick the right Chrome profile
Your work account is in one Chrome profile. Your test account is in another. DevSnoop lets your agent list labeled profiles and target the tabs in the account you want to check, through one local HTTP endpoint.
Use the profiles you're already signed in to
The short answer: install DevSnoop in your existing Work and Test Chrome profiles, then have the agent send that profile's connectionID with each request. The agent works in the tabs that profile has open, with the sessions that profile already holds. You don't sign in again just because the agent switched profiles.
A common alternative is to have an automation tool, such as Playwright, launch Chrome with its own persistent user data directory, often one per account. Each directory is a separate profile. You sign in there, and its cookies stay separate from your everyday Work and Test profiles.
DevSnoop doesn't launch Chrome or copy cookies between profiles. If a site signs a profile out or asks for two-factor authentication, sign in again in that profile. The agent can only use a login the profile already has.
Set up each profile once
- Install the Chrome extension in each profile you want the agent to use. Install the native host on the same machine using the installation guide.
- Open each profile's DevSnoop popup. Enter an Agent profile label, such as Work or Test account, and click Save. Labels are optional; choose distinct names without personal or client details.
- Keep those profiles open and connected. In each profile, activate a license or start the 24-hour preview. Grant the required site origin in that profile's popup when DevSnoop asks.
The standard installer supports macOS and Linux on ARM64 and x64. The agent must be able to make HTTP requests to 127.0.0.1:9400 on the same machine. A remote agent needs access to that local bridge; these examples assume local access.
Find the account before finding the tab
Call list_connections to see connected profiles and the current default.
curl -s -X POST http://127.0.0.1:9400/ \
-H 'Content-Type: application/json' \
-d '{"command":"list_connections","params":{}}' Generic example of the response's result, shortened to the targeting fields. All labels and IDs below are invented for this example.
{
"selectedConnectionID": "native-123-example",
"connections": [
{ "connectionID": "native-123-example",
"profileID": "example-work-profile",
"label": "Work", "selected": true },
{ "connectionID": "native-456-example",
"profileID": "example-test-profile",
"label": "Test account", "selected": false }
]
} Use the returned connectionID for requests. The profileID identifies the extension installation and stays in that profile's local extension storage. The connection ID belongs to the native host process Chrome started for that profile. It changes when Chrome starts a new host, for example after the extension's native connection drops or Chrome restarts. Labels can be empty or duplicated, so ask the user if the intended profile is unclear.
Replace native-123-example and native-456-example below with the current Work and Test connection IDs from your own list_connections response. Run ping in each profile first. The license or preview state belongs to that profile, so Work can be active while Test is not. Then list each profile's tabs.
# Work: check the license or preview, then list its tabs
curl -s -X POST http://127.0.0.1:9400/ \
-H 'Content-Type: application/json' \
-d '{"command":"ping","params":{},
"connectionID":"native-123-example"}'
curl -s -X POST http://127.0.0.1:9400/ \
-H 'Content-Type: application/json' \
-d '{"command":"list_tabs","params":{},
"connectionID":"native-123-example"}'
# Test: the same two requests with the Test connection ID
curl -s -X POST http://127.0.0.1:9400/ \
-H 'Content-Type: application/json' \
-d '{"command":"ping","params":{},
"connectionID":"native-456-example"}'
curl -s -X POST http://127.0.0.1:9400/ \
-H 'Content-Type: application/json' \
-d '{"command":"list_tabs","params":{},
"connectionID":"native-456-example"}' Take each tabID from the list_tabs response of the same connection. In this example, 101 came from the Work list and 202 from the Test list. Keep both IDs on every page request.
# Work tab 101 came from the Work list_tabs response
curl -s -X POST http://127.0.0.1:9400/ \
-H 'Content-Type: application/json' \
-d '{"command":"page_summary","params":{},
"connectionID":"native-123-example","tabID":101}'
# Test tab 202 came from the Test list_tabs response
curl -s -X POST http://127.0.0.1:9400/ \
-H 'Content-Type: application/json' \
-d '{"command":"page_summary","params":{},
"connectionID":"native-456-example","tabID":202}'connectionID selects the profile; tabID selects a tab inside it. Omitting tabID uses the selected profile's active tab. Before clicking or filling anything, check that the page summary matches the intended account and page.
Choose a default, or target every request
select_connection changes the default for later commands that omit a top-level connectionID.
curl -s -X POST http://127.0.0.1:9400/ \
-H 'Content-Type: application/json' \
-d '{"command":"select_connection",
"params":{"connectionID":"native-456-example"}}' The default is shared by callers using that broker. It stays in broker memory while the connection is available; it is not a saved preference across broker restarts. A per-request connectionID overrides the default without changing it.
When the selected connection disappears or another native host takes over as the broker, the default can move to another profile, and an untargeted command would then run there. A request targeting an unknown connection returns an error instead of switching profiles.
For work and test accounts, send connectionID on every command, including ping and list_tabs. After a disconnect or an unknown connection error, call list_connections again. Match the profile by its profileID, or by its label when the label is unique, then use that profile's current connection ID. A profile that just reconnected can briefly show a null profileID; list again or ask the user. Do not blindly retry an action whose outcome is unknown.
Permissions and limits
- DevSnoop uses existing Chrome profiles and their signed-in accounts. It does not create an isolated browser or make a profile label an access restriction.
- Page access is granted per origin in each profile. Selecting a profile does not grant a site permission. Tab listing can reveal that profile's tab URLs and titles; keep unrelated browser data out of agent responses and shared logs.
- The native host listens on loopback. Its follower connections use a local authentication token, but the agent HTTP API does not require that token. Use trusted local callers and do not expose the port to a network.
- Chrome's debugger permission is used for logs, network capture and screenshots. Chrome can show its debugging banner. Browser-internal pages such as
chrome://are not ordinary inspectable web pages. - Labels and profile IDs are stored in the profile's local extension storage and returned to local callers. DevSnoop returns page data locally; the agent you use may send that data to its own provider. See the privacy policy for license verification, analytics and diagnostics.
Continue with the command reference for inspection, interactions and debugging. The same targeting fields apply to those commands.