Skip to content

Windows: Daemon fails to start due to Unix socket path #522

@MJSSG

Description

@MJSSG

Windows: Daemon fails to start due to Unix socket path

Environment

  • OS: Windows 10 Home China (10.0.19045)
  • agent-browser version: 0.13.0
  • Node.js version: v20.x
  • Installation method: npm install -g agent-browser

Description

The agent-browser daemon fails to start on Windows because it
attempts to use a Unix socket path
(C:\Users\MJSSG\.agent-browser\default.sock), which is not
natively supported by Windows.

Steps to Reproduce

  1. Install agent-browser globally: npm install -g agent-browser
  2. Install Chromium: agent-browser install
  3. Try to open any URL: agent-browser open https://example.com

Expected Behavior

The daemon should start successfully and browser automation
commands should work.

Actual Behavior

✗ Daemon failed to start (socket:
C:\Users\MJSSG.agent-browser\default.sock)

The .agent-browser directory exists but is empty - no daemon log is created, indicating the daemon fails before it can even
initialize.

Root Cause

Windows does not natively support Unix domain sockets. The IPC
mechanism needs to use:

  • Named pipes (Windows native IPC)
  • TCP loopback connection
  • Or a cross-platform abstraction layer

Possible Solutions

  1. Use a cross-platform IPC library that detects the OS and uses
    appropriate mechanisms
  2. For Windows, use named pipes like
    \\.\pipe\agent-browser-default
  3. Or allow configuration via environment variable to use TCP
    instead

Workaround

Using Playwright directly works fine on the same system:

npm install -D @playwright/test
npx playwright install chromium
# Tests run successfully

Additional Context

- Multiple node.exe processes are running (likely from other      
development tools)
- No daemon log file is created
- Socket file path format is Unix-style: / instead of 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions