Get up and running with Claude-Flow in just a few minutes! This guide will walk you through installation, basic configuration, and your first agent orchestration.
- Node.js 18+ or Deno 1.40+
- Terminal access (Command Prompt, PowerShell, Terminal, etc.)
- Internet connection for package installation
Run Claude-Flow instantly without installation:
npx claude-flowThis will download and run the latest version, perfect for trying out the system.
Install globally for permanent access:
npm install -g claude-flowVerify installation:
claude-flow --versionFor Deno users:
deno install --allow-all --name claude-flow https://raw.githubusercontent.com/ruvnet/claude-code-flow/main/src/cli/index.tsCreate your first configuration file:
claude-flow config initThis creates a claude-flow.config.json file in your current directory with sensible defaults:
{
"orchestrator": {
"maxConcurrentAgents": 5,
"taskQueueSize": 50,
"healthCheckInterval": 30000
},
"memory": {
"backend": "sqlite",
"cacheSizeMB": 100,
"conflictResolution": "crdt"
},
"terminal": {
"type": "auto",
"poolSize": 3,
"commandTimeout": 300000
}
}Launch the Claude-Flow system:
claude-flow startYou should see output like:
🧠 Claude-Flow v1.0.0 - Advanced AI Agent Orchestration System
✅ Configuration loaded: ./claude-flow.config.json
✅ Memory system initialized (SQLite backend)
✅ Terminal pool created (3 terminals)
✅ MCP server started on stdio transport
✅ Orchestrator ready - Listening for commands
Press Ctrl+C to stop
Keep the orchestrator running and open a new terminal window for commands.
Create your first AI agent:
claude-flow agent spawn researcher --name "Research Assistant" --description "Helps with research tasks"Expected output:
✅ Agent spawned successfully
Agent ID: agent_1704123456789_researcher
Name: Research Assistant
Type: researcher
Status: active
Terminal: terminal_1
See all your agents:
claude-flow agent listOutput:
┌──────────────────────────────────┬─────────────────────┬────────────┬──────────┬─────────────┐
│ Agent ID │ Name │ Type │ Status │ Terminal │
├──────────────────────────────────┼─────────────────────┼────────────┼──────────┼─────────────┤
│ agent_1704123456789_researcher │ Research Assistant │ researcher │ active │ terminal_1 │
└──────────────────────────────────┴─────────────────────┴────────────┴──────────┴─────────────┘
Assign work to your agent:
claude-flow task create research "Research the latest developments in large language models in 2024" --assign-to agent_1704123456789_researcherOutput:
✅ Task created successfully
Task ID: task_1704123456790_research
Type: research
Description: Research the latest developments in large language models in 2024
Status: pending
Assigned to: agent_1704123456789_researcher
Priority: normal
Check task status:
claude-flow task status task_1704123456790_researchWatch live updates:
claude-flow task status task_1704123456790_research --watchOnce completed, view the results:
claude-flow task list --status completedFor an interactive experience, use the REPL mode:
claude-flow replThis opens an interactive prompt where you can run commands without prefixing claude-flow:
🧠 Claude-Flow REPL v1.0.0
Type 'help' for available commands or 'exit' to quit.
claude-flow> agent list
claude-flow> task create analysis "Analyze the research findings"
claude-flow> memory query --category research
claude-flow> exit
View what your agents have learned:
claude-flow memory query --category research --limit 5Save agent memories for backup or sharing:
claude-flow memory export research-backup.json --category researchSee memory usage and statistics:
claude-flow memory statsOutput:
📊 Memory Statistics
Total Items: 15
Categories:
- research: 8 items
- analysis: 4 items
- task: 3 items
Storage:
- Backend: SQLite
- Size: 2.3 MB
- Cache Hit Rate: 87.5%
- Last Sync: 2 minutes ago
Here's a complete workflow to demonstrate Claude-Flow's capabilities:
# Spawn different types of agents
claude-flow agent spawn researcher --name "Data Researcher"
claude-flow agent spawn analyst --name "Data Analyst"
claude-flow agent spawn coordinator --name "Project Manager"Create research-workflow.json:
{
"name": "AI Research Workflow",
"description": "Comprehensive AI research and analysis",
"tasks": [
{
"id": "research-phase",
"type": "research",
"description": "Research current AI trends and breakthrough technologies",
"assignTo": "researcher",
"priority": "high",
"timeout": 600000
},
{
"id": "analysis-phase",
"type": "analysis",
"description": "Analyze research findings and identify key patterns",
"dependencies": ["research-phase"],
"assignTo": "analyst",
"priority": "high"
},
{
"id": "report-phase",
"type": "report",
"description": "Create comprehensive report with recommendations",
"dependencies": ["analysis-phase"],
"assignTo": "coordinator",
"priority": "normal"
}
]
}claude-flow workflow execute research-workflow.jsonclaude-flow workflow status research-workflow --watchNow that you have Claude-Flow running, explore these advanced features:
- Configuration Guide - Customize Claude-Flow behavior
- Memory System - Advanced memory management
- Terminal Integration - Terminal customization
- Agent Management - Advanced agent features
- Task Orchestration - Complex workflows
- Examples - Real-world scenarios
- MCP Integration - Tool integration
- API Reference - Programmatic usage
- Deployment Guide - Production setup
Here are the most frequently used commands:
# System Management
claude-flow start # Start orchestrator
claude-flow status # System status
claude-flow config show # View configuration
# Agent Management
claude-flow agent spawn <type> # Create agent
claude-flow agent list # List agents
claude-flow agent terminate <id> # Stop agent
# Task Management
claude-flow task create <type> <desc> # Create task
claude-flow task list # List tasks
claude-flow task status <id> # Task status
# Memory Management
claude-flow memory query # Query memory
claude-flow memory stats # Memory statistics
claude-flow memory export <file> # Export data
# Interactive Mode
claude-flow repl # Start REPL modeIf you encounter any issues:
- Check the logs: Add
--verboseto any command for detailed output - Validate configuration: Run
claude-flow config validate - System status: Run
claude-flow statusto check system health - Documentation: Visit the Troubleshooting Guide
- Community: Ask questions in GitHub Discussions
You're now ready to explore Claude-Flow's full capabilities! Consider:
- Setting up custom agent types
- Creating complex workflows
- Integrating with external tools
- Deploying to production environments
Happy orchestrating! 🚀