agents.yaml file is the central registry for all agents in Opperator. It defines how the daemon manages agents: what command to run, environment variables, restart behavior, and more.
Location: ~/.config/opperator/agents.yaml
The Builder agent automatically creates and updates entries in agents.yaml when you bootstrap a new agent. Manual editing is rarely necessary. The daemon automatically detects changes to this file and applies them in real-time - starting new agents, stopping removed agents, and restarting modified ones.
Configuration Examples
- Minimal
- Complete
- Multiple Agents
The bare minimum needed to define an agent:This simple configuration is enough to get started. The agent will run on-demand when you interact with it.
Reference
Unique identifier for the agent. Used in CLI commands, slash commands, and the UI.Requirements:
- Must be unique in agents.yaml
- Lowercase with underscores
- Descriptive (e.g.,
system_monitor, notagent1)
Path to the executable or command name.Options:
Command-line arguments passed to the executable.
Working directory for the agent. Relative paths are resolved from The agent’s Python virtual environment is expected at
~/.config/opperator/.{process_root}/.venv/Short description of what the agent does. Shown in the agent picker and included in the base system prompt. Keep it concise to reduce token usage.
Hex color code for the agent name displayed throughout the TUI.
Environment variables available to the agent process.Important: All values must be strings. Wrap numbers and booleans in quotes.Never store secrets in env! Use the secret manager instead:
Automatically restart the agent if it crashes. Useful for always-on services.
Maximum number of restart attempts when the agent crashes. Use with
auto_restart: true.0= unlimited restarts- Only applies when
auto_restartis enabled
Automatically start this agent when the Opperator daemon starts. Use for monitoring agents, notification handlers, or services that should always be running.
Additional LLM instructions appended to the system prompt when this agent is selected. Multi-line strings are supported with
|.See also
- CLI reference - Complete reference for CLI commands
- Building Your First Agent - Get started with agents
- Installation - Installation and setup guide