Skip to main content

CLI Hub

企业 CLI 统一网关 — Agent 只装一个 Skill,就能操作所有企业平台。

License: MIT Python 3.10+

为什么需要 CLI Hub?

国内大厂纷纷开放了 CLI + Agent Skill:

但从用户角度,要分别安装和维护这些 CLI + Skill 非常麻烦。CLI Hub 把它们统一管理,用户只需一个工具 + 一个 Skill,就可以搜索、安装、认证、调用所有企业平台的工具。

特性

  • 语义搜索 — 中英文混合搜索 300+ 工具,基于 jieba + BM25
  • 一键安装 — cli-hub install --all 自动安装所有底层 CLI
  • 统一认证 — cli-hub auth <provider> 委托各 CLI 原生认证流程
  • 统一调用 — cli-hub run <operation_id> [args] 一条命令调用任何工具
  • Agent 友好 — 配套 SKILL.md,Agent 开箱即用
  • 可扩展 — 新增厂商只需添加 JSON schema + adapter

安装

一键安装(推荐):

curl -sSL https://raw.githubusercontent.com/agentrix-ai/clihub/main/install.sh | bash

自动检测环境,选择最优方式安装(uv > pipx > pip),没有 Python 也会尝试自动安装。

手动安装:

pip install agent-cli-hub     # pip
pipx install agent-cli-hub    # pipx
uv tool install agent-cli-hub # uv

从源码:

git clone https://github.com/agentrix-ai/clihub.git
cd clihub
uv sync

快速开始

# 1. 检查环境
cli-hub doctor

# 2. 安装底层 CLI(按需)
cli-hub install lark
cli-hub install dingtalk
cli-hub install wecom

# 3. 认证
cli-hub auth lark
cli-hub auth dingtalk

# 4. 搜索工具
cli-hub search "发送消息给同事"
cli-hub search "创建待办" --provider lark

# 5. 调用
cli-hub run lark.calendar.agenda
cli-hub run wecom.todo.create_todo '{"content":"写周报"}'
cli-hub run dingtalk.contact.user_search --keyword "悟空"

命令参考

命令 说明
cli-hub search <query> 语义搜索工具(支持 --provider, --category, --top, --json)
cli-hub install <provider> 安装底层 CLI(支持 --all)
cli-hub auth <provider> 认证(支持 --status)
cli-hub run <operation_id> [args] 调用工具
cli-hub list [provider] 列出 provider / 工具
cli-hub doctor 诊断环境
cli-hub refresh [provider] 从 CLI 动态刷新 schema
cli-hub version 版本信息

支持的平台

平台 Provider CLI 工具数
企业微信 wecom wecom-cli 27
钉钉 dingtalk dws 23
飞书 lark lark-cli 27

扩展

新增一个 CLI 厂商只需:

  1. 添加 schemas/<name>.json — 工具 schema
  2. 添加 cli_gateway/adapters/<name>.py — adapter 实现
  3. 在 registry.py 注册 Provider

Agent Skill

将 skills/SKILL.md 安装到 Agent 环境即可使用:

cp skills/SKILL.md ~/.cursor/skills/cli-hub/SKILL.md

License

MIT

Metadata

Release files for agent-cli-hub 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-cli-hub 0.3.1
File Size Uploaded Provenance
agent_cli_hub-0.3.1.tar.gz 165.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-cli-hub 0.3.1
File Interpreter ABI Platform
agent_cli_hub-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 216.1 kB

Release files / agent_cli_hub-0.3.1.tar.gz

Download URL agent_cli_hub-0.3.1.tar.gz
Size 165.9 kB
Tags Source
SHA-256 checksum
How to use checksums
94a9d24f8c68057d661a7027f99e2f1ca1dc15581bffee32115ec3e1aa51efb7
BLAKE2b-256 checksum
How to use checksums
2947ad92531d1d43238f769e695e8db3fde5b0cd5586caf92c074991e1ec3634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release files / agent_cli_hub-0.3.1-py3-none-any.whl

Download URL agent_cli_hub-0.3.1-py3-none-any.whl
Size 50.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81f04fa07b4b243dcfff12f4fd003ac6e65f14fd858d1836cc2f93f12228d069
BLAKE2b-256 checksum
How to use checksums
600f6218fdae1a976a9de7c7576ed48ba5e0c38c559b08f42eea5f40f103c07e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Security for agent-cli-hub 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page