Configuration

ayo uses two directories: one for configuration and one for data. Configuration is human-editable; data is managed by ayo.

Directory Structure

~/.config/ayo/ # Configuration (user-editable) ├── ayo.json # Main config ├── agents/ # User-defined agents │ └── @myagent/ │ ├── config.json │ └── system.md ├── skills/ # User-defined skills ├── flows/ # User-defined flows └── prompts/ # Custom prefix/suffix prompts ~/.local/share/ayo/ # Data (managed by ayo) ├── ayo.db # SQLite database ├── agents/ # Built-in agents ├── skills/ # Built-in skills ├── plugins/ # Installed plugins ├── sessions/ # Session data │ └── {session-id}/.tickets/ # Per-session tickets └── sandboxes/ ├── squads/ # Squad sandboxes └── pool/ # Pre-warmed containers

Main Config (ayo.json)

Location: ~/.config/ayo/ayo.json

{ "default_model": "claude-sonnet-4-20250514", "provider": { "name": "anthropic" }, "delegates": { "research": "@researcher", "writing": "@writer" } }

Fields

FieldTypeDescription
default_modelstringModel to use when not specified
provider.namestringAPI provider: anthropic, openai, openrouter
delegatesobjectDefault agents for delegation by topic

Environment Variables

API Keys

VariableDescription
ANTHROPIC_API_KEYAnthropic API key (recommended)
OPENAI_API_KEYOpenAI API key
OPENROUTER_API_KEYOpenRouter API key

Directories

VariableDefaultDescription
AYO_CONFIG~/.config/ayoConfig directory
AYO_HOME~/.local/share/ayoData directory

Provider Configuration

Anthropic

export ANTHROPIC_API_KEY="sk-ant-..."
// ayo.json { "provider": { "name": "anthropic" }, "default_model": "claude-sonnet-4-20250514" }

OpenAI

export OPENAI_API_KEY="sk-..."
// ayo.json { "provider": { "name": "openai" }, "default_model": "gpt-4o" }

OpenRouter

export OPENROUTER_API_KEY="sk-or-..."
// ayo.json { "provider": { "name": "openrouter" }, "default_model": "anthropic/claude-3.5-sonnet" }

Model Names

Anthropic Models

OpenAI Models

Precedence

Configuration is loaded in this order (later overrides earlier):

  1. Built-in defaults
  2. ~/.config/ayo/ayo.json
  3. Environment variables
  4. Command-line flags