diff --git a/internal/config/config.go b/internal/config/config.go index 22781e18983f729fd95f6c9918cd20906ac0b314..482e71c8d147b6ef70edc65469c401cc7288b00d 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -228,6 +228,9 @@ func setProviderDefaults() { if apiKey := os.Getenv("GROQ_API_KEY"); apiKey != "" { viper.SetDefault("providers.groq.apiKey", apiKey) } + if apiKey := os.Getenv("OPENROUTER_API_KEY"); apiKey != "" { + viper.SetDefault("providers.openrouter.apiKey", apiKey) + } // Use this order to set the default models // 1. Anthropic