Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ coverage/
# Temporary files
tmp/
temp/
.npm-install-hash

# npm install optimization cache
.npm-install-hash

# Browser profiles
profiles/
Expand Down
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,38 @@ To skip permission prompts, add to `~/.claude/settings.json`:

Or run with `claude --dangerously-skip-permissions` (skips all prompts).

## Configuration

Browser settings are configured in a `config.json` file. Dev Browser searches for this file in order:

1. `DEV_BROWSER_CONFIG` environment variable (explicit path)
2. `.dev-browser/config.json` in current directory or any parent (project config)
3. `$XDG_CONFIG_HOME/dev-browser/config.json` (default: `~/.config/dev-browser/`)
4. `~/.dev-browser/config.json` (legacy)

**Example config:**

```json
{
"cdpPort": 9223,
"browser": {
"mode": "auto",
"path": "/usr/bin/google-chrome"
}
}
```

| Setting | Description |
|---------|-------------|
| `cdpPort` | Chrome DevTools Protocol port (default: 9223) |
| `browser.mode` | `"auto"`, `"external"`, or `"standalone"` |
| `browser.path` | Path to Chrome executable |
| `browser.userDataDir` | Browser profile directory (optional) |

**Project-level config:** Place `.dev-browser/config.json` in your project root to share browser settings with your team or use different settings per project.

**Containers/CI:** Set `DEV_BROWSER_CONFIG=/path/to/config.json` to specify an explicit config path.

## Usage

Just ask Claude to interact with your browser:
Expand Down
Loading