/ orchestrator_with_keys.py
orchestrator_with_keys.py
1 #!/usr/bin/env python3 2 """ 3 AI ORCHESTRATOR WITH BUILT-IN KEYS 4 No need to set environment variables externally 5 """ 6 7 import os 8 import sys 9 10 # SET KEYS DIRECTLY IN THE SCRIPT 11 os.environ['OPENROUTER_API_KEY'] = "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" 12 os.environ['HUGGINGFACE_TOKEN'] = "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" 13 os.environ['GROQ_API_KEY'] = "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" 14 15 # Now import and run the cloud orchestrator 16 import subprocess 17 18 if __name__ == "__main__": 19 if len(sys.argv) < 2: 20 print("Usage: python orchestrator_with_keys.py \"Your query here\"") 21 sys.exit(1) 22 23 query = " ".join(sys.argv[1:]) 24 25 print("="*60) 26 print("🔑 KEYS PRE-LOADED - STARTING ORCHESTRATION") 27 print("="*60) 28 29 # Run the cloud orchestrator 30 result = subprocess.run( 31 [sys.executable, "cloud_orchestrator.py", query], 32 capture_output=True, 33 text=True 34 ) 35 36 print(result.stdout) 37 if result.stderr: 38 print("Errors:", result.stderr[:200])