Proxy configuration
To route a crawl through a proxy on your network, set PROXY_URL for the CLI or pass a proxy to Kitsune.launch({ proxy }). Keep credentials in environment variables.
Formats
| Form | Example |
|---|---|
| URL | http://user:pass@proxy.example:8080 |
| SOCKS URL | socks5://user:pass@proxy.example:1080 |
| Auth shorthand | user:pass@proxy.example:8080 or proxy.example:8080@user:pass |
| Colon-separated | proxy.example:8080:user:pass or user:pass:proxy.example:8080 |
| Host and port | proxy.example:8080 |
The default scheme is HTTP. Percent-encode reserved characters in credentials when you use URL syntax.
Lists and precedence
A command-line --proxy SPEC takes precedence. The CLI checks PROXY_URL, PROXIES, then PROXY_LIST when the flag is absent. Lists accept newlines, commas, semicolons, or a JSON array. Each launched browser session selects one entry.
Port restrictions
A proxy can respond to a general connectivity check while refusing a particular destination port. Confirm that your network policy allows the host and port you’re trying to reach. bun run kitsune doctor checks connectivity through the proxy against a test endpoint on port 443.
Configure a network proxy for a Kitsune session.