Skip to content

feat(#71): add .agent-browserrc.json config file support#474

Open
giulio-leone wants to merge 1 commit intovercel-labs:mainfrom
giulio-leone:feat/71-config-file
Open

feat(#71): add .agent-browserrc.json config file support#474
giulio-leone wants to merge 1 commit intovercel-labs:mainfrom
giulio-leone:feat/71-config-file

Conversation

@giulio-leone
Copy link
Contributor

Summary

Adds support for .agent-browserrc.json config files for persistent project-level and user-level settings.

Config Loading Order (lowest to highest priority)

  1. ~/.agent-browserrc.json (user-level)
  2. .agent-browserrc.json in CWD (project-level, overrides user)
  3. Environment variables (override config file)
  4. CLI flags (override everything)

Example Config

{
  "headed": true,
  "browser": "firefox",
  "profile": "/path/to/profile",
  "stealth": true,
  "proxy": "http://proxy:8080",
  "extensions": ["/path/to/ext1"],
  "allowFileAccess": true
}

Changes

  • cli/src/flags.rs: Add load_config() function that reads and merges config files, use as lowest-priority defaults in parse_flags()
  • No new dependencies (serde_json already in Cargo.toml)
  • Silent fallback on missing/malformed config files

Closes #71

@vercel
Copy link
Contributor

vercel bot commented Feb 14, 2026

@giulio-leone is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: add config file support

1 participant