Skip to main content
The 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:
The wizard will:
  1. Detect Environment - Check for Git repository, tmux, GitHub CLI
  2. Basic Configuration - Set data directory, worktree directory, dashboard port
  3. Default Plugins - Choose runtime, agent, workspace, and notifiers
  4. First Project - Configure your initial project
  5. Issue Tracker - Set up GitHub or Linear integration
  6. 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:
Auto mode:
  • 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:
Smart mode requires --auto. It cannot be used with interactive mode.
Smart mode:
  • 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:
Missing prerequisites show as warnings but don’t prevent config creation. Install them before running ao start.

Common Issues

Config Already Exists

Solution: Delete the existing file or use --output with a different path.

Invalid Port

Solution: Enter a valid port number between 1 and 65535.

tmux Not Found

Solution: Install tmux before starting the orchestrator:

GitHub CLI Not Authenticated

Solution: Authenticate GitHub CLI:

Examples

Basic Setup

Quick Setup

Project Analysis

Custom Location

Exit Codes

  • 0 - Config created successfully
  • 1 - Error (file exists, invalid input, missing prerequisites)

Next Steps

Start Orchestrator

Launch the orchestrator and dashboard

Configuration

Learn about all configuration options