Skip to main content

Unified CLI gateway for enterprise platforms — one Skill to search, install, auth and invoke WeCom / DingTalk / Lark CLIs

Project description

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

安装

pip install agent-cli-hub

或从源码:

git clone https://github.com/agentrix-ai/cli-hub.git
cd cli-hub
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_cli_hub-0.1.0.tar.gz (53.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_cli_hub-0.1.0-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file agent_cli_hub-0.1.0.tar.gz.

File metadata

  • Download URL: agent_cli_hub-0.1.0.tar.gz
  • Upload date:
  • Size: 53.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for agent_cli_hub-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eff4f87a4216e6d0d8528457534f808aac29be69801734faf1471b8f71240c02
MD5 ad6b15baee4fefae587b4f6eb68aa894
BLAKE2b-256 504f9b671de52001f89d46d41d7556acdc3f367ea0dfd563b239c6b49b71c1ab

See more details on using hashes here.

File details

Details for the file agent_cli_hub-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agent_cli_hub-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for agent_cli_hub-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3926e0e139182881c3c93afb11e4429edc13ac3dc41f6f4a324b3758939c4369
MD5 32add96b46847def0dc16314b9862156
BLAKE2b-256 323fa1d2fc1cb35bdbcb45e84a823e8ae71877ca2e6b855515bcedb6c5b93a02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page