Skip to main content

Unified CLI gateway for enterprise & developer platforms — one Skill to search, install, auth and invoke 8 platforms, 159+ tools

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

安装

一键安装(推荐):

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

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.3.0.tar.gz (165.8 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.3.0-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agent_cli_hub-0.3.0.tar.gz
  • Upload date:
  • Size: 165.8 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.3.0.tar.gz
Algorithm Hash digest
SHA256 a2b325329e7c2815f0aea8b59cc6145a6b9c0a589c90141e044a79582bb15be0
MD5 696817ef22885870e9ac5a53c68bcb8b
BLAKE2b-256 8950ffcdecf763316c86836295cf2625f76ffce792cf7ffc7cc78d4c437ac8c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agent_cli_hub-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 50.1 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 582adab499f108620ccf3398745fc510c447698d4b03b245ac3b9a531e66361b
MD5 633f64009377bab17f9e7afd20f94326
BLAKE2b-256 67039b00778f586e5c719c4e34bbcd3210ff67f65564b39a74c0f91b86508129

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