agentic-flow 1.9.1 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,12 @@ const CONFIG_DEFINITIONS = [
21
21
  required: false,
22
22
  validation: (val) => val.startsWith('sk-or-') || 'Must start with sk-or-'
23
23
  },
24
+ {
25
+ key: 'GOOGLE_GEMINI_API_KEY',
26
+ value: '',
27
+ description: 'Google Gemini API key for Gemini models',
28
+ required: false
29
+ },
24
30
  {
25
31
  key: 'COMPLETION_MODEL',
26
32
  value: 'claude-sonnet-4-5-20250929',
@@ -30,9 +36,9 @@ const CONFIG_DEFINITIONS = [
30
36
  {
31
37
  key: 'PROVIDER',
32
38
  value: 'anthropic',
33
- description: 'Default provider (anthropic, openrouter, onnx)',
39
+ description: 'Default provider (anthropic, openrouter, gemini, onnx)',
34
40
  required: false,
35
- validation: (val) => ['anthropic', 'openrouter', 'onnx'].includes(val) || 'Must be anthropic, openrouter, or onnx'
41
+ validation: (val) => ['anthropic', 'openrouter', 'gemini', 'onnx'].includes(val) || 'Must be anthropic, openrouter, gemini, or onnx'
36
42
  },
37
43
  {
38
44
  key: 'AGENTS_DIR',
@@ -231,15 +237,17 @@ export class ConfigWizard {
231
237
  console.log('📊 Configuration Summary:\n');
232
238
  const hasAnthropic = this.currentConfig.has('ANTHROPIC_API_KEY');
233
239
  const hasOpenRouter = this.currentConfig.has('OPENROUTER_API_KEY');
240
+ const hasGemini = this.currentConfig.has('GOOGLE_GEMINI_API_KEY');
234
241
  const provider = this.currentConfig.get('PROVIDER') || 'anthropic';
235
242
  console.log('Providers configured:');
236
243
  console.log(` ${hasAnthropic ? '✅' : '❌'} Anthropic (Claude)`);
237
244
  console.log(` ${hasOpenRouter ? '✅' : '❌'} OpenRouter (Alternative models)`);
245
+ console.log(` ${hasGemini ? '✅' : '❌'} Gemini (Google AI)`);
238
246
  console.log(` ⚙️ ONNX (Local inference) - always available`);
239
247
  console.log('');
240
248
  console.log(`Default provider: ${provider}`);
241
249
  console.log('');
242
- if (!hasAnthropic && !hasOpenRouter) {
250
+ if (!hasAnthropic && !hasOpenRouter && !hasGemini) {
243
251
  console.log('⚠️ Warning: No API keys configured!');
244
252
  console.log(' You can use ONNX local inference, but quality may be limited.');
245
253
  console.log(' Run with --provider onnx to use local inference.\n');
@@ -339,8 +347,9 @@ EXAMPLES:
339
347
  AVAILABLE CONFIGURATION KEYS:
340
348
  ANTHROPIC_API_KEY - Anthropic API key (sk-ant-...)
341
349
  OPENROUTER_API_KEY - OpenRouter API key (sk-or-v1-...)
350
+ GOOGLE_GEMINI_API_KEY - Google Gemini API key
342
351
  COMPLETION_MODEL - Default model name
343
- PROVIDER - Default provider (anthropic, openrouter, onnx)
352
+ PROVIDER - Default provider (anthropic, openrouter, gemini, onnx)
344
353
  AGENTS_DIR - Custom agents directory
345
354
  PROXY_PORT - Proxy server port (default: 3000)
346
355
  USE_OPENROUTER - Force OpenRouter (true/false)
package/dist/cli-proxy.js CHANGED
@@ -1058,26 +1058,33 @@ OPTIMIZATION BENEFITS:
1058
1058
  📊 10+ Models: Claude, GPT-4o, Gemini, DeepSeek, Llama, ONNX local
1059
1059
  ⚡ Zero Overhead: <5ms decision time, no API calls during optimization
1060
1060
 
1061
- PROXY MODE (Claude Code CLI Integration):
1062
- The OpenRouter proxy allows Claude Code to use alternative models via API translation.
1061
+ TWO WAYS TO USE AGENTIC-FLOW:
1063
1062
 
1064
- Terminal 1 - Start Proxy Server:
1065
- npx agentic-flow proxy
1066
- # Or with custom port: PROXY_PORT=8080 npx agentic-flow proxy
1067
- # Proxy runs at http://localhost:3000 by default
1063
+ 1️⃣ DIRECT AGENT EXECUTION (agentic-flow agents)
1064
+ Run agents directly in your terminal with full control:
1068
1065
 
1069
- Terminal 2 - Use with Claude Code:
1070
- export ANTHROPIC_BASE_URL="http://localhost:3000"
1071
- export ANTHROPIC_API_KEY="sk-ant-proxy-dummy-key"
1072
- export OPENROUTER_API_KEY="sk-or-v1-xxxxx"
1066
+ npx agentic-flow --agent coder --task "Create Python script"
1067
+ npx agentic-flow --agent researcher --task "Research AI trends"
1073
1068
 
1074
- # Now Claude Code will route through OpenRouter proxy
1075
- claude-code --agent coder --task "Create API"
1069
+ This runs agentic-flow's 80+ specialized agents directly.
1076
1070
 
1077
- Proxy automatically translates Anthropic API calls to OpenRouter format.
1078
- Model override happens automatically: Claude requests OpenRouter models.
1071
+ 2️⃣ CLAUDE CODE INTEGRATION (proxy for Claude Code CLI)
1072
+ Use Claude Code CLI with OpenRouter/Gemini models via proxy:
1079
1073
 
1080
- Benefits for Claude Code users:
1074
+ # Option A: Auto-spawn Claude Code with proxy (easiest)
1075
+ npx agentic-flow claude-code --provider openrouter "Build API"
1076
+
1077
+ # Option B: Manual proxy setup (advanced)
1078
+ Terminal 1 - Start Proxy:
1079
+ npx agentic-flow proxy --provider openrouter
1080
+
1081
+ Terminal 2 - Configure Claude Code:
1082
+ export ANTHROPIC_BASE_URL="http://localhost:3000"
1083
+ export ANTHROPIC_API_KEY="sk-ant-proxy-dummy-key"
1084
+ export OPENROUTER_API_KEY="sk-or-v1-xxxxx"
1085
+ claude # Now uses OpenRouter via proxy
1086
+
1087
+ Benefits of proxy mode:
1081
1088
  • 85-99% cost savings vs Claude Sonnet 4.5
1082
1089
  • Access to 100+ models (DeepSeek, Llama, Gemini, etc.)
1083
1090
  • Leaderboard tracking on OpenRouter
@@ -203,7 +203,7 @@ export class SwarmLearningOptimizer {
203
203
  {
204
204
  topology: topology === 'mesh' ? 'hierarchical' : 'mesh',
205
205
  confidence: 0.5,
206
- reasoning: 'Alternative topology if default doesn', t, perform, well, ':
206
+ reasoning: 'Alternative topology if default does not perform well'
207
207
  }
208
208
  ]
209
209
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-flow",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Production-ready AI agent orchestration platform with 66 specialized agents, 213 MCP tools, ReasoningBank learning memory, and autonomous multi-agent swarms. Built by @ruvnet with Claude Agent SDK, neural networks, memory persistence, GitHub integration, and distributed consensus protocols.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",