Overview
The squads CLI is your command interface for AI-native organizations. It bridges human intent and AI execution across 45+ commands organized by function.Human Layer
Strategy, Goals, Oversight
AI Layer
Squads, Agents, Memory
Output
Decisions, Artifacts, Reports
Installation
Quick Reference
| Category | Commands |
|---|---|
| Getting Started | init, setup, login, whoami, update |
| Status & Monitoring | status, dash, health, workers, sessions, live, top, watch |
| Running Agents | run, orchestrate, tonight |
| Goals & Memory | goal, memory, kpi, learn, learnings, feedback |
| Issues & Progress | issues, solve-issues, open-issues, progress, results, history |
| Cost & Autonomy | cost, budget, autonomy |
| Infrastructure | stack, trigger, cron, autonomous |
| Integrations | slack, skill, approval, permissions |
| Context | context, env, providers, list |
Getting Started
squads init
Initialize a new squads project with guided setup.| Flag | Description |
|---|---|
-t, --template <template> | Project template (default: “default”) |
-p, --provider <provider> | LLM provider: claude, gemini, openai, ollama, none |
--skip-infra | Skip infrastructure setup prompt |
-y, --yes | Accept all defaults (non-interactive) |
-q, --quick | Quick init - create files only |
squads setup
Guided onboarding for infrastructure, auth, and first squad.| Flag | Description |
|---|---|
-p, --provider <provider> | LLM provider |
--skip-infra | Skip infrastructure setup |
-y, --yes | Accept all defaults |
-r, --resume | Resume from last checkpoint |
squads login
Log in to Squads cloud (Pro & Enterprise).squads whoami
Show current logged in user and subscription status.squads update
Check for and install CLI updates.Status & Monitoring
squads status
Show squad status and state overview.squads dash
Full dashboard with goals, metrics, and activity.| Flag | Description |
|---|---|
-v, --verbose | Show additional details |
-c, --ceo | Executive summary with priorities and blockers |
-f, --full | Include GitHub PR/issue stats (~30s) |
-l, --list | List available dashboards |
--view <view> | Render specific view from dashboard |
squads health
Quick health check for all infrastructure services.squads workers
Show active workers: Claude sessions, agent workers, background tasks.| Flag | Description |
|---|---|
-v, --verbose | Show more details |
-k, --kill <pid> | Kill process by PID or tmux session name |
-c, --cleanup | Kill zombie sessions (>24h old) |
-a, --all | Kill ALL agent tmux sessions |
squads sessions
Show active Claude Code sessions across squads.squads live
Live TUI dashboard with real-time metrics (like htop).squads top
Live process table (like Unix top) - numbers update in place.squads watch
Live refresh any squads command (like Unix watch).| Flag | Description |
|---|---|
-n, --interval <seconds> | Refresh interval (default: 2) |
--no-clear | Don’t clear screen between refreshes |
Running Agents
squads run
Execute a squad or specific agent.| Flag | Description |
|---|---|
-d, --dry-run | Preview what would run |
-e, --execute | Execute via Claude CLI |
-a, --agent <agent> | Run specific agent within squad |
-t, --timeout <minutes> | Execution timeout (default: 30) |
-p, --parallel | Run all agents in parallel (N tmux sessions) |
-l, --lead | Lead mode: single orchestrator using Task tool |
-f, --foreground | Run in foreground (no tmux) |
--use-api | Use API credits instead of subscription |
--effort <level> | Effort level: high, medium, low |
--skills <skills...> | Skills to load |
--provider <provider> | LLM provider: anthropic, google, openai, etc. |
--model <model> | Model: opus, sonnet, haiku (default: sonnet) |
--trigger <type> | Trigger source: manual, scheduled, event, smart |
squads orchestrate
Run squad with lead agent orchestration - a single lead spawns workers.| Flag | Description |
|---|---|
-f, --foreground | Run lead in foreground (interactive) |
-v, --verbose | Show detailed output and watch events |
-t, --timeout <minutes> | Maximum runtime (default: 60) |
squads tonight
Run agents autonomously overnight with safety limits.| Command | Description |
|---|---|
run <targets...> | Start tonight mode with specified squads/agents |
status | Check tonight mode status |
stop | Stop all tonight agents and generate report |
report | Show latest tonight report |
Goals & Memory
squads goal
Set and track goals for squads.| Command | Description |
|---|---|
list [squad] | List goals for squad(s) |
set <squad> <description> | Set a goal for a squad |
complete <squad> <index> | Mark a goal as completed |
progress <squad> <index> <progress> | Update goal progress (0-100) |
squads memory
Query and manage persistent agent memory.| Command | Description |
|---|---|
query <query> | Search across all squad memory |
show <squad> | Show memory for a squad |
update <squad> <content> | Add to squad memory |
list | List all memory entries |
sync | Sync memory from git |
search <query> | Search conversations in postgres |
extract | Extract memories from recent conversations |
squads kpi
Track and analyze squad KPIs defined in SQUAD.md frontmatter.| Command | Description |
|---|---|
list | List all KPIs across squads |
show <squad> | Show KPI status for a squad |
record <squad> <kpi> <value> | Record a KPI value |
trend <squad> <kpi> | Show KPI trend over time |
insights [squad] | Generate insights from KPI data |
squads learn
Capture learnings that persist across sessions.| Flag | Description |
|---|---|
-s, --squad | Associate with squad (default: general) |
-c, --category | Category: success, failure, pattern, tip |
-t, --tags | Comma-separated tags |
--context | Additional context |
squads learnings
View and search learnings.squads feedback
Record and view execution feedback for continuous improvement.Issues & Progress
squads issues
Show GitHub issues across repos.squads solve-issues
Solve ready-to-fix issues by creating PRs.| Flag | Description |
|---|---|
-r, --repo <repo> | Target repo (hq, agents-squads-web) |
-i, --issue <number> | Specific issue number |
-d, --dry-run | Show what would be solved |
-e, --execute | Execute with Claude CLI |
squads open-issues
Run evaluators/critics to find and create issues.squads progress
Track active and completed agent tasks.squads results
Show squad results: git activity + KPI goals vs actuals.squads history
Show recent agent execution history.squads exec
View execution history and statistics.Cost & Autonomy
squads cost
Show cost summary (today, week, by squad).squads budget
Check budget status for a squad.squads autonomy
Show autonomy score and confidence metrics.Infrastructure
squads stack
Manage local Docker stack (postgres, redis, langfuse, bridge).| Command | Description |
|---|---|
init | Auto-detect Docker containers and configure |
status | Show container health and connection status |
env | Print environment variables for shell export |
up | Start Docker containers |
down | Stop Docker containers |
health | Comprehensive health check with diagnostics |
logs <service> | Show logs for a service |
squads trigger
Manage smart triggers for automated agent execution.squads cron
Manage local cron schedules for agents (macOS only).squads autonomous
Manage autonomous agent execution (scheduler daemon).squads auto.
Integrations
squads slack
Manage Slack integration.squads skill
Manage Agent Skills (Anthropic API).squads approval
Manage approval requests for agent actions.squads permissions
Manage and validate squad permissions.squads perms.
Context & Environment
squads context
Get business context for alignment: goals, memory, costs, activity.squads feed.
squads env
View squad execution environment (MCP, skills, model, budget).squads providers
Show available LLM CLI providers and installation status.squads list
List all agents and squads in the project.Environment Variables
| Variable | Description |
|---|---|
SQUADS_PROJECT_PATH | Override default project path |
SQUADS_CONFIG_PATH | Custom config file location |
SQUADS_PLAN_TYPE | Plan type: max or usage |
DATABASE_URL | PostgreSQL connection string |
REDIS_URL | Redis connection string |
SLACK_BOT_TOKEN | Slack bot token for notifications |
Configuration
The CLI reads configuration from multiple sources:- SQUAD.md frontmatter - Per-squad settings
- .claude/settings.json - Claude Code hooks
- Environment variables - Infrastructure connections
.claude/settings.json for auto-injecting status: