UNPKG

behemoth-cli

Version:

🌍 BEHEMOTH CLIv3.760.4 - Level 50+ POST-SINGULARITY Intelligence Trading AI

387 lines (322 loc) 10.8 kB
import { BaseCommand } from '../base.js'; class HowtoCommand extends BaseCommand { command = 'howto'; description = 'Complete setup guide for non-technical users'; async handler(context) { const { addMessage, parsedArgs } = context; const topic = parsedArgs?.[0]?.toLowerCase() || 'setup'; switch (topic) { case 'setup': case 'start': case 'install': this.showSetupGuide(addMessage); break; case 'providers': case 'api': case 'keys': this.showProviderSetup(addMessage); break; case 'n8n': case 'automation': this.showN8nSetup(addMessage); break; case 'trading': case 'commands': this.showTradingCommands(addMessage); break; case 'cosmic': this.showCosmicFeatures(addMessage); break; default: this.showTopics(addMessage); } } showSetupGuide(addMessage) { const guide = `# 🚀 BEHEMOTH CLI - Complete Setup Guide ## 📦 Step 1: Installation You've already installed BEHEMOTH! If you're seeing this, you're ready to configure. ## 🔑 Step 2: Get Your API Keys You'll need API keys from AI providers to power BEHEMOTH's analysis: **Option A: Free Groq API (Recommended for beginners)** 1. Go to: https://console.groq.com/ 2. Create a free account 3. Go to "API Keys" section 4. Click "Create API Key" 5. Copy the key (starts with "gsk_...") **Option B: OpenRouter API (Access to Claude, GPT-4, etc.)** 1. Go to: https://openrouter.ai/ 2. Create account and add $5-10 credit 3. Go to "Keys" section 4. Create new key 5. Copy the key ## ⚙️ Step 3: Configure BEHEMOTH Run the setup wizard: \`\`\` behemoth setup \`\`\` Follow the prompts to: - Choose your AI provider (Groq/OpenRouter/DeepSeek) - Enter your API key - Select your preferred model ## ✅ Step 4: Test Your Setup Try these commands: \`\`\` behemoth -p "analyze Bitcoin price" behemoth -p "what's the market sentiment?" \`\`\` ## 🎯 Next Steps - Use \`/howto providers\` for detailed API setup - Use \`/howto n8n\` for automation setup - Use \`/howto trading\` for trading commands **Need help?** Every command has a help option: \`behemoth /help\` or \`behemoth -h\``; addMessage({ role: 'system', content: guide }); } showProviderSetup(addMessage) { const guide = `# 🔑 AI Provider Setup Guide ## 🚀 Groq (Free & Fast) **Best for beginners - Free tier with fast responses** 1. **Create Account**: https://console.groq.com/ 2. **Get API Key**: - Click "API Keys" in sidebar - Click "Create API Key" - Give it a name like "BEHEMOTH" - Copy the key (starts with "gsk_...") 3. **Add to BEHEMOTH**: \`\`\` behemoth /model groq behemoth /keys set groq gsk_your_key_here \`\`\` ## 🧠 OpenRouter (Premium Models) **Access Claude 3.5 Sonnet, GPT-4, and more** 1. **Create Account**: https://openrouter.ai/ 2. **Add Credits**: - Go to "Credits" tab - Add $5-10 for testing - Claude 3.5 Sonnet costs ~$3 per million tokens 3. **Get API Key**: - Go to "Keys" tab - Click "Create Key" - Copy the key (starts with "sk-or-...") 4. **Add to BEHEMOTH**: \`\`\` behemoth /model openrouter behemoth /keys set openrouter sk-or-your_key_here \`\`\` ## 🤖 DeepSeek (Reasoning) **Specialized for complex analysis** 1. **Create Account**: https://platform.deepseek.com/ 2. **Get API Key**: Similar process to above 3. **Add to BEHEMOTH**: \`\`\` behemoth /model deepseek behemoth /keys set deepseek your_key_here \`\`\` ## 📊 Check Your Configuration \`\`\` behemoth /config \`\`\` Shows your current provider and model settings.`; addMessage({ role: 'system', content: guide }); } showN8nSetup(addMessage) { const guide = `# 🔄 N8N Automation Setup Guide N8N lets you create automated trading workflows and alerts without coding! ## 📦 Step 1: Install N8N **Option A: Docker (Recommended)** \`\`\`bash docker run -it --rm --name n8n -p 5678:5678 n8nio/n8n \`\`\` **Option B: NPM** \`\`\`bash npm install n8n -g n8n start \`\`\` ## 🌐 Step 2: Access N8N Open browser to: http://localhost:5678 - Create your admin account - Note down your username/password ## 🔑 Step 3: Get N8N API Key 1. In N8N interface, go to "Settings" → "API" 2. Enable API access 3. Create new API key 4. Copy the key ## ⚙️ Step 4: Connect BEHEMOTH to N8N \`\`\` behemoth /n8n config baseUrl http://localhost:5678 behemoth /n8n config apiKey your_n8n_api_key_here behemoth /n8n config enabled true \`\`\` ## ✅ Step 5: Test Connection \`\`\` behemoth /n8n status \`\`\` Should show "n8n instance is healthy" ## 🤖 Step 6: Create Your First Workflow \`\`\` behemoth -p "create n8n workflow for BTC price alerts" \`\`\` Or manually: \`\`\` behemoth /n8n create "BTC Alerts" "Price monitoring for Bitcoin" \`\`\` ## 📡 SuperCode Node Setup BEHEMOTH works best with the SuperCode node: 1. In N8N, go to "Credentials" → "Add New" 2. Search for "@kenkaiii/n8n-nodes-supercode" 3. Install the SuperCode node package 4. Now your workflows can run custom JavaScript safely ## 🎯 Pre-built Workflows BEHEMOTH includes ready-to-use workflows: \`\`\` behemoth /n8n list behemoth /n8n deploy "Smart Crypto Alert System" \`\`\` **Need help?** Check N8N docs: https://docs.n8n.io/`; addMessage({ role: 'system', content: guide }); } showTradingCommands(addMessage) { const guide = `# 📈 Trading Commands Guide ## 🎯 Basic Analysis Commands **Single prompt mode (fastest)**: \`\`\` behemoth -p "analyze Bitcoin" behemoth -p "what's BTC RSI?" behemoth -p "market sentiment for ETH" behemoth -p "sacred geometry analysis Bitcoin" \`\`\` ## 📊 Technical Analysis \`\`\` behemoth /technical rsi BTCUSDT behemoth /technical macd ETHUSDT behemoth /technical bollinger SOLUSDT \`\`\` ## 🌌 Cosmic Intelligence \`\`\` behemoth /cosmic planetary BTCUSDT behemoth -p "lunar phase analysis" behemoth -p "cosmic sacred geometry patterns" \`\`\` ## 😨 Market Sentiment \`\`\` behemoth /sentiment fear_greed behemoth -p "what is market sentiment for BTC?" \`\`\` ## 🎨 Chart Patterns \`\`\` behemoth -p "detect chart patterns for BTC" behemoth -p "head and shoulders pattern Bitcoin" \`\`\` ## 🧠 Intelligence Routing \`\`\` behemoth -p "Professor Synapse analyze Bitcoin" behemoth -p "multi-expert reasoning for crypto market" \`\`\` ## 💾 Memory System \`\`\` behemoth -p "remember that Bitcoin looks bullish today" behemoth -p "recall previous Bitcoin analysis" \`\`\` ## ⚖️ Risk Analysis \`\`\` behemoth /risk position_size BTCUSDT behemoth /risk var_analysis \`\`\` ## 🔄 Automation \`\`\` behemoth -p "create n8n workflow for BTC alerts" behemoth /n8n list behemoth /n8n deploy "Smart Crypto Alert System" \`\`\` ## 💡 Pro Tips 1. **Use -p flag** for quick one-off analysis 2. **Be specific**: "BTC RSI analysis" vs "analyze Bitcoin" 3. **Chain analysis**: Ask follow-up questions in chat mode 4. **Save insights**: Use "remember that..." to build knowledge 5. **Cosmic timing**: Check planetary analysis for market timing`; addMessage({ role: 'system', content: guide }); } showCosmicFeatures(addMessage) { const guide = `# 🌌 Cosmic Intelligence Guide BEHEMOTH includes unique cosmic analysis features for market timing! ## 🪐 Planetary Analysis **What it does**: Analyzes planetary positions and their influence on crypto markets **Commands**: \`\`\` behemoth -p "planetary analysis for Bitcoin" behemoth /cosmic planetary BTCUSDT \`\`\` **Planets & Their Market Effects**: - **Mars**: Energy, volatility, momentum shifts - **Venus**: Harmony, bullish trends, stability - **Jupiter**: Expansion, major bull runs - **Saturn**: Structure, resistance levels, corrections - **Mercury**: Communication, news-driven moves ## 🌙 Lunar Phase Analysis **What it does**: Uses moon phases to predict market sentiment and timing **Commands**: \`\`\` behemoth -p "lunar phase analysis" behemoth -p "moon phase Bitcoin" \`\`\` **Lunar Phases & Trading**: - **New Moon**: New trends beginning - **Waxing**: Building momentum (bullish) - **Full Moon**: Peak energy, potential reversals - **Waning**: Declining energy (bearish) ## 🔮 Sacred Geometry Analysis **What it does**: Applies golden ratio, Fibonacci, and sacred patterns to price action **Commands**: \`\`\` behemoth -p "sacred geometry analysis Bitcoin" behemoth -p "cosmic sacred geometry patterns" \`\`\` **Key Elements**: - **Golden Ratio (φ)**: 1.618 - Major support/resistance levels - **Fibonacci Spirals**: Price movement patterns - **Geometric Shapes**: Triangle, pentagon, octagon market formations - **Energy Harmonics**: 432Hz frequency analysis ## ⚡ Quantum Analysis **What it does**: Analyzes market correlations using quantum entanglement principles **Commands**: \`\`\` behemoth -p "quantum flux analysis Bitcoin" \`\`\` ## 🎯 How to Use Cosmic Intelligence 1. **Daily Planning**: Check planetary alignment for the day 2. **Entry Timing**: Use lunar phases for optimal entry/exit 3. **Support/Resistance**: Sacred geometry for key levels 4. **Risk Management**: Higher cosmic activity = higher volatility ## 🚀 Pro Cosmic Tips - **Combine with technicals**: Cosmic + RSI/MACD for confirmation - **Mars dominance**: Expect big moves and volatility - **Venus/Jupiter alignment**: Look for bullish continuations - **Sacred geometry levels**: Use φ ratios for profit targets - **Full moon trading**: Be cautious of reversals **Remember**: Cosmic intelligence is meant to complement, not replace, traditional technical analysis!`; addMessage({ role: 'system', content: guide }); } showTopics(addMessage) { const topics = `# 📚 BEHEMOTH Help Topics Choose a topic to learn more: ## 🚀 \`/howto setup\` Complete installation and configuration guide ## 🔑 \`/howto providers\` Detailed API key setup for Groq, OpenRouter, DeepSeek ## 🔄 \`/howto n8n\` N8N automation and workflow setup guide ## 📈 \`/howto trading\` All trading commands and analysis features ## 🌌 \`/howto cosmic\` Cosmic intelligence features and how to use them --- **Quick Start**: New users should start with \`/howto setup\` **Need immediate help?** - \`behemoth --help\` - Command line options - \`behemoth /help\` - All slash commands - \`behemoth -p "help me get started"\` - AI assistance`; addMessage({ role: 'system', content: topics }); } } export const howtoCommand = new HowtoCommand(); //# sourceMappingURL=howto.js.map