Documentation Index
Fetch the complete documentation index at: https://docs.swarms.world/llms.txt
Use this file to discover all available pages before exploring further.
CLI Commands Reference
This page provides detailed documentation for all Swarms CLI commands, including their parameters, usage examples, and common use cases.Setup & Configuration Commands
onboarding
Run a comprehensive environment setup check to verify your Swarms installation. Usage:--verbose(optional) - Show detailed diagnostics and version detection steps
- Python version (requires 3.10+)
- Swarms version
- API key configuration
- Required dependencies (torch, transformers, litellm, rich)
- Environment file (.env)
- Workspace directory (WORKSPACE_DIR)
setup-check
Identical toonboarding. Runs comprehensive environment setup checks.
Usage:
--verbose(optional) - Enable detailed output
get-api-key
Open your browser to retrieve API keys from the Swarms platform. Usage:https://swarms.world/platform/api-keys in your default browser.
check-login
Verify authentication status and initialize the authentication cache. Usage:Agent Creation & Execution Commands
agent
Create and run a custom agent with specified parameters. The task parameter is optional - if not provided, the agent runs in interactive mode by default. Usage:--name- Name of the agent--description- Description of the agent’s purpose--system-prompt- System prompt defining agent behavior (can use--marketplace-prompt-idinstead)
--task- Task to execute (if omitted, runs in interactive mode)--model-name- LLM model to use (default: “gpt-4”)--temperature- Temperature setting (0.0-2.0)--max-loops- Maximum loops (integer or “auto” for autonomous)--interactive- Enable interactive mode (default: True)--no-interactive- Disable interactive mode--verbose- Enable verbose output--streaming-on- Enable streaming mode--context-length- Context window size--retry-attempts- Number of retry attempts--return-step-meta- Return step metadata--dashboard- Enable dashboard--autosave- Enable autosave--saved-state-path- Path for saving agent state--user-name- Username for the agent--mcp-url- MCP URL for the agent--marketplace-prompt-id- Fetch system prompt from marketplace--auto-generate-prompt- Enable auto-generation of prompts--dynamic-temperature-enabled- Enable dynamic temperature adjustment--dynamic-context-window- Enable dynamic context window--output-type- Output type (e.g., “str”, “json”)
chat
Start an interactive chat agent with optimized defaults for conversation. Uses autonomous loops (max_loops="auto") by default.
Usage:
--name- Agent name (default: “Swarms Agent”)--description- Agent description (default: “A Swarms agent that can chat with the user”)--system-prompt- Custom system prompt--task- Initial task/message to start the conversation
run-agents
Execute agents from a YAML configuration file. Usage:--yaml-file- Path to YAML configuration file (default: “agents.yaml”)
load-markdown
Load agents from markdown files with YAML frontmatter. Usage:--markdown-path- Path to markdown file or directory
--concurrent- Enable concurrent processing (default: True)
Swarm Operations Commands
autoswarm
Generate and execute an autonomous swarm configuration based on a task. Usage:--task- Task description for the swarm--model- Model name for swarm generation (e.g., “gpt-4”)
heavy-swarm
Run HeavySwarm with specialized agents for complex task analysis. HeavySwarm breaks down tasks into questions and uses worker agents to process them. Usage:--task- Task for HeavySwarm to process
--loops-per-agent- Number of execution loops per agent (default: 1)--question-agent-model-name- Model for question generation (default: “gpt-5.4”)--worker-model-name- Model for worker agents (default: “gpt-5.4”)--random-loops-per-agent- Enable random loops (1-10 range)--verbose- Enable verbose output
llm-council
Run the LLM Council where multiple agents collaborate on a task, providing different perspectives and evaluating responses. Usage:--task- Task or question for the council to process
--verbose- Show verbose output (default: True)
Utility Commands
help
Display comprehensive help message with all commands and parameters. Usage:features
Display all available features and actions in a comprehensive table. Usage:upgrade
Update Swarms to the latest version. Usage:pip install --upgrade swarms
Command Categories
| Category | Commands |
|---|---|
| Setup | onboarding, setup-check, get-api-key, check-login |
| Agent Operations | agent, chat, run-agents, load-markdown |
| Swarm Operations | autoswarm, heavy-swarm, llm-council |
| Utilities | help, features, upgrade |
Common Flags
Many commands support these common flags:--verbose- Enable detailed output--task- Specify a task to execute--model-name- Specify the LLM model--temperature- Control randomness (0.0-2.0)--max-loops- Set iteration limits
Next Steps
Configuration
Learn how to configure agents using YAML files
CLI Overview
Return to CLI overview and quick start guide