mirror of
https://github.com/Tencent/teamai-cli.git
synced 2026-10-02 03:14:40 +08:00
Add `teamai models` to point Claude Code, Codex, OpenCode, CodeBuddy, and
WorkBuddy at a team or personal model gateway.
- A team publishes `models/models.yaml` (id, name, base_url, api_key
placeholder, model_groups by protocol); each member keeps the API key
locally or as an environment-variable reference.
- `models switch` updates every installed, compatible agent (or `--agent`),
asks for a missing key once, and accepts `--model` for the default.
- `teamai pull` re-applies the team's latest catalog to agents already
switched to it; agents never switched are left alone.
- TeamAI records the managed fields before its first switch, skips agents
whose managed fields changed outside TeamAI, and `models restore` puts
the originals back. Claude's `/model` pick is not treated as a takeover.
- Claude family aliases map to matching gateway models or the default;
Buddy entries use `${VAR}` key references; Codex edits are parsed and
verified before writing.
- Push rejects an invalid catalog; user-scope uninstall restores model
settings first.
12 KiB
12 KiB
TeamAI — Make Every Team AI Native
English | 中文 | 日本語 | 한국어 | ไทย
为团队构建共享的 AI 基础,统一协作方式、沉淀团队上下文,并持续改进。
TeamAI 将个人的 AI 能力转化为团队共享能力,并在不同 Agent、设备和团队成员之间复用。
为什么选择 TeamAI
快速开始
把下面这一句发给你的 AI 工具:
帮我装好 teamai skill : https://github.com/Tencent/teamai-cli/tree/main/skills/teamai , 加载 teamai skill, 然后从零搭建团队的 TeamAI。
如无法访问 GitHub,改用下面这一句:
请根据 https://skillhub.cn/install/skillhub.md,安装 @user_7be6e993/teamai。然后加载 teamai skill, 并从零初始化我的团队 teamai。
装好 TeamAI 后,在 AI 工具里直接跟 /teamai 对话就行:
从零搭建团队
/teamai 帮我从零搭建团队的 TeamAI
加入团队
/teamai 帮我加入团队的 TeamAI,仓库地址是 https://github.com/your-org/your-repo
把资源分享给团队
Skills、Rules、MCP 等 Agent 能用的资源都可以分享:
/teamai 帮我把 xxx skill 分享给团队
打开团队看板
/teamai 帮我打开 TeamAI 看板
团队成员完成接入后,打开 Agent 即可使用团队的全部 AI 资产。
命令行安装
安装
npm install -g teamai-cli
团队管理员 / 个人使用者
在 Git 托管平台(GitHub、GitLab、GitCode、CNB、TGit,或私有 Git 服务)创建共享经验仓库,授予团队成员写权限,然后运行 teamai init https://github.com/your-org/your-repo。
还没有团队仓库? 可以从内置了成套 skills、rules、review agents 的模板起步。浏览 teamai-hub org,点 Fork 生成自己的仓库,再对它执行
teamai init。
团队成员
# 二选一:按你想要的安装范围选择其中一条
# 项目级初始化(默认,资源安装到项目目录下)
cd /path/to/my-project
teamai init https://github.com/your-org/your-repo
# 或者,用户级初始化(资源安装到 ~/ 下)
teamai init https://github.com/your-org/your-repo --scope user
初始化完成后,每次开启 AI 会话时都会自动拉取管理员发布的 skills / rules 等 Harness 更新,无需手动同步。
产品概览
基于 Git 打造三层能力:
- Team Execution —— 让每个 Agent 按团队的方式工作:skills、rules、docs、env、agents、hooks、MCP、models。
- Team Context(beta)—— 让每个 Agent 理解整个团队:learnings、代码知识图谱、teamwiki。
- Team Improvement(beta)—— 让每一次执行都沉淀为团队能力:usage、sessions、dashboard。
| Agent | Team Execution | Team Context (beta) | Team Improvement (beta) | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| skills | rules | docs | env | agents | hooks | mcp | models | learnings | codebase | teamwiki | usage | sessions | dashboard | |
| Claude Code | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Codex | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Cursor | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | — | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| GitHub Copilot CLI | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | — | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| CodeBuddy | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| WorkBuddy | ✓ | ✓ | ✓ | ✓ | — | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| OpenCode | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | — | — | — |
| Pi Coding Agent | ✓ | ✓ | ✓ | — | — | ✓ | — | — | — | — | — | — | — | — |
| OpenClaw | ✓ | ✓ | ✓ | ✓ | — | — | — | — | ✓ | ✓ | ✓ | — | — | — |
| Hermes | ✓ | — | ✓ | ✓ | — | — | — | — | ✓ | ✓ | ✓ | — | — | — |
| DeepSeek Harness | ✓ | — | ✓ | — | — | — | — | — | ✓ | ✓ | ✓ | — | — | — |
| Qoder | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | — | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Qoder CN | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | — | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Kiro | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | — | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| ZCode | ✓ | — | ✓ | — | ✓ | ✓ | ✓ | — | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Oh My Pi | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | — | ✓ | ✓ | ✓ | — | — | — |
了解更多
- 使用指南(English)— 安装、成员接入、日常流程与命令参考
- 产品概览(English)— 架构、分发策略与能力详解
- Git Provider — 支持的代码托管平台
- Windows 配置(English)— Hook 与 Shell 配置
- 技术设计 — 设计文档与提案
贡献者
感谢每一位为 TeamAI 贡献代码的伙伴!
由 contrib.rocks 生成。
贡献
欢迎加入社区交流,也可以提 Issue 或 PR。开发流程见 CONTRIBUTING.md。
