init command walks you through creating a configuration file for Agent Orchestrator. It detects your environment (Git repository, GitHub CLI, tmux) and generates a working configuration.
Syntax
Options
string
default:"agent-orchestrator.yaml"
Output file path for the configuration
flag
Auto-generate config with sensible defaults (no prompts)
flag
Analyze project and generate custom rules (requires
--auto)Interactive Mode
Default behavior — prompts for all configuration values:- Detect Environment - Check for Git repository, tmux, GitHub CLI
- Basic Configuration - Set data directory, worktree directory, dashboard port
- Default Plugins - Choose runtime, agent, workspace, and notifiers
- First Project - Configure your initial project
- Issue Tracker - Set up GitHub or Linear integration
- Validation - Verify all prerequisites are met
Environment Detection
The wizard automatically detects:- Git repository and remote URL
- Current and default branch
- tmux availability
- GitHub CLI installation and authentication
- Environment variables (
LINEAR_API_KEY,SLACK_WEBHOOK_URL)
Example Interactive Session
Auto Mode
Generate configuration without prompts:- Uses sensible defaults for all values
- Detects project type (languages, frameworks)
- Finds free port for dashboard
- Creates configuration immediately
Auto mode is useful for scripting or when you want to manually edit the config afterward.
Auto Mode Output
Smart Mode
Analyze project and generate custom agent rules:- Detects project type (TypeScript, React, Next.js, etc.)
- Generates project-specific agent rules
- Adds rules to the configuration
Generated Rules Example
Custom Output Path
Write configuration to a custom location:If the output file already exists,
ao init will exit with an error. Delete the existing file first or specify a different path.Port Selection
The wizard automatically finds a free port:- Default port:
3000 - If busy, scans up to 10 ports (3000-3009)
- Prompts for manual entry if all are busy
Validation
The wizard validates your setup:Common Issues
Config Already Exists
--output with a different path.
Invalid Port
tmux Not Found
GitHub CLI Not Authenticated
Examples
Basic Setup
Quick Setup
Project Analysis
Custom Location
Exit Codes
0- Config created successfully1- Error (file exists, invalid input, missing prerequisites)
Next Steps
Start Orchestrator
Launch the orchestrator and dashboard
Configuration
Learn about all configuration options
