Byparr is a self-hosted, open-source browser verification proxy built with FastAPI, Camoufox, and Playwright to handle JavaScript challenges and return valid session cookies over a FlareSolverr-compatible API. Below, we cover how Byparr works, how it compares to FlareSolverr, and how to deploy it with Docker, Python, and proxy routing.
What Is Byparr?

Maintained in the official Byparr GitHub repository, Byparr is a lightweight HTTP API service that automates real browser sessions on behalf of external scripts and self-hosted indexers. When standard HTTP clients hit JavaScript challenges or browser fingerprint checks—commonly seen in Cloudflare blocking issues—plain request libraries lack a full browser engine to execute the challenge script.
Byparr bridges that gap by combining three components into a single containerized service:
- FastAPI Server Layer: Exposes a REST API on port
8191that accepts JSON payloads and serves interactive OpenAPI documentation at/docs. - Camoufox Browser Engine: Runs a hardened, fingerprint-patched build of Firefox designed to present consistent browser properties without standard automation flags.
- Playwright Automation Layer: Manages page navigation, waits for challenge completion, and extracts rendered HTML and session cookies cleanly.
Teams use Byparr for authorized public data collection, automated QA verification of protected web pages, and self-hosted media indexers such as Prowlarr or Jackett. Always align automated requests with each target site’s terms of service and applicable data rules.
How Does Byparr Work?
Rather than proxying every byte of traffic permanently like a traditional network gateway, Byparr acts as an on-demand browser verification worker that follows a four-step request lifecycle:
- Receive Target Payload: Your script or indexer sends a
POSTrequest to Byparr’s/v1endpoint containingcmd: "request.get", the targeturl, and amaxTimeoutlimit. - Launch Isolated Browser Context: Byparr spawns a clean Camoufox browser context via Playwright—optionally routed through a configured HTTP or SOCKS5 proxy—and navigates to the target URL.
- Complete Client-Side Verification: The browser engine executes required JavaScript checks and waits until the challenge clears and the destination DOM finishes loading.
- Return Solution JSON: Byparr extracts the rendered HTML body, the newly issued session cookies (such as
cf_clearance), and the exactUser-Agentstring used during rendering, returning everything inside a structured JSONsolutionobject before closing the browser context.
Byparr vs. FlareSolverr: Key Differences
Byparr implements the same /v1 JSON request and response schema as FlareSolverr, allowing existing integrations to switch endpoints without rewriting client code. Under the hood, however, the two projects differ in browser architecture, image size, and maintenance cadence.
| Feature | Byparr | FlareSolverr |
| Browser Engine | Camoufox (hardened Firefox via Playwright) | Chromium via Selenium / undetected-chromedriver |
| API Framework | FastAPI with built-in Swagger UI (/docs) | Custom Python HTTP server |
| Docker Image Footprint | ~1.1 GB (ghcr.io/thephaseless/byparr:latest) | ~1.5 GB+ depending on Chromium build |
| API Compatibility | Drop-in /v1 JSON schema compatible | Native /v1 JSON schema |
| Maintenance Status | Actively maintained on GitHub | Slower upstream patch cycle against newer checks |
Because Byparr exposes the identical /v1 contract on port 8191, migrating an existing FlareSolverr client typically requires only changing the container image URL—while gaining built-in /docs testing and Camoufox’s Firefox-based fingerprint profile.
How to Deploy Byparr with Docker
Because Camoufox requires specific Firefox libraries and display dependencies, running Byparr inside Docker is the most reliable way to deploy it on Linux servers, macOS, or Windows WSL2.
Quick Start with Docker Run
Launch a single container instance using the official GitHub Container Registry image and expose port 8191:
docker run -d \
--name byparr \
-p 8191:8191 \
--restart unless-stopped \
ghcr.io/thephaseless/byparr:latest
Once the container starts, open http://localhost:8191/docs in your browser. If the interactive FastAPI Swagger UI loads, the service is healthy and ready to accept /v1 requests.
Production Setup with Docker Compose
For persistent deployments or integration alongside self-hosted indexers like Prowlarr and Jackett, define Byparr in a compose.yaml file:
services:
byparr:
image: ghcr.io/thephaseless/byparr:latest
container_name: byparr
ports:
- "8191:8191"
environment:
- LOG_LEVEL=INFO
- TZ=America/New_York
restart: unless-stopped
Start the stack with docker compose up -d. If you connect Byparr to an indexer running on the same Docker network, set the indexer’s FlareSolverr host URL to http://byparr:8191 instead of localhost.
How to Use the Byparr API in Python
Every interaction with Byparr uses a single POST endpoint (http://localhost:8191/v1). Instead of routing every page load through a full browser instance, use Byparr to solve the initial challenge once and reuse the returned session cookies in lightweight HTTP requests.
Send Requests to the /v1 Endpoint
Install requests (pip install requests) and submit a JSON payload specifying cmd, url, and maxTimeout (in milliseconds):
import requests
BYPARR_URL = "http://localhost:8191/v1"
TARGET_URL = "https://example.com/protected-page"
payload = {
"cmd": "request.get",
"url": TARGET_URL,
"maxTimeout": 60000
}
response = requests.post(BYPARR_URL, json=payload, timeout=70)
response.raise_for_status()
data = response.json()
if data.get("status") == "ok":
solution = data["solution"]
html_body = solution["response"]
cookies = solution["cookies"]
user_agent = solution["userAgent"]
print(f"Status: {solution['status']}, Cookies extracted: {len(cookies)}")
Set your HTTP client timeout slightly higher than maxTimeout (for example, 70 seconds for a 60000 ms challenge timeout) so Python does not drop the connection while Camoufox is still rendering the page.
Reuse Extracted Cookies in Lightweight HTTP Sessions
Launching Camoufox for every single URL consumes significant RAM and CPU. Once Byparr returns a valid solution, transfer its cookies and exact userAgent into a standard requests.Session() for subsequent requests to the same domain:
session = requests.Session()
session.headers.update({"User-Agent": user_agent})
for cookie in cookies:
session.cookies.set(
name=cookie["name"],
value=cookie["value"],
domain=cookie.get("domain", ""),
path=cookie.get("path", "/")
)
follow_up = session.get("https://example.com/protected-page/page-2", timeout=20)
print(follow_up.status_code)
For this two-step handoff to work, two conditions must stay identical between the Byparr call and your follow-up requests.Session() calls: the User-Agent header and the outbound IP address. If your follow-up script switches to a different IP address, the target server will invalidate the clearance cookie and trigger a fresh challenge.
Master proxy setup, integration and performance optimization quickly with IPFLY guides
How to Configure Proxies in Byparr
Camoufox handles browser-level TLS and JavaScript fingerprints, but it still sends traffic through the host server’s IP address unless you route it through an upstream proxy. Byparr supports both container-wide default proxies and per-request dynamic proxy overrides.
Container-Wide Global Proxy Configuration
When every request handled by your Byparr instance should exit through a single fixed proxy—such as a dedicated endpoint serving Prowlarr or Jackett—set the PROXY_SERVER environment variable inside your compose.yaml file:
services:
byparr:
image: ghcr.io/thephaseless/byparr:latest
container_name: byparr
ports:
- "8191:8191"
environment:
- LOG_LEVEL=INFO
- PROXY_SERVER=http://USERNAME:[email protected]:8080
restart: unless-stopped
Both http:// and socks5:// endpoints work in PROXY_SERVER. If your password contains reserved URL characters such as @, :, or /, URL-encode them first (for example, replace @ with %40) so the parser reads the host and port cleanly.
Per-Request Dynamic Proxy Routing
When your application rotates sessions across different regions or accounts per job, pass a proxy object directly inside the /v1 JSON payload instead of locking the entire container to one IP:
payload = {
"cmd": "request.get",
"url": "https://example.com/protected-page",
"maxTimeout": 60000,
"proxy": {
"url": "http://gate.example.com:8080",
"username": "USERNAME",
"password": "PASSWORD"
}
}
Passing separate username and password fields inside the proxy object avoids URL-encoding issues and makes it straightforward to assign the exact same proxy session to your follow-up requests.Session() calls. Users comparing protocol trade-offs—such as SOCKS5 vs residential setups—should verify that both Byparr and their downstream HTTP client support the chosen protocol and authentication scheme.
Troubleshooting Common Byparr Errors
Even when Docker and Python are configured properly, three operational issues account for most failed Byparr runs:
- Challenge Timeouts (
Error solving challenge): If target scripts take longer to execute under load, increasemaxTimeoutfrom60000to90000milliseconds in your payload and ensure yourrequests.post(..., timeout=...)value stays at least 10 seconds higher. - Memory Spikes and Container Restarts: Each active Camoufox browser context consumes several hundred megabytes of RAM. If a 2 GB VPS runs out of memory under parallel jobs, cap concurrent
/v1requests via a semaphore or queue rather than firing dozens of simultaneous browser launches. - Infinite Verification Loops on Cloud IPs: When Byparr runs on a public VPS or data-center subnet, target firewalls often flag the underlying ASN regardless of browser fingerprint quality. Switching from shared cloud subnets to best scraping proxies with clean residential or ISP reputation typically resolves repeated challenge loops.
Pairing Byparr with IPFLY Proxies for Session Continuity

Because Byparr isolates browser fingerprints while relying on an external proxy for IP reputation and regional routing, matching the right proxy session mode to your workflow prevents mid-session cookie invalidation. Understanding the trade-offs between residential proxy types and static residential ISP proxies helps keep both the browser render step and downstream HTTP requests aligned:
- IPFLY Residential Proxies: Provide multi-country residential IP pools billed by traffic volume, supporting HTTP(S) and SOCKS5 protocols with both rotating and sticky session modes. When using Byparr to extract clearance cookies and reuse them in a Python
requests.Session(), configure a sticky session and pass the exact same sticky endpoint to both Byparr and your follow-up HTTP session so the exit IP stays consistent across both steps (note that sticky sessions rotate once their session window expires or the underlying residential node disconnects). For independent single-page fetches that do not reuse cookies, rotating mode distributes requests across distinct residential IPs. - IPFLY ISP Proxies: Deliver dedicated, non-rotating static IP addresses hosted on real ISP infrastructure and billed per IP and duration rather than traffic volume. They fit long-lived Docker Compose deployments—such as Prowlarr or recurring QA monitors—where a constant
PROXY_SERVERaddress reduces session churn.
Before scaling concurrent jobs, run a single test request through /v1 with your chosen proxy credentials, confirm that solution.status returns 200, and verify that one follow-up requests.Session() call succeeds using the extracted cookies and User-Agent.
Frequently Asked Questions
Is Byparr a drop-in replacement for FlareSolverr?
Yes, it exposes the identical /v1 JSON schema on port 8191, letting Prowlarr, Jackett, and Python scripts switch without code changes.
Why does Byparr use Camoufox instead of standard Chromium?
Camoufox is a hardened Firefox build managed by Playwright that delivers a lighter ~1.1 GB image and cleaner browser fingerprint consistency.
Clearance cookies are bound to the original User-Agent and exit IP, so changing either one in requests.Session() invalidates the session.
How much RAM does the Byparr Docker container require?
Each active Camoufox context uses roughly 300–500 MB of RAM, so allocate at least 2 GB and cap concurrent /v1 jobs.
Can I pass different proxies per request instead of one global proxy?
Yes, include a proxy object (url, username, and password) inside the /v1 JSON payload to override the global PROXY_SERVER setting.
Conclusion
Deploying Byparr with Docker gives automated workflows a fast, FlareSolverr-compatible way to clear JavaScript challenges and reuse valid session cookies in Python. Pairing Byparr with IPFLY sticky residential sessions or static ISP proxies keeps outbound IP reputation clean and ensures the browser render step and downstream HTTP requests share the exact same exit address.