# TeamAI CLI

> Tencent's CLI that stores a team's agent skills, rules, docs, hooks, env and MCP servers in one shared git repo and syncs them into every member's coding agent

- Category: Agents & Automation / Agent Skills & Plugins
- Language: TypeScript
- Licence: MIT
- Repository: https://github.com/Tencent/teamai-cli
- Canonical page: https://ai-tldr.dev/tools/teamai-cli/
- Updated: 2026-09-09

## In short

TeamAI CLI is an open-source command-line tool from Tencent that treats a git repository as the source of truth for how a team's AI coding agents behave. It sits in the Agent Skills & Plugins category of the Agents & Automation tools and is open-source, written in TypeScript and licensed MIT.

## Overview

TeamAI CLI is an open-source command-line tool from Tencent that treats a git repository as the source of truth for how a team's AI coding agents behave. An admin publishes skills, rules, docs, environment variables, hooks, agents and MCP servers into that repo; every member runs `teamai init` against its URL once, and from then on each AI session pulls whatever the admins have published, with no manual sync step.

The tool is organised in three layers. Team Execution is the part that is fully shipping: `init`, `pull` and `push` for the shared harness of skills, rules, agents, hooks, MCP and env. Team Context (beta) adds recall, shared learnings, a codebase graph and a team wiki so an agent starts a session knowing something about the codebase. Team Improvement (beta) collects session friction, usage stats and a digest so real sessions turn into new shared skills and rules.

Support is deliberately multi-agent. The README's coverage table gives Claude Code, Codex, Cursor, CodeBuddy and Qoder a tick in every column, with narrower support for WorkBuddy, OpenCode, OpenClaw, Hermes, DeepSeek Harness and ZCode. Resources install at project scope by default or at user scope with `--scope user`. TeamAI CLI is published on npm as `teamai-cli` under the MIT license and needs Node.js 20 or newer plus git.

## What it does

- One shared git repo holds the team's skills, rules, docs, env, hooks, agents and MCP servers; members pull the latest automatically on every AI session
- Multi-agent by design: Claude Code, Codex, Cursor, CodeBuddy, WorkBuddy, OpenCode, OpenClaw, Hermes, DeepSeek Harness, Qoder and ZCode
- `teamai push` sends a local skill or rule back to the team repo through a merge-request style review flow
- Project scope by default, or `--scope user` to install shared resources under the home directory for every project on the machine
- Team Context (beta): recall, shared learnings, a codebase graph and a team wiki so agents do not start each session from zero
- Team Improvement (beta): session records, usage stats and a digest dashboard built from friction signals in real sessions
- Works with GitHub, GitLab (hosted or self-hosted), GitCode, CNB, TGit and private git services

## Getting started

TeamAI CLI installs from npm and needs Node.js 20 or newer plus git. One admin creates the shared team repo; everyone else only runs `teamai init` against its URL.

1. Install the CLI

   Install globally from npm, then confirm the binary is on your path.

```bash
npm install -g teamai-cli
teamai --version
```

2. Admin: create and initialise the team repo

   Create an empty repository on your git host, grant write access to the team, then point `teamai init` at it. The README suggests naming it TeamAi-<team-name>.

```bash
teamai init https://github.com/yourorg/yourrepo
```

3. Member: join at project or user scope

   Project scope is the default and installs the shared resources under the current project. User scope installs them under your home directory so they apply everywhere.

```bash
cd /path/to/my-project
teamai init https://github.com/yourorg/yourrepo

# or, for every project on this machine
teamai init https://github.com/yourorg/yourrepo --scope user
```

4. Use a self-hosted GitLab instance

   Set the instance URL and a personal access token with `api` scope before running init.

```bash
export GITLAB_URL=https://git.example.com
export GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxx
teamai init https://git.example.com/yourgroup/yourrepo
```

5. Install team packages

   Team-wide npm packages and Claude Code plugins are installed explicitly with the `packages` command, renamed from `install` in v0.24.0-beta.2.

```bash
teamai packages
```

## When to use it

- Stop copy-pasting the same agent rules into a dozen private config directories and let a reviewed git workflow distribute them instead
- Give a new joiner a working agent configuration on day one by having them run a single `teamai init`
- Keep a shared setup working when team members use different agents, so someone moving from Cursor to Claude Code keeps the same skills and rules
- Publish a skill you wrote locally back to the whole team through `teamai push` and a merge request

## Version history

- 2026-09-09 v0.24.0-beta.2: Adds declarative team environment installs and first-class JoyCode and Qoder agent support, renames the `install` command to `packages`, and routes new project installs into per-project directories under ~/.teamai/projects.
