Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration Overview

Nia’s configuration system provides a flexible, hierarchical approach to customizing behavior across projects and teams. Configuration files control AI agent selection, development tool integration, project metadata, and workflow customization.

Configuration Files

Nia uses TOML-based configuration files stored in .nia/config/:

FilePurposeLocation
project.tomlProject metadata and settings.nia/config/project.toml
agents.tomlAI agent selection and model configuration.nia/config/agents.toml
toolchain.tomlDevelopment tools (issue trackers, code platforms).nia/config/toolchain.toml
commands.tomlWorkflow command customizations.nia/config/commands.toml

Getting Started

  1. Initialize configuration: nia config init
  2. Edit .nia/config/project.toml with project metadata
  3. Configure your toolchain in .nia/config/toolchain.toml
  4. Validate configuration: nia config validate

Configuration Hierarchy

Nia loads configuration from multiple locations (highest priority first):

  1. Repository (.nia/config/)
  2. Application (multi-repo scenarios)
  3. User (~/.config/nia/)
  4. System (/etc/nia/)

Settings from higher-priority sources override those from lower-priority sources. By default, only repository configuration is loaded; external sources must be explicitly enabled in project.toml for security reasons.

See Hierarchical Loading for details on multi-source configuration.