Configuration

You2AgentAI supports both file-based and programmatic configuration.

Config File (you2agentai.yaml)

provider:
  default: openai
  openai:
    model: gpt-4o-mini
    temperature: 0.3
    max_tokens: 2048

storage:
  backend: sqlite
  path: ./data/you2agentai.db

Environment Variable Overrides

All configuration values can be overridden with environment variables using the YOU2AGENTAI_ prefix:

YOU2AGENTAI_PROVIDER_DEFAULT=anthropic
YOU2AGENTAI_STORAGE_BACKEND=postgres

Provider Selection at Runtime

You can override the default provider per pipeline by passing provider="anthropic" to Pipeline(...). This is useful for running cost-sensitive batch jobs on a cheaper model.