Overview
Theuzi.yaml file is the central configuration file for Uzi, placed in your project root directory. It controls how Uzi starts development servers for each agent and manages port allocation.
Both configuration fields are optional. If omitted, Uzi will create agent sessions without starting development servers.
File Location
The configuration file must be nameduzi.yaml and placed in the root of your project directory.
Configuration Fields
The command to start your development server. Use
$PORT as a placeholder that Uzi will replace with an available port number.Important: Include all necessary setup steps (like npm install, pip install, etc.) since each agent runs in an isolated Git worktree with its own dependencies.The range of ports Uzi can allocate for development servers, in the format
start-end.Example: 3000-3010 allows Uzi to use ports from 3000 to 3010 (inclusive).Configuration Examples
How Configuration is Loaded
Uzi loads the configuration when you runuzi prompt:
- Looks for
uzi.yamlin the project root (default location) - Can be overridden with
--configflag:uzi prompt --config path/to/config.yaml - If the file is missing or has errors, Uzi logs a warning and proceeds without dev server setup
Missing configuration file is not an error. Uzi will simply skip development server startup and create agent sessions normally.
Optional vs Required Fields
BothdevCommand and portRange are optional:
- If both are set: Uzi starts a development server for each agent on a unique port
- If either is missing: Uzi skips dev server setup and only creates the agent worktree and tmux session
- If portRange is invalid: Uzi logs a warning and skips dev server for that agent
Validation
Uzi validates the configuration at runtime:- Port range format: Must be in format
start-end(e.g.,3000-3010) - Port range values: Start port must be less than or equal to end port
- Port availability: Uzi checks each port in the range to find an available one
- Invalid configuration: Logged as warnings, does not stop agent creation
Related
- Dev Command Configuration - Deep dive into devCommand
- Port Management - How Uzi allocates and manages ports