Add default provider configuration for agent CLI

t-339·WorkTask·
·
·
·Omni/Agent.hs
Created4 months ago·Updated4 months ago·pipeline runs →

Description

Edit

Summary

Allow configuring the default provider instead of hardcoding auto-detection order.

Current Behavior

Provider is auto-detected in order: anthropic → openrouter → ollama

Desired Behavior

Config file or env var to set default:

# Option 1: env var
export AGENT_DEFAULT_PROVIDER=claude-code

# Option 2: config file ~/.config/agent/config.yaml
default_provider: claude-code
default_model: claude-sonnet-4

Why

claude-code provider (OAuth) is best and cheapest for users with Claude Max/Pro subscription.

Git Commits

8848d204Omni/Agent: Add AGENT_DEFAULT_PROVIDER env var for default provider
Ben Sima4 months ago1 files

Timeline (2)

🔄[human]Open → InProgress4 months ago
🔄[human]InProgress → Done4 months ago