AI Skill Hub 强烈推荐:CLI自动化框架 是一款优质的Agent工作流。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。
浏览器自动化到CLI框架,集成浏览器使用、LLMs和CDP
CLI自动化框架 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
浏览器自动化到CLI框架,集成浏览器使用、LLMs和CDP
CLI自动化框架 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install cliany.site
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install cliany.site
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/pearjelly/cliany.site
cd cliany.site
pip install -e .
# 验证安装
python -c "import cliany.site; print('安装成功')"
# 命令行使用
cliany.site --help
# 基本用法
cliany.site input_file -o output_file
# Python 代码中调用
import cliany.site
# 示例
result = cliany.site.process("input")
print(result)
# cliany.site 配置文件示例(config.yml) app: name: "cliany.site" debug: false log_level: "INFO" # 运行时指定配置文件 cliany.site --config config.yml # 或通过环境变量配置 export CLIANY.SITE_API_KEY="your-key" export CLIANY.SITE_OUTPUT_DIR="./output"
🌐 Languages: English | 简体中文
🧪 v0.14.4 Quality Gates: Structured extraction now reportsdata.quality,browser extract --strict-qualitycan fail empty or partially missing results withE_EMPTY_RESULT, generatedlist-/search-commands expose extraction quality, andscripts/release_readiness.pychecks case catalog, CI gates, release draft, changelog, and weekly commit cadence before release. See v0.14.4 release draft. 🧭 v0.14.3 Open-Source Readiness: Added the Q3 roadmap, 10-minute quickstart, structured real-demo case index, human-readabledoctorsummary, contributor starter map, and local release cadence checks. See CHANGELOG.md. 🤖 v0.14.2 自主改进闭环:新增 5 维度自主改进脚手架——确定性 benchmark 回归测试、headless Chrome 具身验证、Dependabot 依赖哨兵、运行时反馈闭环、Agent 守则文档,使 OpenCode 可触发自主演进循环,详见 CHANGELOG.md。 🔧 v0.14.1 修复与增强:新增E_PAGE_NOT_READY/E_PARSE_FAILED/E_EMPTY_RESULT错误码、修复 navigate/extract/action_runtime 失败语义、doctor 同时识别AGENT.md/AGENTS.md、Obscura 能力声明修正(navigation/cookies)、list-/search- 命令空结果 opt-in 检测、Obscura 友好错误提示,详见 CHANGELOG.md。 ✨ v0.14.0 Real-World Demos: Case 2 (Enterprise CRM) & Case 3 (Team Toolbox) on the website now use real public demo sites — SuiteCRM Demo, ASF Jira, ASF Confluence, ASF Jenkins. See Try Real Demos. ✨ v0.13.0 开发者体验加固:修复 loader RuntimeError bug、稳定 test_session_lock 测试、补全 ERROR_FIX_HINTS 27 条提示、新增 SuccessEnvelope/ErrorEnvelope TypedDict、核心模块 pyright strict(0 errors)、doctor 命令增强(versions + adapter_stats),详见 CHANGELOG.md。 🔒 v0.12.0 稳定性与质量加固:新增文件锁保护(manifest/session 并发写安全)、tar 路径穿越防护、Obscura 下载重试、统一错误码体系,详见 CHANGELOG.md。 🚀 v0.11.0: Added experimental Obscura browser provider, multi-platform binaries, and lifecycle management. ⚠️ v0.10.0 BREAKING: metadata schema v3 hardcut. Usecliany-site migrateto upgrade legacy adapters.
Automate any web workflow into callable CLI commands
cliany-site is built on browser-use and Large Language Models (LLMs), enabling full-process automation from web exploration to code generation and replay via the Chrome CDP protocol. Explore with one command, execute with another—turning complex web workflows into repeatable CLI tools.
cliany-site/src/cliany_site/
├── cli.py # Main entry point, SafeGroup global exception capture
├── config.py # Unified configuration center (env + .env)
├── errors.py # Exception hierarchy + error codes
├── response.py # JSON envelope {ok, data, error, meta} (v1)
├── logging_config.py # Structured logging (JSON format + masking)
├── sdk.py # Python SDK (sync + async)
├── server.py # HTTP API service (aiohttp)
├── security.py # Session encryption (Fernet + Keychain)
├── sandbox.py # Sandbox policy execution
├── audit.py # Code security audit (AST analysis)
├── marketplace.py # Adapter marketplace (pack/install/rollback)
├── browser/ # CDP connection + AXTree + Chrome start + iframe
├── explorer/ # LLM workflow exploration + atom extraction + verification
├── codegen/ # Code generation (template/param inference/deduplication/merge)
├── workflow/ # YAML orchestration + batch execution
├── commands/ # Built-in CLI commands
└── tui/ # Textual terminal UI
explore --json reports gateway, rate-limit, or service outages as E_LLM_UNAVAILABLE with sanitized retry details instead of raw upstream HTML.--json, outputting a machine-readable {ok, data, error, meta} envelope (v1).data.quality or E_EMPTY_RESULT when strict quality is enabled.--headless and --cdp-url ws://host:port for running in servers or Docker.obscura command group for binary installation, rollback, and health checks.--sandbox limits cross-origin navigation and dangerous operations, currently prioritized for CLI adapter paths.--sandbox limits navigation to the same origin, forbids javascript: / file:// / data: URLs, and prevents file downloads.eval / exec.cliany-site explore "https://github.com" "Search and view results" --json
cliany-site browser extract \ --selector ".result-card" \ --mode list \ --fields-json '{"title": ".title", "url": "a@href"}' \ --strict-quality \ --json ```
Structured extraction responses include data.quality. Generated list- and search- adapter commands also include that summary and return E_EMPTY_RESULT when extraction quality is empty or partially missing required fields, so automation can distinguish "command ran" from "useful data was found".
```bash
pip install cliany-site
git clone https://github.com/pearjelly/cliany.site.git cd cliany.site pip install -e . ```
cliany-site obscura install 0.1.0 --json
cliany-site market install ./demo.suiteondemand.com.cliany-adapter-v0.14.0.tar.gz
cliany-site market install ./builds.apache.org.cliany-adapter-v0.14.0.tar.gz
cliany-site builds.apache.org list-jobs --json
Disclaimer: These demo sites are operated by third parties and may be temporarily unavailable. cliany-site only provides the CLI shim; we do not control the demo data or uptime.
cliany-site market install ~/.cliany-site/packages/github.com-1.0.0.cliany-adapter.tar.gz
For a guided first run, see 10-minute success path. It starts with a real demo adapter before requiring LLM setup, then points successful users toward the Real Demo Case Proposal path for contributing new public read-only cases.
cliany-site cases --json cliany-site cases --status candidate --promotion-plan cliany-site cases --json --status candidate --promotion-plan cliany-site cases --case-id pypi-project-search --json cliany-site cases --case-id pypi-project-search --issue-template cliany-site cases --case-id pypi-project-search --evidence-bundle cliany-site cases --case-id pypi-project-search --evidence-bundle --json
The following adapters are available as downloadable assets on GitHub Release v0.14.1. The maintained case index lives in cases/README.md and cases/manifest.json. Use cliany-site cases --json to inspect active demos, candidate workflows, offline validation commands, and candidate promotion next actions from the CLI; promotion_evidence_summary.primary_next_task points automation at the first candidate task to advance, while promotion_evidence_summary.primary_next_task_acceptance_criteria states the proof required for that task. Add --promotion-plan to print the candidate promotion queue across all matched candidates; combine it with --json to read promotion_plan.primary_next_item, per-candidate primary tasks, and the incomplete task_queue. Use cliany-site cases --case-id pypi-project-search --json to open one case with validation and promotion details; omit --json for a copy-friendly human handoff with Promotion Tasks. Add --issue-template to print a GitHub issue body for a candidate promotion task, including Acceptance Criteria for each evidence task; combine it with --json to also read issue_template_primary_task without parsing Markdown. Add --evidence-bundle to print a structured local evidence checklist; combine it with --json for a machine-readable evidence bundle, including a promotion_command_plan that starts with llm_live_preflight before adapter package, metadata validation, and online smoke commands, plus acceptance_criteria for the proof each evidence task must attach. Use python scripts/plan_next_iteration.py --issues-dir /tmp/cliany-candidate-issues to generate reviewable candidate issue artifacts; the artifacts README shows Primary Evidence Status, Primary Acceptance Criteria, and primary_next_task_acceptance_criteria before maintainers create issues.
```bash
cliany-site login https://demo.suiteondemand.com/
cliany-site doctor --json
cliany-site doctor --llm-live --json
```bash
cliany-site doctor --json
cliany-site doctor --llm-live --json
By default, doctor checks local configuration, CDP, directories, and keys without calling the LLM provider. Add --llm-live when you want a real provider preflight before a longer explore; retryable gateway, rate-limit, or service outages appear as a llm_live warning with details.error_code=E_LLM_UNAVAILABLE.
from cliany_site.sdk import ClanySite
async with ClanySite() as cs:
result = await cs.explore("https://github.com", "搜索仓库")
adapters = await cs.list_adapters()
```bash
curl http://localhost:8080/doctor curl http://localhost:8080/adapters curl -X POST http://localhost:8080/explore \ -H "Content-Type: application/json" \ -d '{"url": "https://github.com", "workflow": "搜索仓库"}' ```
| Command | Arguments | Description |
|---|---|---|
doctor | [--json] | Check environment (CDP, LLM Key, directory structure). |
login <url> | [--json] | Open URL to wait for login and save session. |
explore <url> <workflow> | [--json] [--interactive] [--extend <domain>] [--record] | Explore workflow and generate adapter. |
list | [--json] | List generated adapters. |
cases | [--case-id <id>] [--status <status>] [--detail] [--issue-template] [--evidence-bundle] [--promotion-plan] [--json] | List maintained real demo cases and candidate workflows. |
verify <domain> | [--json] | Statically verify adapter schema, signatures, and dependency integrity. |
migrate | [--json] [--dry-run] | Migrate all legacy adapters to schema v3. |
replay <domain> | [--session <id>] [--step] | Replay exploration recording with screenshots and actions. |
check <domain> | [--json] [--fix] | Check adapter health status. |
obscura <subcommand> | install/use/status/clean/rollback/upgrade/doctor | Manage experimental Obscura browser provider. |
tui | Start TUI management interface. | |
serve | [--host] [--port] | Start HTTP API service. |
market publish <domain> | [--version] [--json] | Pack and export adapter. |
market install <path> | [--force] [--json] | Install adapter package. |
market uninstall <domain> | [--json] | Uninstall adapter. |
market rollback <domain> | [--index] [--json] | Rollback to a backup version. |
workflow run <file> | [--json] [--dry-run] | Execute YAML workflow. |
workflow validate <file> | [--json] | Validate workflow file. |
workflow batch <adapter> <cmd> <data> | [--concurrency] [--json] | Batch execution. |
report list | [--domain] [--json] | List execution reports. |
report show <id> | [--json] | View report details. |
<domain> <command> | [--json] [args...] | Execute a command from an adapter. |
Global Options: --json --verbose --debug --cdp-url <ws://host:port> --headless --sandbox --explain --force-browser --diagnose
from cliany_site import explore, execute for programmatic calls.cliany-site serve --port 8080 starts a REST API service.```bash
cliany-site explore "https://github.com" "Search repository and view README" --json
```yaml
name: GitHub Search Process steps: - name: Search Repository adapter: github.com command: search params: query: "cliany-site" - name: View Details adapter: github.com command: view params: repo: "$prev.data.results[0].name"
bash cliany-site workflow run workflow.yaml --json cliany-site workflow validate workflow.yaml --json ```
cliany-site 是一个强大的 Web 自动化与智能探索工具,旨在通过 LLM 驱动的方式简化复杂的网页交互任务。它结合了 Chrome CDP 技术与先进的语言模型,能够理解页面语义并自动生成执行指令,为开发者提供从零侵入式探索到结构化数据提取的全栈解决方案。
核心功能涵盖了基于 Chrome CDP 的零侵入式页面 AXTree 捕获,支持由 Claude 或 GPT-4o 驱动的智能代码生���。系统内置了完善的 LLM 调用重试机制,能够应对网络波动;同时提供企业级特性,如 Headless 模式、远程浏览器支持(Docker/远程 CDP URL)、Obscura 生命周期管理以及基于 YAML 的声明式工作流编排。
使用 explore 工作流进行智能网页探索时,需要配置并接入 LLM(如 Claude 或 GPT-4o)的 API 密钥。此外,系统支持通过 --json 模式输出结构化结果,以便于集成到其他自动化流水线中。
您可以通过 PyPI 进行快速安装:使用 `pip install cliany-site`;或者通过源码安装:使用 `git clone` 克隆仓库后,在项目根目录下执行 `pip install -e .` 进行开发模式安装。
对于初学者,建议参考官方提供的 [10-minute success path] 文档进行引导式体验。系统支持从真实的 Demo Adapter 开始运行,在完成 LLM 配置后,您可以尝试通过 `cliany-site explore` 命令发起智能探索任务,或使用 `browser extract` 进行高精度的结构化数据抓取。
项目通过统一的 configuration center 管理配置,支持 .env 文件与环境变量。您可以使用 `cliany-site doctor` 命令检查当前环境状态,或使用 `--llm-live` 参数进行 LLM 服务的预检,确保 API 调用链路畅通。
cliany-site 提供双重调用方式:开发者可以使用 Python SDK 进行异步编程集成;也可以通过 `cliany-site serve` 启动 HTTP API 服务,利用 RESTful 接口(如 /explore, /doctor)实现跨语言的远程调用。
cliany-site 构建了一个完整的生态系统:提供 Python SDK 用于程序化调用,支持 HTTP API 快速构建微服务,并拥有 Adapter Marketplace(适配器市场)用于团队间共享自动化能力。通过 TUI 管理界面与 YAML 工作流,您可以轻松实现复杂的多步自动化任务编排。
高质量的开源AI工作流框架,具有较强的实用价值
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,CLI自动化框架 是一款质量优秀的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | cliany-site |
| 原始描述 | 开源AI工作流:A browser automation-to-CLI framework. Leveraging browser-use, LLMs, and the CDP。⭐9 · Python |
| Topics | browser-automationchrome-cdpclipython |
| GitHub | https://github.com/pearjelly/cliany.site |
| License | MIT |
| 语言 | Python |
收录时间:2026-06-17 · 更新时间:2026-06-17 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端