Skip to main content

Usage

browserwire [options]
Run without installing using npx:
npx browserwire [options]

Flags

FlagDescriptionDefault
--hostAddress the server listens on127.0.0.1
--portPort the server listens on8787
--debugEnable verbose debug loggingfalse
--llm-providerLLM provider to use: openai, anthropic, gemini, or ollama
--llm-api-keyAPI key for the selected LLM provider
--extension-pathPrint the path to the bundled Chrome extension directory and exit
--helpShow usage information and exit

Configuration precedence

CLI flags take the highest precedence. When the same option is set in multiple places, the order is: CLI flags > environment variables / .env > ~/.browserwire/config.json > defaults This means a --port flag always overrides BROWSERWIRE_PORT in your environment, which in turn overrides the value in your config file.

Examples

Start the server with defaults:
browserwire
Start on a different port:
browserwire --port 3000
Start on all interfaces (accessible from other devices on the network):
browserwire --host 0.0.0.0
Start with a specific LLM provider:
browserwire --llm-provider anthropic --llm-api-key sk-ant-...
Start with debug logging enabled:
browserwire --debug
Print the bundled extension path (for loading it in Chrome):
browserwire --extension-path
BROWSERWIRE_LLM_PROVIDER and BROWSERWIRE_LLM_API_KEY are required for discovery to work. If you prefer not to use flags, set them as environment variables or in ~/.browserwire/config.json.