Common Options
Every Lightpanda command (fetch, serve, mcp, agent, run) accepts the following options in addition to its own.
Options
common options:
--adblock-lists <LIST>
EasyList-syntax filter files to load. Can be passed multiple times.
Requests a list blocks are failed before they leave; the URL,
resource type, party and $domain= of each one decide.
e.g. --adblock-lists easylist.txt --adblock-lists easyprivacy.txt
--block-cidrs <CIDR>
Additional CIDR ranges to block. Can be passed multiple times.
Prefix with '-' to allow (exempt from blocking).
e.g. --block-cidrs 10.0.0.0/8 --block-cidrs -10.0.0.42/32
Can be combined with --block-private-networks.
--block-urls <PATTERN>
URL patterns to block. Can be passed multiple times.
Patterns are matched case-insensitively against the full URL and '*'
is a wildcard.
e.g. --block-urls "*doubleclick*" --block-urls "*://*/*.png"
--block-private-networks
Block HTTP requests to private/internal IP addresses after DNS
resolution.
Defaults to false.
--ca-cert <PATH>
Load TLS root certificates from a PEM file. Can be passed
multiple times. When any --ca-cert or --ca-path is given, the
system trust store is replaced by these certificates.
--ca-path <PATH>
Load TLS root certificates from every file in a directory. Unlike
openssl, the directory does not need to be c_rehash'ed. Can be
passed multiple times. When any --ca-cert or --ca-path is given,
the system trust store is replaced by these certificates.
--cookie <PATH>
Path to a file to load cookies from (read-only). Either a JSON
array in the CDP/Puppeteer format, or a Netscape cookie file (the
cookies.txt format written by curl and wget). The format is
detected from the file's contents.
Defaults to no cookie loading.
--cookie-jar <PATH>
Path to a JSON file to save cookies to on exit (write-only).
Defaults to no cookie saving.
--cors-store-entry-limit <INT>
Maximum number of entries kept in the CorsStore. 0 means no limit.
Defaults to 1000.
--disable-features <FEATURE>
Disable a feature that is on by default. Can be passed multiple times.
Defaults to none disabled.
Allowed values:
cors Skip CORS checks on fetch/XHR requests.
--experimental-features <FEATURE>
Enable an experimental, unstable feature. Can be passed multiple times.
Behavior may change or be removed without notice.
Defaults to none enabled.
Allowed values:
animation Fire animationstart, animationend and
animationcancel for CSS animations, for pages
that wait on them. Initial implementation can
be CPU-heavy.
privatecache Let the HTTP cache (--http-cache-dir) store
responses with a Set-Cookie header, removing
the header. The cache and the cookie store
have different lifetimes and are shared
differently, so a cached response without its
Set-Cookie can make later requests fail.
serviceworker Enable the Service Worker API.
--load-resources <RESOURCE>
Sub-resource to actually request. Can be passed multiple times.
Defaults to stylesheet for mcp and agent, and to none of them
otherwise. Passing it replaces the default.
Allowed values:
beacon Send navigator.sendBeacon requests. Page navigation
cancels inflight beacons.
iframe When enabled, <iframe> elements are fully loaded.
image <img> sources, so that load/error reflects the real
HTTP status. Images are never decoded: only the
first 16KB is read, for naturalWidth and
naturalHeight (PNG, GIF, JPEG and WebP; 0 for
other formats). Delays the window load event.
stylesheet Fetch external <link rel=stylesheet> resources so
their rules contribute to computed styles (and
therefore to visibility checks like display,
visibility, opacity, pointer-events).
worker Enable loading dedicated and shared workers. When
disabled, the Worker constructor still returns a
Worker, but no script fetch is initiated and the
Worker never runs.
none Request none of them, overriding the default.
--http-cache-dir <PATH>
Directory used as a filesystem cache for network resources. Omitting
this disables caching.
Defaults to no caching.
--http-cache-entry-limit <INT>
Maximum number of entries kept in the HTTP cache. The limit is
soft: it is enforced at startup and when a browser session ends.
The cache can temporarily exceed it. 0 means no limit.
Defaults to 1000.
--http-connect-timeout <INT>
Time in ms to establish an HTTP connection before timing out. 0 means
never.
Defaults to 8000.
--http-curves <CURVES>
Colon-separated key exchange groups offered in the TLS handshake,
in preference order, e.g. "X25519:P-256:P-384". Passed to
libcurl's CURLOPT_SSL_EC_CURVES.
--http-debug
Enables libcurl verbose output. Output written directly to stderr
by licurl and does not follow the configured log format.
Defaults to off (not set).
--http-header <HEADER>
Extra custom header added to every outgoing HTTP request, including redirections,
in "Name: Value" form. Can be passed multiple times. The last one is used.
Note that if you add a custom header that has the same name as one of the
internal ones Lightpanda would use, your set header is always used instead of the
internal one. You should not replace internally set headers without knowing
perfectly well what you are doing.
Script set headers via CDP or JS can't override a CLI set header.
--http-max-concurrent <INT>
Maximum number of concurrent HTTP requests, shared by every
session.
Defaults to 40. For serve, defaults to 8 per
--cdp-max-connections with a min of 40 and a max of 256.
--http-max-host-open <INT>
Maximum open connections to a given host:port.
Defaults to 6.
--http-max-response-size <INT>
Limits the acceptable response size for any request
e.g. XHR, fetch, script loading.
Defaults to 1 GiB.
--http-nav-burst <INT>
Number of top-level navigations to an idle host allowed to
start without waiting for --http-nav-delay. After a burst,
navigations are spaced by --http-nav-delay again.
Defaults to 1.
--http-nav-delay <INT>
Minimum time in ms between two top-level navigations to the same
host (see --http-nav-burst). Disable by setting to 0.
Defaults to 0.
--http-proxy <URL>
HTTP proxy for all HTTP requests.
username:password may be included for basic auth.
Defaults to none.
--http-timeout <INT>
Maximum time in ms the transfer is allowed to complete. 0 means never.
Defaults to 15000.
--http-version <VERSION>
HTTP version to negotiate. "1.1" never offers HTTP/2. "auto"
picks the best available option.
Defaults to "auto".
Allowed values: "auto", "1.1".
--insecure-disable-tls-host-verification
Disables host verification on all HTTP requests.
Only set this if you understand and accept the risk.
--locale <TAG>
BCP 47 language tag driving navigator.language, the
Accept-Language header and the default locale of Intl and
toLocaleString. Defaults to en-US.
--log-filter <SCOPE>
Filter logs per scope, applied first-to-last. Can be passed multiple times.
"-X" (or bare "X") filters out a scope, "+X" filters it in, and
"all" targets every scope.
e.g. --log-filter http --log-filter unknown_prop
hides those two.
--log-filter -all --log-filter +cdp
hides everything except cdp.
--log-format <FORMAT>
The log format.
Defaults to logfmt.
Allowed values: "pretty", "logfmt".
--log-level <LEVEL>
The log level.
Defaults to warn.
Allowed values: "debug", "info", "warn", "error", "fatal".
--obey-robots
Fetches and obeys robots.txt of the target page.
Defaults to false.
--proxy-bearer-token <TOKEN>
Token sent for bearer authentication with the proxy:
Proxy-Authorization: Bearer <token>.
--render-font <PATH>
Font file (TrueType, OpenType or collection) used by the png and pdf
dumps, and by screenshots, for characters the bundled DejaVu fonts
lack, e.g. CJK. Can be passed multiple times; earlier files win.
e.g. --render-font NotoSansCJK-Regular.ttc
--robot-store-entry-limit <INT>
Maximum number of entries kept in the RobotStore. 0 means no limit.
Defaults to 1000.
--timezone <IANA>
Time zone used by Date and Intl, e.g. Europe/Paris or UTC.
Defaults to the host time zone.
--user-agent <STRING>
Override the User-Agent header entirely. Must not impersonate other
browsers; any value containing "Mozilla" is forbidden. The browser
still sends Sec-Ch-Ua. Incompatible with --user-agent-suffix.
--user-agent-suffix <STRING>
Suffix appended to the Lightpanda/X.Y User-Agent.
--v8-flags-unsafe <FLAGS>
Flags passed as-is to the V8 JavaScript engine, space-separated.
e.g. --v8-flags-unsafe "--expose-gc --stack-size 1000".
Unsupported escape hatch: V8 does not validate flags against the
prebuilt snapshot, so an incompatible flag can misbehave or
crash at any point.
--v8-gc-auto-min-mb <INT>
V8 heap size, in megabytes, below which V8 does not start a full
garbage collection on its own. When set to 0, V8 will base the
value on what survived the last GC. Higher values typically cost
more memory but less CPU.
Defaults to 32, 0 keeps the V8 default.
--v8-gc-request-min-mb <INT>
Heap size, in megabytes, below which cleanup events (e.g.
page teardown) do not notify V8 of memory pressure. Low numbers
typically cost more CPU but can help keep memory usage down.
Defaults to 1 (1MiB) in serve (CDP), mcp and agent mode.
V8 GC hints are disabled by default with fetch.
--v8-max-heap-mb <INT>
Maximum V8 heap size in megabytes, per browser instance. Values
below ~16 are clamped by V8 and all behave the same.
Defaults to the V8 default (based on available memory).
--watchdog-ms <INT>
Terminates JavaScript when the browser stalls — stays busy for
this long without returning to its network poll (e.g. a page
stuck in an endless script loop). In serve mode the CDP
connection is then closed. Unlike fetch's --terminate-ms, an idle
or normally-working page never trips this.
Defaults to [a very generous] 30000, disable by setting to 0.
--web-bot-auth-domain <DOMAIN>
Your domain, e.g. yourdomain.com.
Sends Signature-Agent: "https://<DOMAIN>". The key directory
is served at /.well-known/http-message-signatures-directory
on that origin.
--web-bot-auth-key-file <PATH>
Path to the Ed25519 private key PEM file.
--web-bot-auth-keyid <STRING>
The JWK thumbprint of your public key.
--ws-max-concurrent <INT>
Maximum number of concurrent WebSocket connections.
Defaults to 8.Deprecated options. Still accepted, but no longer shown in --help:
--disable-subframes: subframes are now disabled by default, use--load-resources iframeto enable.--disable-workers: workers are now disabled by default, use--load-resources workerto enable.--enable-external-stylesheets: use--load-resources stylesheetto enable.--experimental-features cors: CORS checks are now enforced by default; this value is still accepted but ignored. Use--disable-features corsto skip them.--log-filter-scopes: use--log-filterinstead.--v8-gc-hint-floor-mb: use--v8-gc-request-min-mb.