Local development CLI for kubeswarm - run, test and debug AI agent pipelines without a Kubernetes cluster.
Uses the same YAML files as kubectl apply. No cluster required.
Full documentation at docs.kubeswarm.io.
go install github.com/kubeswarm/kubeswarm-cli/cmd/swarm@latestOr download a pre-built binary from the releases page.
# Run a pipeline locally with a real LLM
swarm run my-team.yaml
# Run with mock responses (no API key needed)
swarm run my-team.yaml --provider mock
# Validate YAML without running
swarm validate my-team.yaml
# Stream step-by-step output
swarm run my-team.yaml --watch
# Machine-readable output for CI
swarm run my-team.yaml --output json| Command | Description |
|---|---|
swarm run <file> |
Execute an SwarmTeam pipeline locally |
swarm run --provider mock |
Run with fake LLM responses |
swarm run --dry-run |
Validate YAML and estimate token cost |
swarm run --watch |
Stream step-by-step output inline |
swarm run --no-mcp |
Skip MCP tool connections |
swarm run --output json |
Machine-readable output for CI |
swarm validate <file> |
Validate YAML structure and DAG |
swarm operator install |
Install kubeswarm into a cluster via Helm |
swarm operator upgrade |
Upgrade an existing kubeswarm installation |
swarm trigger <team> |
Trigger a team pipeline in-cluster |
swarm status |
Show status of running pipelines |
swarm logs <run> |
Tail logs from a running pipeline |
| Flag | Description |
|---|---|
--provider auto |
Auto-detect from model name (default) |
--provider anthropic |
Force Anthropic Claude |
--provider openai |
Force OpenAI / compatible endpoint |
--provider mock |
Fake responses - no API key needed |
Set OPENAI_BASE_URL to use any OpenAI-compatible endpoint (Ollama, vLLM, etc.).
Step "research" [running] ──────────────────── 4.2s
Step "research" [done] 1,204 tokens 2.1s
└─ "Here are 3 key findings about Kubernetes operator patterns..."
Step "summarize" [done] 312 tokens 1.8s
└─ "• Operators extend the Kubernetes API via CRDs..."
Run succeeded in 9.1s - total: 1,516 tokens
- kubeswarm - the Kubernetes operator
- cookbook - example pipelines
- helm-charts - Helm chart for cluster deployment
See CONTRIBUTING.md.
This project follows the Contributor Covenant Code of Conduct.
Apache 2.0 - see LICENSE.