Browser Integration
apxy browser opens a browser at a URL with proxy settings that route through APXY, so its requests appear in apxy logs list and the Web UI.
CLI
See CLI Reference → Proxy for apxy browser flags.
Quick example:
apxy browser https://myapp.com- The default URL is
http://localhost:3000. - APXY uses your system default browser. Pass
--chrome,--safari,--firefox,--edge,--brave, or--arcto pick one. - Chromium-based browsers (Chrome, Edge, Brave, Arc) get a proxy of their own. If no proxy runs on
--port,apxy browserstarts a temporary one on 127.0.0.1, with no system proxy, no trust store change, and no Web UI. It holds a lease on that proxy while the browser runs, so the proxy stays up after other agents’apxy runcommands exit. - APXY opens Chromium-based browsers in a separate profile,
~/.apxy/<browser>-profile, and passes--proxy-bypass-list=<-loopback>so thatlocalhosttraffic goes through the proxy too. The profile is separate from your normal browser session and persists between runs. - In a git worktree, the profile is
~/.apxy/<browser>-profile-<workspace-id>, and the browser uses a proxy port of the workspace. That port tags every request with the workspace, so the mocks of the workspace answer the browser. It is the same port for a workspace every time, picked fromapxy start --workspace-ports(default20000-29999), and a restarted proxy reopens it, so an open browser keeps working. After you edit the rules file by hand, runapxy rules apply. See Workspaces. - Safari and Firefox use the system proxy. Their traffic reaches APXY only through a proxy that
apxy startstarted with the system proxy on. It is untagged, so only global rules (--global) apply to it.
For HTTPS bodies, trust the APXY CA (apxy certs trust) and turn on the domain (apxy ssl enable --domain <host>).
Use Cases
Debug a local web app
Run apxy start, then apxy browser http://localhost:3000. Requests from your app, including calls to localhost APIs, show up in APXY.
Keep debugging separate from your normal browser
The isolated Chromium profile keeps APXY traffic and cookies apart from your everyday browsing.
Last updated on