Skip to main content

CLI Reference

Agent Teams provides a command-line interface built with Typer. The CLI communicates with the Agent Teams REST API server.

Installation​

The CLI is installed automatically with the package:

pip install agent-teams

The entry point is agent-teams:

agent-teams --help

Commands​

serve​

Start the Agent Teams API server.

agent-teams serve [OPTIONS]
OptionDefaultDescription
--host0.0.0.0Host to bind to
--port8765Port to listen on
--reloadfalseEnable auto-reload for development

Example:

agent-teams serve --port 9000 --reload

create​

Create a new team from a YAML or JSON configuration file.

agent-teams create CONFIG_PATH [OPTIONS]
OptionDefaultDescription
--serverhttp://localhost:8765Server URL

Example:

agent-teams create team.yaml
agent-teams create config.json --server http://myserver:9000

Config file format (YAML):

name: research-team
execution_mode: parallel
members:
- name: researcher
model: openai:gpt-4o
system_prompt: You are a research analyst.
- name: writer
model: anthropic:claude-sonnet-4-20250514
system_prompt: You are a technical writer.
supervisor:
member_name: researcher
review_required: true

list​

List all teams on the server.

agent-teams list [OPTIONS]
OptionDefaultDescription
--serverhttp://localhost:8765Server URL

status​

Show detailed status of a team.

agent-teams status TEAM_ID [OPTIONS]
OptionDefaultDescription
--serverhttp://localhost:8765Server URL

start​

Start a team (transition from draft or stopped to running).

agent-teams start TEAM_ID [OPTIONS]

stop​

Stop a running or paused team.

agent-teams stop TEAM_ID [OPTIONS]

pause​

Pause a running team.

agent-teams pause TEAM_ID [OPTIONS]

resume​

Resume a paused team.

agent-teams resume TEAM_ID [OPTIONS]

delete​

Delete a team. The team must be stopped first (or use --force).

agent-teams delete TEAM_ID [OPTIONS]
OptionDefaultDescription
--forcefalseForce deletion even if running
--serverhttp://localhost:8765Server URL

assign​

Assign a task to a team.

agent-teams assign TEAM_ID DESCRIPTION [OPTIONS]
OptionDefaultDescription
--prioritymediumTask priority (low, medium, high, critical)
--assigned-toAssign to a specific member
--serverhttp://localhost:8765Server URL

Example:

agent-teams assign abc123 "Analyse Q4 revenue trends" --priority high
agent-teams assign abc123 "Write summary" --assigned-to writer

metrics​

Show team metrics (tasks completed, failed, active members, etc.).

agent-teams metrics TEAM_ID [OPTIONS]

events​

Show recent team events.

agent-teams events TEAM_ID [OPTIONS]
OptionDefaultDescription
--limit50Maximum number of events to show
--serverhttp://localhost:8765Server URL

Typical Workflow​

# 1. Start the server
agent-teams serve &

# 2. Create a team
agent-teams create team.yaml
# Output: Created team: abc-123-def

# 3. Start the team
agent-teams start abc-123-def

# 4. Assign tasks
agent-teams assign abc-123-def "Research recent AI papers" --priority high
agent-teams assign abc-123-def "Write executive summary"

# 5. Monitor progress
agent-teams status abc-123-def
agent-teams metrics abc-123-def
agent-teams events abc-123-def

# 6. Clean up
agent-teams stop abc-123-def
agent-teams delete abc-123-def