/setup - First-Time Configuration
Interactive wizard that guides you through initial Mega Brain setup: dependency verification, API key configuration, and connection validation.Syntax
This command auto-triggers on first use if
.env file is missing.What It Does
The setup wizard performs 7 sequential steps:- Python verification - Checks for Python 3.10+
- Node.js verification - Checks for Node.js 18+
- Python dependencies - Installs from
requirements.txt - API key configuration - Interactive prompts for each service
- Connection validation - Tests each API endpoint
- Generate
.envfile - Saves configuration - Display onboarding - Shows JARVIS operational briefing
Step-by-Step Process
Step 1: Python Verification
Step 2: Node.js Verification
Step 3: Python Dependencies
Automatically installs required Python packages:youtube-transcript-api- For YouTube video transcriptionvoyageai- For semantic embeddingsanthropic- For Claude API (optional)PyYAML- For configuration parsing
Step 4: API Key Configuration
Interactive prompts for each service:Required: OpenAI API Key
string
required
OpenAI API key for Whisper transcription. Get it from platform.openai.com
Recommended: Voyage AI API Key
string
Voyage AI API key for semantic embeddings. Get it from dash.voyageai.com
Optional: Anthropic API Key
string
Anthropic API key for Claude access. Only needed for standalone scripts. Get it from console.anthropic.com
Optional: Google Drive Credentials
string
Google OAuth client ID for Drive import
string
Google OAuth client secret for Drive import
Step 5: Connection Validation
Tests each configured API:- OpenAI: Lists available models via
/v1/models - Voyage AI: Tests embedding generation
- Anthropic: Simple message test
- Google Drive: OAuth token verification
Step 6: Generate .env File
Creates.env in project root:
Step 7: Onboarding Dashboard
Displays JARVIS operational briefing:Error Handling
Required Steps Fail
If Python or Node.js verification fails, setup stops immediately:Optional Steps Fail
If optional API keys fail validation, setup continues:Partial Configuration
If user cancels mid-setup, partial progress is saved:Reconfiguration
To update your configuration:Configuration File Location
Validation Commands
After setup, verify configuration:Troubleshooting
Python Not Found
Issue:python: command not found
Solution:
pip Install Fails
Issue:Permission denied during pip install
Solution:
API Key Invalid
Issue:Invalid API key during validation
Solution:
- Check for extra spaces in key
- Verify key is active in provider dashboard
- Ensure key has correct permissions
- Re-run
/setupto enter correct key
.env Permission Issues
Issue:Cannot write .env file
Solution:
Security Notes
Best Practices
- Use environment-specific keys - Different keys for dev/prod
- Rotate keys regularly - Update keys every 90 days
- Limit key permissions - Only grant necessary scopes
- Monitor usage - Check API dashboards for unusual activity
Next Steps
Ingest Command
Add your first material to the system
JARVIS Briefing
Check your system status
Architecture
Understand how Mega Brain works
API Keys Guide
Detailed API key configuration
