@@ -228,6 +228,9 @@ func setProviderDefaults() {
228 if apiKey := os.Getenv("GROQ_API_KEY"); apiKey != "" {
228 if apiKey := os.Getenv("GROQ_API_KEY"); apiKey != "" {
229 viper.SetDefault("providers.groq.apiKey", apiKey)
229 viper.SetDefault("providers.groq.apiKey", apiKey)
231+ if apiKey := os.Getenv("OPENROUTER_API_KEY"); apiKey != "" {
232+ viper.SetDefault("providers.openrouter.apiKey", apiKey)
232 // Use this order to set the default models
235 // Use this order to set the default models
233 // 1. Anthropic
236 // 1. Anthropic