Skip to content

Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.

fix: skip channel='chromium' on Windows to prevent Chrome exit code 0

Starkc34ffc00677f
diff --git a/crawl4ai/browser_manager.py b/crawl4ai/browser_manager.py
index 0b429c34..09e11c53 100644
--- a/crawl4ai/browser_manager.py
+++ b/crawl4ai/browser_manager.py
@@ -1112,7 +1112,11 @@ class BrowserManager:
browser_args = {"headless": self.config.headless, "args": args}
- if self.config.chrome_channel:
+ # On Windows, passing channel='chromium' (the default) causes Playwright
+ # to look for a system Chrome installation instead of using the bundled
+ # ms-playwright binary. This makes Chrome exit immediately with code 0,
+ # resulting in TargetClosedError. Skip the default channel.
+ if self.config.chrome_channel and self.config.chrome_channel != "chromium":
browser_args["channel"] = self.config.chrome_channel
if self.config.accept_downloads: