Skip to main content

Overview

ADP is Laiye’s Agentic Document Processing product. It uses the general understanding capabilities of large models to process documents without relying on rules or manual labels. It supports multilingual, multimodal, and multi-scenario document understanding. Agents can understand task goals, break down steps, call tools, and complete complex tasks. From document input to business decisions and human review, ADP helps build an end-to-end automation loop. agentic-doc-parse-and-extract (ADP CLI) is ADP’s official open-source command-line tool. It supports manual terminal usage and automated AI Skill calls. With one command, you can parse documents into structured data and extract key fields across invoices, orders, IDs, bills, and general documents. Results are returned as standard JSON for automation and AI workflows.

GitHub

laiye-ai/adp-cli

NPM

@laiye-adp/agentic-doc-parse-and-extract-cli

PyPI

agentic-doc-parse-and-extract

Releases

Prebuilt binaries

Key capabilities

agentic-doc-parse-and-extract focuses on intelligent document processing from parsing to extraction and batch processing. It works for both manual CLI usage and AI Agent automation.

Install and update

The PyPI package is no longer maintained. Use npm to update to the latest version.

Configure

Get an API key from adp-global.laiye.com. New users receive 100 free credits each month.

Quick examples

Commands

AI Agents should call adp schema to get the authoritative machine-readable command schema. This table is a human-friendly summary.

Flags

Async workflow

For large files or batch tasks, use --async to submit the task. The CLI returns a task-id, and you can poll results with parse query or extract query.

Two-phase async with --no-wait

By default, --async submits the task and polls until completion. This is convenient for AI Agents. For resumable workflows, use two phases. Phase 1: submit tasks
The output is a JSON array with task IDs:
Phase 2: query results
If the CLI exits unexpectedly, task IDs in tasks.json are still available. Resume anytime with query --file.

Batch processing

When processing multiple files or URLs, the CLI writes each result to a separate file:
  • --export <dir> specifies the output directory.
  • Without --export, the CLI creates adp_results_<timestamp>/.
  • Single-file tasks output to stdout or to the file path specified by --export.

Exit codes

Environment variables

Configuration storage

  • Config directory: ~/.adp/
  • Config file: ~/.adp/config.json
  • Encrypted API key: ~/.adp/key.enc (AES-256-GCM)
  • App cache: ~/.adp/app_cache.json
  • Version check cache: ~/.adp/version_check.json, refreshed every 24 hours

License

ADP CLI uses an open-source tool plus paid service model. The CLI is free and open source for fast integration. The ADP intelligent parsing service is a paid public cloud service billed by usage.
  • CLI tool: MIT licensed. You can use, modify, and distribute it.
  • ADP service: Public cloud AI document processing service billed by usage.
Free credits: new users receive 100 free credits each month after registration.

Support

ADP CLI guide

CLI documentation

OpenAPI guide

API documentation

Public cloud user guide

User guide

GitHub Issues

Report issues