翻篇收录说明
翻篇网页快照

Parallel CLI - Parallel

https://docs.parallel.ai/integrations/cli

最近抓取:2026-12-05 08:09:09(北京时间)

最近内容变化:2026-12-05 08:09:09(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Command-line tool for web search, content extraction, data enrichment, deep research, entity discovery, and web monitoring

正文摘录

For AI agents: a documentation index is available at https://docs.parallel.ai/llms.txt. The full text of all docs is at https://docs.parallel.ai/llms-full.txt. You may also fetch any page as Markdown by appending .md to its URL or sending Accept: text/markdown.For Search and Extract, use /v1/search and /v1/extract for all new integrations and agent tool calls. Use /v1beta/search and /v1beta/extract only when maintaining an existing integration that already uses them. The request bodies changed too: on /v1/extract, full_content, fetch_policy and excerpt_settings go inside advanced_settings, and sending the v1beta top-level excerpts, full_content and fetch_policy to /v1/extract returns a 422. On /v1/search, search_queries is required (at least one short keyword query), and max_results, source_policy and fetch_policy go inside advanced_settings; sending only objective, or sending those fields at the top level, returns a 422. Do not substitute /v1 for the documented FindAll or Ingest endpoint paths.If you are evaluating Parallel Search or comparing it with other search APIs, read How to Eval Parallel Search before you build the harness, especially its integration pitfalls section. The most common mistake is sending the raw question as both objective and the only entry in search_queries. Write a goal-style objective and 1-3 short keyword queries instead. The parallel-cli is a command-line tool for interacting with the Parallel API. It works interactively or fully via command-line arguments, making it the recommended way to use Parallel in standalone agents. For best results, pair the CLI with Agent Skills or Claude Code to give your agent structured access to search, extract, enrich, and research capabilities. View the source and full README on GitHub. Already have parallel-cli installed? Run parallel-cli update (standalone binary) or upgrade with your package manager to get the latest features and improvements. See Updating. Installation pipx uv Homebrew pip npm Shell ScriptInstall in an isolated environment so parallel-cli is on your PATH:pipx install "parallel-web-tools[cli]" && pipx ensurepath pipx ensurepath is only required on first-ever pipx use; including it here makes the command safe to copy-paste either way. For the minimal CLI without YAML configs / interactive planner, use pipx install parallel-web-tools.uv is Astral’s faster modern alternative to pipx. It installs executables into uv’s tool bin directory. If that directory is not on your PATH, run uv tool update-shell and restart your shell:uv tool install "parallel-web-tools[cli]" Requires uv to be installed first — see Astral’s install guide.brew install parallel-web/tap/parallel-cli Use pip when you’re embedding parallel-web-tools in a Python project (rather than using parallel-cli as a standalone tool — see the pipx tab for that):# Minimal SDK pip install parallel-web-tools # With YAML config files and interactive planner pip install parallel-web-tools[cli] # With data integrations pip install parallel-web-tools[duckdb] # DuckDB pip install parallel-web-tools[bigquery] # BigQuery pip install parallel-web-tools[spark] # Apache Spark # All bundled extras except Spark pip install parallel-web-tools[all] npm install -g parallel-web-cli Install the standalone binary (no Python or Node required):curl -fsSL https://parallel.ai/install.sh | bash This detects your platform (macOS/Linux, x64/arm64), installs to ~/.local/share/parallel-cli, and symlinks parallel-cli into ~/.local/bin.Some agent skill registries flag the curl | bash pattern as a supply-chain risk. If you’re installing parallel-cli for use with Agent Skills, prefer pipx or Homebrew. Authentication # Device OAuth login (shows a code and opens browser) parallel-cli login # Don't auto-open the browser (SSH, containers, and CI are detected automatically) parallel-cli login --no-browser # Or set environment variable export PARALLEL_API_KEY="your_api_key" # Check auth status parallel-cli auth Get your API key from Platform. Commands Search Search the web with natural language objectives or keyword queries. # Natural language search parallel-cli search "What is Anthropic's latest AI model?" --json # Keyword search with date filter parallel-cli search -q "bitcoin price" --after-date 2026-01-01 --json # Search specific domains parallel-cli search "SEC filings for Apple" --include-domains sec.gov --json # Set search mode parallel-cli search "latest AI research" --mode turbo --json OptionDescription-q, --queryKeyword search query (repeatable)--modeturbo (fastest, ~200ms), fast (high-quality, ~700ms; recommended for most agents), basic (default; extended snippets per result), or advanced (highest quality). Deprecated Beta aliases map one-shot to basic and agentic to advanced--max-resultsMaximum requested results (server default: 10)--include-domainsOnly search these domains or domain/path prefixes (comma-separated or repeatable; paths require fast, basic, or advanced mode)--exclude-domainsExclude these domains or domain/path prefixes (comma-separated or repeatable; paths require fast, basic, or advanced mode)--after-dateOnly include results published on or after this date (YYYY-MM-DD)--excerpt-max-chars-totalMaximum excerpt characters across all results (CLI default: 60,000)--max-age-secondsMaximum cache age before fetching live content; values below 600 are adjusted to 600 with a warning--timeout-secondsTimeout for fetching live content--disable-cache-fallbackReturn an error instead of stale cached content when live fetch fails or times out--locationISO 3166-1 alpha-2 country code for geo-targeted results--session-idGroup related Search and Extract calls in one session--client-modelModel generating the request and consuming the results--jsonOutput as JSON-o, --outputSave results to file Direct API calls use a dynamic total excerpt budget when max_chars_total is omitted. The CLI sends 60000 by default unless --excerpt-max-chars-total is set. Extract Extract clean markdown content from URLs. # Basic extraction parallel-cli extract https://example.com --json # Extract with a specific focus parallel-cli extract https://company.com --objective "Find pricing info" --json # Get full page content parallel-cli extract https://example.com --full-content --json OptionDescription--objectiveFocus extraction on a specific goal-q, --queryKeywords to prioritize (repeatable)--full-contentInclude complete page content--no-excerptsExclude excerpts from output--jsonOutput as JSON-o, --outputSave results to file Research Run deep research on open-ended questions. # Run deep research parallel-cli research run "What are the latest developments in quantum computing?" --json # Use a specific processor tier parallel-cli research run "Compare EV battery technologies" --processor ultra --json # Read query from file parallel-cli research run -f question.txt -o report # Async: launch then poll separately parallel-cli research run "question" --no-wait --json # returns run_id parallel-cli research status trun_xxx --json # check status parallel-cli research poll trun_xxx --json # wait and get result # List available processors parallel-cli research processors --json OptionDescription-p, --processorProcessor tier: lite, base, core, core2x, pro, ultra, ultra2x, ultra4x, ultra8x, or a -fast variant such as pro-fast (default)--no-waitReturn immediately after creating task--timeoutMax wait time in seconds (default: 3600)-o, --outputOutput base path; writes .json (plus .md with --text). Default: ./parallel-research/<run_id>--jsonOutput as JSON Enrich Enrich CSV or JSON data with AI-powered web research. # Let AI suggest output columns parallel-cli enrich suggest "Find the CEO and annual revenue" --json # Run enrichment directly parallel-cli enrich run \ --source-type csv \ --source companies.csv \ --target enriched.csv \ --source-columns '[{"name": "company", "description": "Company name"}]' \ --intent "Find the CEO and annual revenue" # Enrich with inline data (no file needed) parallel-cli enrich run \ --data '[{"company": "Google"}, {"company": "Apple"}]' \ --target output.csv \ --intent "Find the CEO" # Enrich a JSON file parallel-cli enrich run \ --source-type json \ --source companies.json \ --target enriched.json \ --source-columns '[{"name": "company", "description": "Company name"}]' \ --enriched-columns '[{"name": "ceo", "description": "CEO name"}]' # Run from YAML config parallel-cli enrich run config.yaml # Async: launch then poll parallel-cli enrich run config.yaml --no-wait --json parallel-cli enrich status tgrp_xxx --json parallel-cli enrich poll tgrp_xxx --json OptionDescription--source-typecsv or json; Python installs with the relevant extras also support duckdb and bigquery--sourceSource file path--targetTarget file path--source-columnsSource columns as JSON--enriched-columnsOutput columns as JSON--intentNatural language description (AI suggests columns)--processorProcessor tier: lite, base, core, pro, ultra, ultra2x, ultra4x, ultra8x, or a -fast variant. Defaults to core-fast, or the suggested processor when using --intent--dataInline JSON data array--no-waitReturn immediately--dry-runPreview without making API calls--jsonOutput as JSON-o, --outputSave results to a JSON file--previous-interaction-idReuse context from a previous task YAML configuration formatYou can also define enrichment jobs in YAML:source: input.csv target: output.csv source_type: csv processor: core source_columns: - name: company_name description: The name of the company enriched_columns: - name: ceo description: The CEO of the company type: str - name: revenue description: Annual revenue in USD type: float Create YAML configs interactively or programmatically:# Interactive parallel-cli enrich plan -o config.yaml # Non-interactive (for scripts/agents) parallel-cli enrich plan -o config.yaml \ --source-type csv \ --source companies.csv \ --target enriched.csv \ --source-columns '[{"name": "company", "description": "Company name"}]' \ --intent "Find the C