Skip to Content
Advanced FeaturesBrowser Integration

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 --arc to pick one.
  • Chromium-based browsers (Chrome, Edge, Brave, Arc) get a proxy of their own. If no proxy runs on --port, apxy browser starts 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 run commands exit.
  • APXY opens Chromium-based browsers in a separate profile, ~/.apxy/<browser>-profile, and passes --proxy-bypass-list=<-loopback> so that localhost traffic 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 from apxy start --workspace-ports (default 20000-29999), and a restarted proxy reopens it, so an open browser keeps working. After you edit the rules file by hand, run apxy rules apply. See Workspaces.
  • Safari and Firefox use the system proxy. Their traffic reaches APXY only through a proxy that apxy start started 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