TeamCTL: Create autonomous teams of agents.
TeamCTL is an open-source orchestrator for agents that work together. Define their roles, structure and communication, then run the team in the background on your own machine.
A personal assistant, two research partners, a product team, or an organization with leads and specialists: you shape the team around the work. Its definition is code you can store, version and share with Git.
Mix Claude Code, Codex, OpenCode and Gemini CLI in one team, or use the same runtime for several agents.
Website · Documentation · Example teams · Releases
Start your first team
You'll need macOS or Linux, tmux, git, and the agent runtimes you choose installed and signed in.
1. Install
curl -fsSL https://teamctl.run/install | sh
The installer supplies teamctl, team-mcp, team-bot and teamctl-ui in ~/.local/bin. Add that directory to your PATH if needed.
2. Define the team
Inside the project where you want your agents to work:
teamctl init
Choose a starter and review its generated .team/ files before starting it. The interactive picker defaults to Ideate & Build, a four-agent Claude Code team. You can edit its roles, runtimes and models, or start from a different example.
For conversational setup, choose Guided or run teamctl init --template guided. Guided requires Claude Code and the TeamCTL plugin. If the plugin is not installed, run:
claude plugin marketplace add Alireza29675/teamctl --scope user
claude plugin install teamctl@teamctl --scope user
Starter templates create configuration without starting agents. Guided can also offer to start the team. Configure any accounts, tools and interfaces the chosen team needs before bringing it up; teamctl bot setup can help connect Telegram.
3. Run and inspect
teamctl validate
teamctl up
teamctl ui
validate checks the configuration, up starts the sessions, and ui opens the terminal dashboard. Closing the dashboard leaves the agents running in the background.
Full setup guide · Telegram setup
Define roles, structure and communication
Your team's blueprint lives in .team/: YAML describes the structure; Markdown describes the roles.
.team/
├── team-compose.yaml # Shared configuration and project imports
├── projects/
│ └── my-team.yaml # Agents, runtimes and communication
└── roles/
├── lead.md
└── builder.md
For example, a lead using Claude Code can coordinate a builder using Codex through a shared channel:
# .team/projects/my-team.yaml (illustrative roster excerpt)
version: 2
project:
id: my-team
name: My team
cwd: ..
channels:
- name: work
members: [lead, builder]
managers:
lead:
runtime: claude-code
role_prompt: roles/lead.md
workers:
builder:
runtime: codex
role_prompt: roles/builder.md
reports_to: lead
This excerpt needs a root team-compose.yaml and the referenced role files. Use teamctl init or a complete example team for a runnable starting point.
The roles describe how the lead coordinates work and how the builder responds. You can also define peers without reporting relationships, give agents different models and tools, and control who can send direct messages or post to channels.
Team design · Configuration reference · Channels
Follow the work
teamctl ui brings the roster, mailbox and actual agent terminal sessions into one view. Read conversations, inspect sessions, give direction and handle agent-requested approvals. Configure Telegram when you want to talk to your team from your phone.
Common commands:
| Command | What it does |
|---|
teamctl status | Inspect the current team's sessions. |
teamctl ps | List running teams across your machine. |
teamctl send my-team:lead "Review the current plan" | Send a message to an agent. |
teamctl reload | Apply changes to the team configuration. |
teamctl down | Stop sessions while keeping team files and state. |
CLI and terminal UI reference
Choose your agent tools