feat(cli): add lightweight remote crawling with trusted proxy configuration#2100
Closed
nnWhisperer wants to merge 2 commits into
Closed
feat(cli): add lightweight remote crawling with trusted proxy configuration#2100nnWhisperer wants to merge 2 commits into
nnWhisperer wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a lightweight
crwl-remotecommand for crawling through a remote Crawl4AIAPI without installing local browser dependencies, which can be used instead of
crwl command, which requires a local setup.
The Docker API now uses the existing configuration provenance mechanism to
trust browser and crawler configurations authenticated with the static operator
CRAWL4AI_API_TOKEN. This enables supported settings such as authenticatedupstream proxies while retaining restricted validation for other callers.
Also adds global remote credential storage, documentation, tests, and an agent
skill compatible with either local
crwloralias crwl='crwl-remote'.List of files changed and why
.agents/skills/crawl-with-crwl/SKILL.md- Adds guidance for agents to crawlexclusively through the backend-agnostic
crwlcommand..agents/skills/crawl-with-crwl/agents/openai.yaml- Adds metadata for thecrawl skill.
README.md- Documentscrwl-remote, global credentials, lightweightinstallation, shell aliases, browser configuration, and proxy usage.
crwl_remote.py- Implements the dependency-light remote API client andglobal credential configuration.
deploy/docker/api.py- Loads browser, crawler, streaming, and per-URLconfigurations using the caller's established
Provenance.deploy/docker/server.py- SelectsProvenance.TRUSTEDfor the staticoperator API token and passes it consistently through regular and streaming
crawl paths.
deploy/docker/tests/test_admin_proxy_config.py- Verifies trusted operatorconfiguration, authenticated proxies, typed proxy configuration, streaming
behavior, and restricted handling for other callers.
docs/codebase/remote-cli-requirements.md- Records the feature requirements,acceptance criteria, and focused-change principle.
pyproject.toml- Registerscrwl-remoteand the emptycrwl-remoteinstallation extra while preserving the original local
crwlentry point.tests/cli/test_crwl_remote.py- Tests request serialization, credentials,output, failures, and deep-crawl options.
How Has This Been Tested?
Tests were run inside an ephemeral Podman container to avoid installing
Playwright or browser dependencies on the host:
The modified backend was also exercised through a running Podman container
using an authenticated rotating proxy. Two separate
crwlrequests tohttps://ipv4.webshare.ioreturned different public IP addresses, verifyingthat the proxy configuration was correctly applied to the browser inside the
container.
This confirmed that the proxy configuration reached Chromium inside the
container and that proxy rotation worked.
Checklist
feature works